Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

debug

shixian.shi6f08e9040825
diff --git a/funasr/tasks/abs_task.py b/funasr/tasks/abs_task.py
index 0fb77a93e..0b7a30658 100644
--- a/funasr/tasks/abs_task.py
+++ b/funasr/tasks/abs_task.py
@@ -1252,9 +1252,13 @@ class AbsTask(ABC):
raise RuntimeError(
f"model must inherit {FunASRModel.__name__}, but got {type(model)}"
)
+ #model = model.to(
+ # dtype=getattr(torch, args.train_dtype),
+ # device="cuda" if args.ngpu > 0 else "cpu",
+ #)
model = model.to(
dtype=getattr(torch, args.train_dtype),
- device="cuda" if args.ngpu > 0 else "cpu",
+ device="cpu",
)
for t in args.freeze_param:
for k, p in model.named_parameters():