You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4300a6b
Browse filesBrowse the repository at this point in the historyBrowse files
Pin all three revisions. The model uses `trust_remote_code`; do not execute a
27
29
floating model revision in a production service.
@@ -76,36 +78,48 @@ model = AutoModel(
76
78
backend="vllm",
77
79
vllm_base_url="http://127.0.0.1:8898/v1",
78
80
vllm_model="moss-transcribe-diarize",
81
+
vllm_response_format="diarized_json",
79
82
disable_update=True,
80
83
)
81
84
result = model.generate("audio.wav")[0]
82
85
```
83
86
84
87
The vLLM adapter sends the documented OpenAI-compatible multipart request and
85
-
normalizes the returned raw text. Authentication can be supplied with
86
-
`vllm_api_key`; keep it in a secret store rather than source code.
88
+
normalizes the official speaker-attributed `segments` directly into
89
+
`sentence_info`. Authentication can be supplied with `vllm_api_key`; keep it
90
+
in a secret store rather than source code.
91
+
92
+
`vllm_response_format="diarized_json"` is the structured production path on
93
+
the pinned vLLM revision. The compatibility default remains `json` so existing
94
+
clients keep the exact tagged generation in `raw_text`; in structured mode,
95
+
`raw_text` is the cleaned `text` returned by vLLM and the authoritative speaker
96
+
metadata is in `sentence_info`.
87
97
88
98
## Choose a serving path
89
99
90
100
| Path | Environment | Response contract | Use when |
91
101
|---|---|---|---|
92
-
| vLLM | CUDA 12 (`cu129`) or CUDA 13 (`cu130`) |`response_format=json` returns raw `[start][Sxx]text[end]` text | You already operate vLLM or need its scheduler |
102
+
| vLLM | CUDA 12 (`cu129`) or CUDA 13 (`cu130`) |`response_format=diarized_json` returns OpenAI-compatible speaker segments; `response_format=json` keeps raw `[start][Sxx]text[end]` text | You already operate vLLM or need its scheduler |
93
103
| SGLang Omni | CUDA 13 in the current upstream guide |`response_format=verbose_json` returns parsed segments | You need structured speaker segments directly from the API |
94
104
| Transformers | PyTorch process | Python objects and raw tagged text | Evaluation, debugging, or custom preprocessing |
95
105
96
106
The two HTTP backends share `/v1/audio/transcriptions`, but their documented
97
-
response formats are not interchangeable. Do not promise vLLM `segments`
98
-
without testing the exact vLLM revision.
107
+
response formats are not interchangeable. The pinned vLLM revision supports
108
+
`diarized_json`; test the exact server revision before promising `segments`.
99
109
100
110
## vLLM
101
111
102
-
Create an isolated environment and install the upstream-pinned nightly build:
112
+
Create an isolated environment and install the verified vLLM release:
0 commit comments