Notice: In order to resolve issues more efficiently, please raise issue following the template.
(注意:为了更加高效率解决您遇到的问题,请按照模板提问,补充细节)
❓ Questions and Help
Before asking:
- search the issues.
- search the docs.
What is your question?
The length of the audio file is 15 hours, and when I use the code below for inference, the process is killed due to running out of memory. Is this behavior normal, or could it be a memory leak?
model = AutoModel(
model="paraformer-zh",
vad_model="fsmn-vad",
punc_model="ct-punc",
spk_model="cam++",
)
res = model.generate(input=audio_path, batch_size_s=batch_size_s, hotword=hotword)

Code
model = AutoModel(
model="paraformer-zh",
vad_model="fsmn-vad",
punc_model="ct-punc",
spk_model="cam++",
)
res = model.generate(input=audio_path, batch_size_s=batch_size_s, hotword=hotword)
What have you tried?
I have tried shorter length of audio, which is normal.
What's your environment?
- OS (e.g., Linux): Ubuntu 22.04
- FunASR Version (e.g., 1.0.0): 4294d21
- ModelScope Version (e.g., 1.11.0): 1.18.1
- PyTorch Version (e.g., 2.0.0):
pytorch-wpe 0.0.1
torch 2.4.1
torch-complex 0.4.4
torchaudio 2.4.1
torchvision 0.19.1
(funasr) yuhang@a2:/opt/repo/FunAS
- How you installed funasr (
pip, source): source git code, pip install -e .
- Python version: 3.10.14
- GPU (e.g., V100M32) 4090
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.183.01 Driver Version: 535.183.01 CUDA Version: 12.2 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA GeForce RTX 4090 Off | 00000000:01:00.0 Off | Off |
| 30% 49C P2 220W / 450W | 10265MiB / 24564MiB | 75% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
Notice: In order to resolve issues more efficiently, please raise issue following the template.
(注意:为了更加高效率解决您遇到的问题,请按照模板提问,补充细节)
❓ Questions and Help
Before asking:
What is your question?
The length of the audio file is 15 hours, and when I use the code below for inference, the process is killed due to running out of memory. Is this behavior normal, or could it be a memory leak?
Code
What have you tried?
I have tried shorter length of audio, which is normal.
What's your environment?
pip, source): source git code, pip install -e .