#pragma once // LFM3-Audio stage dumps and MaskGIT order injection, for parity checks // against the python reference. #include "engine/community_models/lfm3_audio/depth.h" #include #include #include #include namespace engine::community_models::lfm3_audio { // LFM3_AUDIO_DUMP_DIR=: each call writes /.npy (NumPy v1.0 header, ' & shape); void lfm3_dump(const std::string & name, const int32_t * data, const std::vector & shape); int64_t lfm3_dump_frames(); // LFM3_AUDIO_DUMP_FRAMES (default 4): frames whose per-pass depth logits are dumped // LFM3_AUDIO_MASKGIT_ORDERS=: orders injected for the first F frames of every generation (test/debug). std::vector lfm3_injected_orders(); std::vector lfm3_read_npy_i32(const std::filesystem::path & path, std::vector * shape); std::vector lfm3_read_npy_f32(const std::filesystem::path & path, std::vector * shape); } // namespace engine::community_models::lfm3_audio