chenbhao commited on
Commit
fe5285c
·
1 Parent(s): 75ec370

fix VAM: funasr+pyarrow deadlock, librosa+numpy compat, reduce iter_batches batch_size

Browse files

Root cause: funasr.AutoModel (loaded by SenseVoice encoder) and pyarrow
have a C library initialization conflict causing iter_batches to hang.

Fix:
- lazy-import pyarrow in VAMDataset/VLMDataset.__init__ (after model loads)
- remove unused pyarrow imports from dataset/common.py
- replace librosa.resample with torchaudio.resample (avoids numba+numpy 2.5
incompatibility)
- reduce iter_batches batch_size from 65536 to 4096 (lower memory)

Config updates:
- point Stage 2 (audio_proj) to omni-v Stage 1 checkpoint
- add explicit device: cuda to omni-v config

5 files changed +14 -10
Files changed (5)
configs/vam/vam_a2a_audio_proj_mini.yaml+1-1
configs/vam/vam_t2a_all_mini_omni-v.yaml+1
src/dataset/common.py-2
src/dataset/vam.py+11-6
src/dataset/vlm.py+1-1