Skip to content

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

docs: retain vLLM model source contracts

LauraGPT7fc25c71cecc
diff --cc tests/test_vllm_model_source_docs.py
index 578e2202c,273ec773c..32a90bd6b
--- a/tests/test_vllm_model_source_docs.py
+++ b/tests/test_vllm_model_source_docs.py
@@@ -31,17 -31,46 +31,62 @@@ def test_vllm_guides_distinguish_offici
assert marker in text, f"{relpath} is missing {marker}"
+def test_v2_guide_keeps_native_vllm_and_funasr_realtime_paths_separate():
+ text = (ROOT / "docs/vllm_guide_zh_v2.md").read_text(encoding="utf-8")
+
+ required_markers = [
+ "FunAudioLLM/Fun-ASR-Nano-2512-vllm",
+ "vllm serve FunAudioLLM/Fun-ASR-Nano-2512-vllm --port 8000",
+ "serve_realtime_ws.py",
+ "realtime speech-to-text",
+ "没有可用的实时转写会话",
+ "不是稳定的 API 契约",
+ ]
+
+ for marker in required_markers:
+ assert marker in text, f"docs/vllm_guide_zh_v2.md is missing {marker}"
++
++
+ @pytest.mark.parametrize(
+ ("relpath", "required_markers", "stale_claim"),
+ [
+ (
+ "docs/vllm_guide.md",
+ (
+ "https://github.com/modelscope/FunASR/issues/3496",
+ "incomplete CTC weights",
+ "timestamps or speaker diarization",
+ "Use the ModelScope\ncheckpoint",
+ ),
+ "does contain the complete `model.pt` at its root",
+ ),
+ (
+ "docs/vllm_guide_zh.md",
+ (
+ "https://github.com/modelscope/FunASR/issues/3496",
+ "CTC 权重不完整",
+ "时间戳或说话人分离",
+ "ModelScope checkpoint",
+ ),
+ "实际包含完整的 `model.pt`",
+ ),
+ (
+ "docs/vllm_guide_zh_v2.md",
+ (
+ "https://github.com/modelscope/FunASR/issues/3496",
+ "CTC 权重不完整",
+ "时间戳或说话人分离",
+ "ModelScope checkpoint",
+ ),
+ "实际包含完整的 `model.pt`",
+ ),
+ ],
+ )
+ def test_vllm_guides_document_hf_incomplete_ctc_checkpoint(
+ relpath, required_markers, stale_claim
+ ):
+ text = (ROOT / relpath).read_text(encoding="utf-8")
+
+ for marker in required_markers:
+ assert marker in text, f"{relpath} is missing {marker}"
+ assert stale_claim not in text, f"{relpath} still claims HF has complete CTC"