Download tt_kernel_manifest.json from changh95/Qwen3-ASR: direct link, hf CLI and curl.
- Browser
- Download file 29 kB
-
https://huggingface.co/changh95/Qwen3-ASR/resolve/main/tt_kernel_manifest.json
- Command line
-
hf download hf://changh95/Qwen3-ASR/tt_kernel_manifest.json
-
curl -L -o tt_kernel_manifest.json https://huggingface.co/changh95/Qwen3-ASR/resolve/main/tt_kernel_manifest.json
29 kB
| { | |
| "schema_version": "5.1", | |
| "name": "qwen3-asr", | |
| "tt_metal_version": "0.65.2.dev11169+g44d66500520", | |
| "arch": "blackhole", | |
| "device_count": 1, | |
| "producer": { | |
| "tt_kernel_version": "0.1.0", | |
| "created_at": "2026-12-02T07:30:53.797452+00:00", | |
| "hostname": "hchang-bh" | |
| }, | |
| "weights": { | |
| "repo_id": "Qwen/Qwen3-ASR-1.7B-hf", | |
| "revision": "bcd2b5b7f32b480ab5790554cfa8347f246a14f3", | |
| "allow_patterns": [ | |
| "model.safetensors", | |
| "config.json", | |
| "generation_config.json", | |
| "tokenizer.json", | |
| "tokenizer_config.json", | |
| "processor_config.json", | |
| "chat_template.jinja", | |
| "README.md" | |
| ], | |
| "ignore_patterns": null, | |
| "repo_type": "model" | |
| }, | |
| "auxiliary_weights": [ | |
| { | |
| "repo_id": "Qwen/Qwen3-ASR-0.6B-hf", | |
| "revision": "7f1569a48a89f3e3f4dc3a5c9d28bddd903bc76c", | |
| "allow_patterns": [ | |
| "model.safetensors", | |
| "config.json", | |
| "generation_config.json", | |
| "tokenizer.json", | |
| "tokenizer_config.json", | |
| "processor_config.json", | |
| "chat_template.jinja", | |
| "README.md" | |
| ], | |
| "ignore_patterns": null, | |
| "repo_type": "model" | |
| } | |
| ], | |
| "mesh": null, | |
| "entrypoint": null, | |
| "resources": null, | |
| "capabilities": null, | |
| "env": {}, | |
| "bundled": null, | |
| "deps": null, | |
| "container": { | |
| "image": { | |
| "registry": "hf", | |
| "repository": "qwen3-asr", | |
| "tag": "tt-model/qwen3-asr:090abcade0b2", | |
| "digest": "sha256:090abcade0b230fe58d54527b1bf300eaa22c2de2f6df442bb8a4d2a8344fc7b" | |
| }, | |
| "kind": "tt-dit-server", | |
| "runtime": { | |
| "app": "tt_qwen3_asr.server.app:app", | |
| "mesh_shape_env": "TT_MESH_SHAPE", | |
| "packages": [ | |
| "numpy>=1.24.4,<2", | |
| "safetensors==0.8.0", | |
| "huggingface_hub==1.16.1", | |
| "tokenizers==0.22.2", | |
| "soundfile==0.14.0", | |
| "soxr==1.1.0", | |
| "fastapi==0.142.2", | |
| "uvicorn==0.54.0", | |
| "websockets==16.0" | |
| ], | |
| "lock": "requirements.lock" | |
| }, | |
| "serve": { | |
| "hardware": "p150", | |
| "mesh_device": "P150", | |
| "port": 20000, | |
| "max_model_len": null, | |
| "max_num_seqs": null, | |
| "block_size": null, | |
| "server_timeout": null, | |
| "capabilities": null, | |
| "additional_config": {}, | |
| "args": [], | |
| "env": { | |
| "TT_WEIGHTS_REVISION": "bcd2b5b7f32b480ab5790554cfa8347f246a14f3", | |
| "TT_METAL_VISIBLE_DEVICES": "0", | |
| "TT_DEVICE_ID": "0", | |
| "HF_HUB_DISABLE_IMPLICIT_TOKEN": "1", | |
| "QWEN3ASR_DISPATCH": "eth", | |
| "QWEN3ASR_NUM_CQS": "1", | |
| "QWEN3ASR_VARIANT": "1.7b", | |
| "QWEN3ASR_MAX_SEGMENT_SECONDS": "60", | |
| "QWEN3ASR_MAX_CONTEXT_TOKENS": "256", | |
| "QWEN3ASR_MAX_PREFIX_TOKENS": "256", | |
| "QWEN3ASR_MAX_NEW_TOKENS": "512", | |
| "QWEN3ASR_ENGINE": "enc=ttnn,pre=ttnn,dec=mk", | |
| "QWEN3ASR_PRECISION": "", | |
| "QWEN3ASR_K_MAX": "64", | |
| "QWEN3ASR_POLL_TOKENS": "8", | |
| "QWEN3ASR_QUEUE_DEPTH": "8", | |
| "QWEN3ASR_QUEUE_TIMEOUT_S": "120", | |
| "QWEN3ASR_MAX_AUDIO_SECONDS": "3600", | |
| "QWEN3ASR_TORCH_THREADS": "2", | |
| "QWEN3ASR_CACHE_DIR": "/weight-cache" | |
| } | |
| }, | |
| "serve_profiles": [ | |
| { | |
| "hardware": null, | |
| "mesh_device": null, | |
| "port": null, | |
| "max_model_len": null, | |
| "max_num_seqs": null, | |
| "block_size": null, | |
| "server_timeout": null, | |
| "capabilities": null, | |
| "additional_config": {}, | |
| "args": [], | |
| "env": { | |
| "QWEN3ASR_VARIANT": "1.7b" | |
| }, | |
| "name": "1.7b", | |
| "description": "Qwen3-ASR-1.7B: the most accurate (the default)" | |
| }, | |
| { | |
| "hardware": null, | |
| "mesh_device": null, | |
| "port": null, | |
| "max_model_len": null, | |
| "max_num_seqs": null, | |
| "block_size": null, | |
| "server_timeout": null, | |
| "capabilities": null, | |
| "additional_config": {}, | |
| "args": [], | |
| "env": { | |
| "QWEN3ASR_VARIANT": "0.6b" | |
| }, | |
| "name": "0.6b", | |
| "description": "Qwen3-ASR-0.6B: about twice as fast" | |
| } | |
| ], | |
| "default_profile": "1.7b", | |
| "code_dir": "code", | |
| "verify": [ | |
| "assert 'single_chip_arch_1cq_no_dispatch_s' in open('/opt/tt-metal/tt_metal/impl/dispatch/topology.cpp').read()", | |
| "assert 'dual_kernel_min_dram_dest_page_bytes' in open('/opt/tt-metal/ttnn/cpp/ttnn/operations/data_movement/reshape_view/device/reshape_rm_program_factory.cpp').read()", | |
| "from tt_qwen3_asr.ttaw.device import eth_dispatch_patch_present as p; assert p(), 'the ETH patch is not visible'", | |
| "import sys, tt_qwen3_asr.server.app as a; assert a.app and 'ttnn' not in sys.modules and 'torch' not in sys.modules, 'the server module must import without ttnn / torch'", | |
| "from tt_qwen3_asr.server.app import parse_mesh_shape as p; assert p('1x1') == p('(1, 1)') == p('1,1') == (1, 1)", | |
| "from tt_qwen3_asr.server.app import load_config; c = load_config({'QWEN3ASR_VARIANT': '1.7b', 'QWEN3ASR_ENGINE': 'enc=ttnn,pre=ttnn,dec=mk', 'QWEN3ASR_DISPATCH': 'eth', 'TT_MODEL_WEIGHTS_REVISION': 'bcd2b5b7f32b480ab5790554cfa8347f246a14f3', 'TT_DIT_CACHE_DIR': '/weight-cache'}); assert (c.profile, c.revision, c.max_segment_seconds, c.max_seq, c.dispatch, c.cache_dir) == ('1.7b', 'bcd2b5b7f32b480ab5790554cfa8347f246a14f3', 60.0, 1856, 'eth', '/weight-cache'), c; assert c.engine == {'enc': 'ttnn', 'pre': 'ttnn', 'dec': 'mk'}", | |
| "from tt_qwen3_asr.server.app import load_config as L\nfor p in ('0.6b', '1.7b'):\n assert L({'QWEN3ASR_VARIANT': p}).profile == p\nfor bad in ({'QWEN3ASR_VARIANT': '7b'}, {'QWEN3ASR_MAX_SEGMENT_SECONDS': '0'}, {'QWEN3ASR_ENGINE': 'dec=gpu'}, {'QWEN3ASR_DISPATCH': 'pcie'}, {'QWEN3ASR_MAX_NEW_TOKENS': '4000'}, {'TT_MESH_SHAPE': '1x2'}):\n try:\n L(bad)\n except RuntimeError:\n continue\n raise AssertionError(bad)", | |
| "from tt_qwen3_asr.config import WEIGHTS; assert WEIGHTS == {'0.6b': ('Qwen/Qwen3-ASR-0.6B-hf', '7f1569a48a89f3e3f4dc3a5c9d28bddd903bc76c'), '1.7b': ('Qwen/Qwen3-ASR-1.7B-hf', 'bcd2b5b7f32b480ab5790554cfa8347f246a14f3')}", | |
| "import numpy as np; from tt_qwen3_asr import config as C; from tt_qwen3_asr.api import Qwen3ASR\nfor p in ('0.6b', '1.7b'):\n m = Qwen3ASR.from_config(C.resolve_config({'QWEN3ASR_VARIANT': p, 'QWEN3ASR_BACKEND': 'fake'}))\n r = m.transcribe((0.1 * np.sin(np.arange(48000 * 3, dtype=np.float32) * 0.05), 48000)); assert r.text and r.segments[0].end == 3.0, r\n s = m.stream_session(chunk_size_sec=1.0); assert len(s.feed(np.zeros(32000, np.float32))) == 2 and s.finish()['type'] == 'final'", | |
| "import soundfile, soxr, tokenizers, websockets; assert (soundfile.__version__, soxr.__version__, tokenizers.__version__) == ('0.14.0', '1.1.0', '0.22.2'); assert 'FLAC' in soundfile.available_formats() and 'MP3' in soundfile.available_formats()", | |
| "from tt_qwen3_asr.tt.model import AsrDevice as D; miss = [n for n in ('segment', 'encode', 'teacher_forced_logits', 'close') if not callable(getattr(D, n, None))]; assert not miss, miss", | |
| "from pathlib import Path; k = Path('/opt/tt-metal/tt_qwen3_asr/tt/mk_dec/kernels'); assert all((k / f).is_file() for f in ('md_brisc.cpp', 'md_ncrisc.cpp', 'md_trisc.cpp', 'md_defs.hpp', 'md_dm.hpp', 'sampler.hpp'))", | |
| "import hashlib, json; from pathlib import Path\nfor n in ('librispeech_en', 'tts_zh', 'fleurs_ko'):\n d = Path('/opt/tt-metal/tt_qwen3_asr/samples', n); m = json.loads((d / 'sample.json').read_text()); assert hashlib.sha256((d / m['file']).read_bytes()).hexdigest() == m['sha256'] and (d / 'PROVENANCE.md').is_file()", | |
| "import inspect; from tt_qwen3_asr.server import app as A; from tt_qwen3_asr.api import DeviceBackend; s = A.ServerState(); assert s.device_opener is A.default_device_opener and s.device_closer is A.default_device_closer and 'device' in inspect.signature(DeviceBackend).parameters, 'the chip must be opened / closed by the server lifespan (main thread)'", | |
| "from pathlib import Path; bad = [str(f) for f in Path('/opt/tt-metal/tt_qwen3_asr').rglob('*') if f.suffix in ('.py', '.sh', '.md', '.json') and any(w in f.read_text(errors='ignore') for w in ('/home/ubuntu', '/mnt/chang', 'experiments/tt-models'))]; assert not bad, bad", | |
| "from pathlib import Path; d = Path('/opt/tt-metal/tt_qwen3_asr/licenses'); assert 'Apache License' in (d / 'LICENSE-APACHE-2.0.txt').read_text() and 'Qwen' in (d / 'NOTICE.md').read_text()", | |
| "from pathlib import Path; assert all(Path('/opt/tt-metal', p).is_file() for p in ('tt_qwen3_asr/server/smoke_test.py', 'tt_qwen3_asr/server/client.py', 'scripts/container_smoke.sh', 'PYTHON.md'))", | |
| "import numpy; assert int(numpy.__version__.split('.')[0]) < 2, numpy.__version__", | |
| "import torch; assert torch.__version__.startswith('2.11.0'), torch.__version__", | |
| "import ttnn; assert all(hasattr(ttnn, a) for a in ('DispatchCoreConfig', 'begin_trace_capture', 'end_trace_capture', 'execute_trace', 'release_trace', 'copy_host_to_device_tensor', 'generic_op', 'conv2d'))" | |
| ], | |
| "built": { | |
| "image": "tt-model/qwen3-asr:090abcade0b2", | |
| "repo": "changh95/Qwen3-ASR", | |
| "tt_model_version": "0.1.0", | |
| "created_at": "2026-12-02T06:17:47+00:00", | |
| "tt_metal": { | |
| "sha": "44d66500520fda9f2c7060c0f6b41ec48f7ab37e", | |
| "describe": "v0.80.0-dev20261006-78-g44d6650052-dirty", | |
| "dirty": true, | |
| "scm_version": "0.65.2.dev11169+g44d66500520", | |
| "mode": "local", | |
| "remote": "https://github.com/tenstorrent/tt-metal.git", | |
| "branch": "main", | |
| "pushed": true | |
| }, | |
| "code_sha256": "d268cf1231b75d36d0600a38be51790dfd2e33b19a7b1c13902f3f38819482d9", | |
| "image_digest": "sha256:090abcade0b230fe58d54527b1bf300eaa22c2de2f6df442bb8a4d2a8344fc7b" | |
| }, | |
| "card": { | |
| "description": "Qwen3-ASR transcribes speech in 30 languages and 22 Chinese dialects, identifies the language and accepts a free text context (names, hotwords, the topic) that biases the transcript. Two checkpoints are served from one image as serve profiles: `1.7b` (default, the most accurate) and `0.6b` (about twice as fast). Each is an audio encoder (three convolutions over 1 s chunks of a 128-bin log-mel spectrogram, then 24 / 18 transformer layers with attention inside 8 s windows) whose outputs enter a 28-layer Qwen3 text decoder (width 2048 / 1024) as audio tokens; the decoder writes `language <name><asr_text>` and the transcript. The package includes the official feature extraction, prompt template, language forcing, context prompts, output parsing and repetition clean-up, the splitting of long audio at quiet points (as the official code, but never past the limit) and the official streaming re-decoding algorithm. The encoder and the prefill run on the device as traced tt-nn graphs (bf16 encoder weights; decoder attention bf16, MLP bfp8), and every decoded token is one launch of a decoder megakernel (28 layers and the tied 151936-column output layer in bfp8, weights streamed from DRAM by 32 cores, attention on 16 cores, greedy decoding or sampling on the device, the stop rule on the device); audio decoding, resampling and the log-mel run on the host CPU.", | |
| "attribution": "Derived from Alibaba Qwen's [Qwen3-ASR](https://huggingface.co/collections/Qwen/qwen3-asr) ([Qwen/Qwen3-ASR-1.7B-hf](https://huggingface.co/Qwen/Qwen3-ASR-1.7B-hf), [Qwen/Qwen3-ASR-0.6B-hf](https://huggingface.co/Qwen/Qwen3-ASR-0.6B-hf)), with unmodified weights downloaded from Qwen's repositories. Official code: [QwenLM/Qwen3-ASR](https://github.com/QwenLM/Qwen3-ASR) and the transformers-native `Qwen3ASRForConditionalGeneration`. This is a third-party port, not affiliated with or endorsed by Alibaba or the Qwen team. See the original model cards for training details.", | |
| "prerequisites": "- About 6 GB of free disk for the two checkpoints (fetched once into the Hugging Face cache, whichever profile is served), up to 2.4 GB for the packed megakernel weights (tt-model's weight cache: 1.7 GB for `1.7b`, 0.6 GB for `0.6b`) and about 2 GB of compiled kernels (its kernel cache), plus the container image\n- Audio as WAV, FLAC, OGG or MP3 (any sample rate, mono or multi-channel), or raw 16-bit / float PCM\n", | |
| "quickstart": "Default profile (`1.7b`), on the port `tt serve` reported:\n\n```bash\ncurl -sLO https://huggingface.co/changh95/Qwen3-ASR/resolve/main/code/tt_qwen3_asr/samples/librispeech_en/sample.wav\ncurl -s localhost:20000/v1/audio/transcriptions -F file=@sample.wav\n# {\"text\": \"Mr. Quilter is the apostle of the middle classes, and we are glad to welcome his gospel.\", \"language\": \"English\", ...}\ncurl -s localhost:20000/v1/audio/transcriptions -F file=@sample.wav -F response_format=srt\ncurl -sN localhost:20000/v1/audio/transcriptions -F file=@sample.wav -F stream=true # SSE text deltas\n```\n", | |
| "architecture": null, | |
| "status": null, | |
| "intended_use": "Low-latency speech-to-text on one Tenstorrent p150, one request at a time: transcription of files, live captions from streamed audio, voice interfaces, subtitles with segment timestamps.", | |
| "out_of_scope_use": null, | |
| "usage": "`POST /v1/audio/transcriptions` is OpenAI-compatible (multipart: `file`, `model`, `language`, `prompt`,\n`response_format`, `temperature`, `stream`, `timestamp_granularities[]`); the OpenAI Python client works against it:\n\n```python\nfrom openai import OpenAI\nclient = OpenAI(base_url=\"http://localhost:20000/v1\", api_key=\"unused\")\nr = client.audio.transcriptions.create(model=\"qwen3-asr\", file=open(\"sample.wav\", \"rb\"))\nprint(r.text)\n```\n\n| request field | default | meaning |\n| --- | --- | --- |\n| `file` | required | the audio: WAV, FLAC, OGG, MP3 (any sample rate; channels are averaged; resampled to 16 kHz). Also accepted: a JSON body `{\"audio\": base64, ...}`, or raw PCM as the body with `?raw_format=pcm16|f32&sample_rate=N` |\n| `language` | automatic | ISO code or English name of one of the 30 languages (`zh en yue ar de fr es pt id it ko ru th vi ja tr hi ms nl sv da fi pl cs fil fa el hu mk ro`); forcing it skips language identification |\n| `prompt` | `\"\"` | context / hotwords (names, terms, the topic), up to `QWEN3ASR_MAX_CONTEXT_TOKENS` tokens: the model's system turn |\n| `response_format` | `json` | `json` (`text`, `language`, `usage`), `text`, `srt`, `vtt`, `verbose_json` (segments with start / end, tokens, timings) |\n| `temperature` | 0 | 0 = greedy (the official decoding); > 0 samples (on the device from the second token of a segment; `top_k` <= 64, `top_p`, `seed` 0 .. 2^64 - 1) |\n| `stream` | false | Server-Sent Events: `transcript.text.delta` as tokens are decoded, then `transcript.text.done` |\n| `timestamp_granularities[]` | `segment` | segment timestamps only (the checkpoints emit no word timestamps) |\n| `max_new_tokens`, `segment_seconds`, `postprocess` | 512, 60, true | per-segment token limit; split long audio into shorter segments (finer subtitle cues); the official repetition clean-up |\n\n- Long audio is split at quiet points (the quietest 100 ms of the 10 s before each limit) into segments of at most\n `QWEN3ASR_MAX_SEGMENT_SECONDS` (60 s), transcribed one after the other and joined; `srt` / `vtt` /\n `verbose_json` give one cue per segment.\n- Streaming input: `WEBSOCKET /v1/audio/transcriptions/stream` (see `SERVING.md`): send a JSON start message, then\n 16-bit or float PCM frames, then `{\"type\": \"finish\"}`; the server answers a partial transcript every\n `chunk_size_sec` (default 2 s) of audio with the official streaming algorithm, then the final one.\n- `GET /health` reports readiness, `GET /info` the profile, the weights and their commits, the device, the\n engines, the configuration and the limits; `GET /v1/models` lists the served model.\n- Errors: 400 with the reason, 413 body too large, 415 content type, 422 malformed body, 429 queue full\n (`Retry-After`), 503 after `QWEN3ASR_QUEUE_TIMEOUT_S` in the queue or while shutting down, 500 on a device failure.\n The port accepts connections only once the server is ready (uvicorn binds it after the start-up); `GET /health`\n then answers 200.\n- A Python API with the same parameters (`tt_qwen3_asr.api.Qwen3ASR`) is described in\n [`code/PYTHON.md`](code/PYTHON.md).\n\n### Configuration\n\nThe server builds its device programs for one configuration when it starts; change it with environment variables\nand start it again. `GET /info` reports it.\n\n| item | environment variable | values | default |\n| --- | --- | --- | --- |\n| checkpoint | `QWEN3ASR_VARIANT` (the serve profiles set it) | `1.7b`, `0.6b` | `1.7b` |\n| longest segment per decoder pass | `QWEN3ASR_MAX_SEGMENT_SECONDS` | 1 .. 300 | 60 |\n| longest context prompt | `QWEN3ASR_MAX_CONTEXT_TOKENS` | 0 .. 2048 | 256 |\n| tokens per segment | `QWEN3ASR_MAX_NEW_TOKENS` | 16 .. 2048 | 512 |\n| streaming-input carried transcript | `QWEN3ASR_MAX_PREFIX_TOKENS` | 0 .. 2048 | 256 |\n| device engines | `QWEN3ASR_ENGINE` | `dec=mk` (megakernel) or `dec=ttnn` | `enc=ttnn,pre=ttnn,dec=mk` |\n| weight formats | `QWEN3ASR_PRECISION` | `enc`, `attn`, `mlp`, `head`, `mk_attn`, `mk_mlp`, `mk_head` = `bf16` / `bfp8` | encoder bf16, prefill attention bf16 / MLP bfp8, megakernel bfp8 (head bfp8) |\n| prompt / encoder lengths compiled at start | `QWEN3ASR_PREFILL_BUCKETS`, `QWEN3ASR_ENCODER_BUCKETS` | up to 32 multiples of 32 each | derived from the limits above (7 + 7) |\n| largest `top_k` | `QWEN3ASR_K_MAX` | 1 .. 64 | 64 |\n| streaming granularity | `QWEN3ASR_POLL_TOKENS` | 1 .. 64 decode steps per poll | 8 |\n| queue | `QWEN3ASR_QUEUE_DEPTH`, `QWEN3ASR_QUEUE_TIMEOUT_S` | waiting requests, seconds | 8, 120 |\n| longest upload | `QWEN3ASR_MAX_AUDIO_SECONDS`, `QWEN3ASR_MAX_BODY_MB` | seconds, MB | 3600, 200 |\n\n### Example output\n\nTranscribed by this package on a p150 (profile `1.7b`, the shipped defaults, automatic language identification;\n`POST /v1/audio/transcriptions` with the MP3 file, client round trip on loopback).\n[`media/demos.json`](media/demos.json) has every request, the full outputs, the timings and the files' sha256.\n\n| input | transcript |\n| --- | --- |\n| <audio controls src=\"https://huggingface.co/changh95/Qwen3-ASR/resolve/main/media/demo_en.mp3\"></audio> [MP3](media/demo_en.mp3), 5.9 s, LibriSpeech | English: Mr. Quilter is the apostle of the middle classes, and we are glad to welcome his gospel. (211 ms) |\n| <audio controls src=\"https://huggingface.co/changh95/Qwen3-ASR/resolve/main/media/demo_zh.mp3\"></audio> [MP3](media/demo_zh.mp3), 8.6 s, synthetic (Qwen3-TTS) | Chinese: 今天天气很好,我们一起去公园散步吧。路上还可以买一杯热咖啡,顺便聊聊最近的工作。 (204 ms) |\n| <audio controls src=\"https://huggingface.co/changh95/Qwen3-ASR/resolve/main/media/demo_ko.mp3\"></audio> [MP3](media/demo_ko.mp3), 12.1 s, FLEURS | Korean: 어둠 속에서 피라미드를 볼 수 있고 쇼가 시작하기 전에 고요 속에서 피라미드를 볼 수 있습니다. (351 ms) |\n\nLong audio, `response_format=srt`: <audio controls src=\"https://huggingface.co/changh95/Qwen3-ASR/resolve/main/media/demo_long_en.mp3\"></audio>\n[MP3](media/demo_long_en.mp3) (114 s, 14 FLEURS utterances) -> [`media/demo_long_en.srt`](media/demo_long_en.srt),\nthree segments cut at quiet points (2.3 s round trip). Excerpt:\n\n```\n1\n00:00:00,000 --> 00:00:53,025\nWhen you call someone who is thousands of miles away, you are using a satellite. Now widely available throughout the archipelago, Japanese cuisine features an array of simply seasoned dishes. [...]\n\n2\n00:00:53,025 --> 00:01:46,233\nThe Tibetan Buddhism is based on the teachings of Buddha, but were extended by the Mayana path of love and by a lot of techniques from Indian yoga. [...]\n\n3\n00:01:46,233 --> 00:01:54,000\nAlthough three people were inside the house when the car impacted it, none of them were hurt.\n```\n\nStreaming input: the Korean clip sent over `WEBSOCKET /v1/audio/transcriptions/stream` at real-time pace (0.1 s\nPCM frames, 2 s chunks) gave a partial transcript every 2 s, 92-184 ms after each chunk's last frame (the first\none still empty, then \"어둠 속에서 피라미드를.\" -> \"... 쇼가 시작.\" -> ... -> the full sentence), and the final 143 ms after\n`finish`; streamed output (SSE) of the same file: first text delta after 165 ms. The inputs are LibriSpeech and\nFLEURS recordings (CC BY 4.0) and Qwen3-TTS speech (Apache-2.0): [`media/ATTRIBUTION.md`](media/ATTRIBUTION.md).\n", | |
| "performance": "Agreement with Qwen's own float32 code on the CPU (transformers 5.24.1, same weights, prompts and greedy decoding)\non 48 test entries (FLEURS dev en / zh / ko, model-card clips, LibriSpeech, synthetic speech, white noise at\n5 / 10 dB, 31-114 s concatenations, 0.3 s / 1 s clips, silence; 23 English, 25 Chinese / Korean), as served\n(60 s segments):\n\n| eval | 0.6b | 1.7b |\n| --- | --- | --- |\n| Transcripts identical to the float32 transcripts | 43 / 48 | 39 / 48 |\n| WER (English) / CER (Chinese, Korean) vs the float32 transcripts | 0.0087 / 0.0032 | 0.0082 / 0.0038 |\n| the same without the two clips longer than the 60 s segment (63 s, 114 s) | 0.0028 / 0.0032 | 0.0063 / 0.0038 |\n| WER / CER vs the FLEURS references (the float32 code in parentheses) | 0.138 / 0.081 (0.141 / 0.082) | 0.101 / 0.063 (0.096 / 0.067) |\n| Next-token distribution along the float32 path: total-variation distance per step, mean per entry / top-1 agreement (6 entries, 237 steps; Qwen's own bfloat16 over all entries in parentheses: mean / top-1) | <= 0.0059 / 0.996 (0.0018 / 0.998) | <= 0.0054 / 1.000 (0.0013 / 0.995) |\n| Audio-encoder output PCC vs float32 (6.5 / 16 / 31 / 63 s) | 0.9995 / 0.9996 / 0.9998 / 0.9997 | 0.9998 / 0.9998 / 0.9996 / 0.9993 |\n\nThe differences are near-ties (\"you're\" / \"you are\", \"13위\" / \"십삼 위\", \"6\" / \"六\", \"科隆\" / \"克隆\", \"Mr.\" /\n\"Mister\") and the splitting of the two clips longer than the 60 s segment. Qwen's own bfloat16 code disagrees\nwith float32 at such steps too: on the 1.7B it makes exactly the same three Chinese substitutions as the p150\nport, and further ones on card_en (WER 0.056) and a noisy Korean clip.\n\n| speed (batch 1, warm) | 0.6b | 1.7b |\n| --- | --- | --- |\n| Decoder time per token (megakernel, traced; context 64 / 512 / 1024; at the served maximum of 1856 positions) | 2.1 / 2.5 / 2.9 ms; < 3.7 ms | 4.8 / 5.2 / 5.6 ms; < 6.4 ms (6.4 / 3.7 ms measured at 2030) |\n| Time to the first token, 3-8 s / 8-20 s / 45-80 s clips (median, end to end) | 30 / 44 / 163 ms | 41 / 57 / 171 ms |\n| Real-time factor, 3-8 s / 8-20 s / 114 s clips (median, end to end) | 0.012 / 0.010 / 0.009 | 0.023 / 0.018 / 0.016 |\n| All-ttnn baseline (`QWEN3ASR_ENGINE=dec=ttnn`): decoder time per token | 8.1-10.3 ms | 12.6-13.3 ms |\n| Streaming input (2 s chunks): device time per update, 16-31 s streams (mean / max) | -- | 79-115 / 156 ms |\n| Served `POST /v1/audio/transcriptions`, 5.9 s English / 8.6 s Chinese sample, client round trip on loopback | 108 / 103 ms | 189 / 185 ms |\n| Server start-up in the container, first start (empty kernel and weight caches) | 483 s | 844 s |\n| Server start-up, later starts (warm caches) | 70-138 s | 83-111 s |\n\nEnd-to-end times are through the Python API (`code/tt_qwen3_asr/tests/dev_eval.py`) on a shared host whose 8\nCPU cores were kept busy by other processes: the device parts are unaffected, the host parts (audio decoding,\nlog-mel, prompt) are inflated. Device scripts: `code/tt_qwen3_asr/tests/dev_mk_dec.py`, `dev_stream.py`.\n", | |
| "limitations": "- Version 1 runs each decoding step as one megakernel launch; the audio encoder and the prompt prefill are traced\n tt-nn graphs, which set the time to the first token. Encoder and prefill megakernels are planned for v1.1.\n- Batch 1: requests are served one at a time in arrival order (`QWEN3ASR_QUEUE_DEPTH` may wait).\n- Timestamps are per segment (long audio is split at quiet points); word timestamps need Qwen's separate\n Qwen3-ForcedAligner-0.6B, which is not included (planned for v1.1).\n- The first start of a profile takes 8 (`0.6b`) to 14 (`1.7b`) minutes (measured in the container on a shared\n host): it packs the megakernel's weight streams from the checkpoint on the CPU (0.5-2 min) into tt-model's\n weight cache (`/weight-cache/mk_dec`), compiles every device kernel into the kernel cache and captures the\n traces. Later starts reuse both caches and are ready in 1.5-2 minutes.\n- Audio longer than `QWEN3ASR_MAX_SEGMENT_SECONDS` (60 s) is split at quiet points and the pieces are transcribed\n independently (the official code splits at 20 minutes): context does not carry across segments. On five 63-128 s\n test clips the `1.7b` transcript differs from Qwen's single pass by WER 0.015-0.042 (English) and CER 0.024\n (Chinese); against the reference transcripts it is as good as the single pass (WER 0.040-0.092 vs 0.053-0.092).\n- Streaming input commits a segment when its audio reaches `QWEN3ASR_MAX_SEGMENT_SECONDS` (not at a quiet point);\n a word at that moment can be lost.\n- Sampling (`temperature` > 0): the first token of each segment is drawn on the host (top-k / top-p over the whole\n vocabulary), the following ones on the device from the 64 most likely tokens (`QWEN3ASR_K_MAX`); the same\n `seed` gives the same transcript. Greedy decoding, the official default, is exact.\n- Transcripts are not bit-identical to Qwen's float32 code: on 5-9 of the 48 test entries a word or a number\n format differs (near-ties such as \"13위\" / \"십삼 위\", \"you're\" / \"you are\"); the error rate against reference\n transcripts stays at the float32 code's (FLEURS CER 0.063 vs 0.067, WER 0.101 vs 0.096 for 1.7B; 0.081 vs 0.082\n and 0.138 vs 0.141 for 0.6B).\n- Very quiet or very short inputs (< 0.5 s) return an empty transcript, as the official code does.\n", | |
| "risks": null, | |
| "licensing": "- Weights (not redistributed here; `tt serve` downloads them from Qwen's repositories at these commits), both\n Apache-2.0: [Qwen/Qwen3-ASR-1.7B-hf](https://huggingface.co/Qwen/Qwen3-ASR-1.7B-hf) `bcd2b5b7`,\n [Qwen/Qwen3-ASR-0.6B-hf](https://huggingface.co/Qwen/Qwen3-ASR-0.6B-hf) `7f1569a4`. Notices:\n [`code/tt_qwen3_asr/licenses/NOTICE.md`](code/tt_qwen3_asr/licenses/NOTICE.md).\n- This package is a derivative work of Qwen3-ASR: the inference code is written anew (feature extraction, prompt,\n parsing, long-audio splitting and streaming follow the official code), the networks run on the device in tt-nn\n operations and a custom decoder megakernel, and the weights are loaded unmodified. The decoder megakernel and\n its on-device sampler are adapted from the Qwen3-TTS talker megakernel of the same author's Qwen3-TTS port to\n p150, [changh95/Qwen3-TTS](https://huggingface.co/changh95/Qwen3-TTS) (Apache-2.0), and the tt-nn decoder from\n that port's tt-nn engines, themselves adapted from tt-metal's Qwen3-TTS demo (`models/demos/audio/qwen3_tts`,\n Copyright 2026 Tenstorrent AI ULC, Apache-2.0); the encoder's convolution set-up and the first tt-nn baseline\n follow tt-metal's Qwen3-ASR demo (`models/demos/audio/qwen3_asr`, Copyright 2026 Tenstorrent USA, Inc.,\n Apache-2.0). The adapted files say so in their headers.\n- Port, server and scripts (`code/`) and the tt-metal patches in [`patches/`](patches/): Apache-2.0.\n- Samples: `code/tt_qwen3_asr/samples/librispeech_en/sample.wav` (LibriSpeech, CC BY 4.0),\n `code/tt_qwen3_asr/samples/fleurs_ko/sample.wav` (FLEURS, Google, CC BY 4.0) and\n `code/tt_qwen3_asr/samples/tts_zh/sample.wav` (synthetic speech made with Qwen3-TTS, Apache-2.0); provenance\n in their `PROVENANCE.md`.\n", | |
| "related": "- [changh95/Qwen3-TTS](https://huggingface.co/changh95/Qwen3-TTS): Qwen3-TTS text-to-speech on p150 (the source of this port's decoder megakernel).\n- [changh95/Kokoro-82M](https://huggingface.co/changh95/Kokoro-82M): Kokoro text-to-speech on p150.\n- [changh95/PaddleOCR-VL](https://huggingface.co/changh95/PaddleOCR-VL): PaddleOCR-VL document element recognition on p150.\n- [changh95/laya](https://huggingface.co/changh95/laya): laya, a one-pass typed decision model, on p150.\n- [changh95/GLM-OCR](https://huggingface.co/changh95/GLM-OCR): GLM-OCR document recognition on p150.\n- [changh95/embeddinggemma-2](https://huggingface.co/changh95/embeddinggemma-2): EmbeddingGemma text embeddings on p150.\n- [changh95/all-MiniLM-L6-v2](https://huggingface.co/changh95/all-MiniLM-L6-v2): sentence embeddings on p150.\n- [changh95/DepthPro2](https://huggingface.co/changh95/DepthPro2): Apple Depth Pro 2 metric depth on p150.\n", | |
| "license": { | |
| "id": "apache-2.0", | |
| "name": null, | |
| "link": null | |
| }, | |
| "pipeline_tag": "automatic-speech-recognition", | |
| "base_model": [ | |
| "Qwen/Qwen3-ASR-1.7B-hf", | |
| "Qwen/Qwen3-ASR-0.6B-hf" | |
| ] | |
| } | |
| } | |
| } |