Sync from GitHub via hub-sync
Browse files
moss-transcribe-diarize-server.py
CHANGED
|
@@ -29,9 +29,16 @@ starts the server, then runs this driver against it):
|
|
| 29 |
hf jobs run --detach --flavor a100-large -s HF_TOKEN --timeout 8h \\
|
| 30 |
-v hf://buckets/user/audio-files:/input:ro \\
|
| 31 |
-v hf://buckets/user/transcripts:/output \\
|
| 32 |
-
lmsysorg/sglang
|
| 33 |
bash -c "pip install -q uv; git clone --depth 1 https://github.com/sgl-project/sglang-omni.git && cd sglang-omni && uv venv .venv -p 3.12 && . .venv/bin/activate && uv pip install . && (sgl-omni serve --model-path OpenMOSS-Team/MOSS-Transcribe-Diarize --host 0.0.0.0 --port 8000 --max-running-requests 16 --mem-fraction-static 0.80 &) && uv run https://huggingface.co/datasets/uv-scripts/transcription/raw/main/moss-transcribe-diarize-server.py /input /output --emit-txt"
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
Input: Output:
|
| 36 |
/input/tape1.mp3 -> /output/tape1.json (segments; parts merged)
|
| 37 |
/input/sub/tape2.mp3 -> /output/sub/tape2.json
|
|
|
|
| 29 |
hf jobs run --detach --flavor a100-large -s HF_TOKEN --timeout 8h \\
|
| 30 |
-v hf://buckets/user/audio-files:/input:ro \\
|
| 31 |
-v hf://buckets/user/transcripts:/output \\
|
| 32 |
+
lmsysorg/sglang-omni:dev -- \\
|
| 33 |
bash -c "pip install -q uv; git clone --depth 1 https://github.com/sgl-project/sglang-omni.git && cd sglang-omni && uv venv .venv -p 3.12 && . .venv/bin/activate && uv pip install . && (sgl-omni serve --model-path OpenMOSS-Team/MOSS-Transcribe-Diarize --host 0.0.0.0 --port 8000 --max-running-requests 16 --mem-fraction-static 0.80 &) && uv run https://huggingface.co/datasets/uv-scripts/transcription/raw/main/moss-transcribe-diarize-server.py /input /output --emit-txt"
|
| 34 |
|
| 35 |
+
The image is the upstream-recommended sgl-omni base (prebakes UCX/flash-attn/
|
| 36 |
+
sglang; validated 2026-07-16 — 100% coverage, 8.2x realtime on 2 test tapes).
|
| 37 |
+
sglang-omni has no PyPI package or preinstalled image (checked same day), so
|
| 38 |
+
the in-job source install is the official path. This driver relies on
|
| 39 |
+
sgl-omni's `verbose_json` parsed speaker segments, so serve with sgl-omni
|
| 40 |
+
as shown.
|
| 41 |
+
|
| 42 |
Input: Output:
|
| 43 |
/input/tape1.mp3 -> /output/tape1.json (segments; parts merged)
|
| 44 |
/input/sub/tape2.mp3 -> /output/sub/tape2.json
|