raon-speech-9b on Tenstorrent p150
Derived from KRAFTON's Raon-Speech-9B, with unmodified weights downloaded from KRAFTON's repository and the speaker encoder speechbrain/spkrec-ecapa-voxceleb. Official code: krafton-ai/Raon-Speech. Raon-Speech-9B is licensed under CC BY-NC 4.0: this package may only be used for non-commercial purposes. This is a third-party port, not affiliated with or endorsed by KRAFTON or SpeechBrain. See the original model card for training details.
Raon-Speech-9B is a 9-billion-parameter speech-language model in English and Korean. One model serves every task: speech recognition (STT), answering a spoken question in text (SpeechChat), answering a written question about an optional audio clip (TextQA), multi-turn chat, text-to-speech (TTS) with a random voice or a voice cloned from a short clip, and continuation of a recorded utterance in the same voice. A 36-layer Qwen3-style transformer (the "thinker", width 4096) reads text and audio (an audio encoder turns 16 kHz speech into 12.5 tokens per second) and writes text tokens, or 80 ms speech frames; a 4-layer "talker", a 5-layer code predictor and an output adaptor turn each frame into the 16 codes of the Mimi codec, whose decoder renders 24 kHz audio. The package includes the official prompts (chat template, task prompts, speaker embedding, continuation layout), the official sampling processors and defaults (repetition-aware sampling for speech), a stateful streaming Mimi decoder whose packets join exactly, a voice registry and OpenAI-compatible routes. On the device the thinker, the talker / code predictor / output adaptor and the Mimi decoder run as megakernels with sampling on the device, one replayed trace per step for text and audio alike; the audio encoder runs as tt-nn operations; text tokenization, the speaker encoder and the Mimi encoder of reference clips run on the host CPU.
Runs on Tenstorrent p150 (mesh P150).
Packaged and published with tt-model-manager 0.1.0 (manifest schema 5.1).
At a glance
| Hardware | p150 |
| License | cc-by-nc-4.0 |
Intended use
Non-commercial research and prototyping on one Tenstorrent p150 (CC BY-NC 4.0): transcription, spoken and written question answering, speech synthesis with a sampled, cloned or continued voice, one request at a time. Clone only voices you have the right to use.
Prerequisites
- The Tenstorrent CLI,
tt:uv tool install tenstorrent(or use tt-model alone, see the Quickstart) - Docker
- Tenstorrent hardware: p150
- Acceptance of the CC BY-NC 4.0 licence of Raon-Speech-9B: non-commercial use only, with attribution to KRAFTON
- About 17 GB of free disk for the weights (fetched once into the Hugging Face cache), about 17 GB for the caches the first start builds in tt-model's persistent per-model cache (16 GB of packed weights and tt-nn weight files, 1 GB of compiled device kernels), and 4.2 GB for the container image
- Patience at the first start: about 14-18 minutes (packing the weights and compiling the kernels); later starts take about 80-210 s, depending on host load and the speed of the disk holding the caches
- For cloning: a 1-30 s recording of the voice (WAV, FLAC, OGG or MP3); for continuation also its exact transcript
Quickstart
tt serve changh95/Raon-Speech-9B
tt serve downloads the Docker image and both required checkpoints: KRAFTON/Raon-Speech-9B at cd84c5bf53f6a7f8747f653dbbe7fc5e3c3471a4, speechbrain/spkrec-ecapa-voxceleb at 0f99f2d0ebe89ac095bcc5903c4dd8f72b367286 (into your HF cache; they are not in the image), then starts the model's own HTTP server on port 20000 (or the next free port, if that one is busy). The first start compiles kernels for your device, which takes several minutes; the server is ready when it logs Application startup complete.
Without tt-cli: tt-model serve changh95/Raon-Speech-9B.
On the port tt serve reported (the clips are the samples shipped in this repo):
base=https://huggingface.co/changh95/Raon-Speech-9B/resolve/main/code/tt_raon/samples
curl -sLo ko.wav $base/stt_ko/sample.wav
curl -s localhost:20000/v1/audio/transcriptions -F file=@ko.wav # speech recognition
curl -s localhost:20000/v1/audio/speech -H 'Content-Type: application/json' \
-d '{"input": "Hello from a Tenstorrent p150.", "response_format": "wav"}' -o hello.wav # text to speech
curl -s localhost:20000/v1/chat/completions -H 'Content-Type: application/json' \
-d '{"messages": [{"role": "user", "content": "What is the capital of South Korea?"}]}' # text chat
Clone a voice once, then speak with it (the uploaded audio is not stored, only derived features):
curl -sLo ref.wav $base/voice_ref_en/sample.wav
curl -s localhost:20000/v1/voices -F name=alice -F file=@ref.wav
curl -s localhost:20000/v1/audio/speech -H 'Content-Type: application/json' \
-d '{"input": "This voice was cloned from a short clip.", "voice": "alice"}' -o clone.wav
Capabilities
This package exposes the model's own HTTP server on port 20000, not an OpenAI-compatible chat API β its request and response shapes are the model's own. See the author's notes for the payload it expects.
One server serves every task; the routes follow OpenAI's audio and chat APIs. GET /health reports readiness,
GET /info the engines, the device, the configuration and the licence; GET /v1/models lists the model.
| task | route | input | output |
|---|---|---|---|
| speech recognition (STT) | POST /v1/audio/transcriptions |
multipart file (WAV, FLAC, OGG, MP3; any rate; up to 36 s) or a headerless 16-bit PCM body with sample_rate; optional prompt = the transcription instruction (default "Transcribe the audio into text") |
{"text"} (response_format json, text, verbose_json); stream: true = SSE transcript.text.delta |
| spoken question -> text answer (SpeechChat) | POST /v1/chat/completions |
a user message with an input_audio part {"data": base64, "format": "wav"} |
chat.completion; stream: true = SSE chunks |
| written question, with or without a clip (TextQA), multi-turn chat | POST /v1/chat/completions |
messages with system / user / assistant turns, text and input_audio parts |
same |
| text to speech (TTS) | POST /v1/audio/speech |
input, voice (default = a voice the model picks, or a stored voice) |
24 kHz audio (wav, pcm 16-bit, f32, flac); stream: true = chunked audio while it is generated |
| voice cloning | POST /v1/audio/speech |
voice (stored with POST /v1/voices) or speaker_audio (base64 clip, one request) |
same |
| continuation | POST /v1/audio/speech |
ref_audio (base64) + ref_text (its transcript), or continuation: true with a stored voice that kept its clip |
the audio that continues the clip (without the clip) |
| voices | GET /v1/voices, POST /v1/voices, DELETE /v1/voices/{name} |
multipart name, file [, ref_text, keep_codes] |
the stored voice; only derived features are kept (speaker embedding, the clip's codec codes and transcript), never the audio |
POST /tts is the native TTS route (the same fields; JSON answer with base64 audio and timings, or server-sent
events with float32 PCM packets). Per-request parameters (the official names and defaults of the model's own
code): temperature (STT 0.2, text 0.7, speech 1.2; > 0), top_k (20; 0 = off, at most 64), top_p (0.8),
seed (random when absent; the same seed gives the same output on this package), max_new_tokens (max_tokens
on chat; 512 for STT / TTS, 1024 for text), ras_enabled / ras_window_size / ras_repetition_threshold
(speech: true / 50 / 0.5), continuation_silence_frames (0..8), sample_rate of the returned audio (8-48 kHz),
speed (only 1.0).
- Streaming audio: the first packet arrives after 2 frames (the newest 80 ms frame is held back for the model's final-frame trim), then packets of 4 frames (320 ms). The decoder is stateful, so the streamed audio equals the complete file of the same request and seed.
- Errors: 400 with the reason (empty text, a value out of range,
top_kabove 64, a prompt longer than 512 positions, audio longer than 36 s, undecodable audio), 404 unknown voice, 413 body too large, 415 unsupported content type, 429 when 8 requests already wait (Retry-After), 503 while starting or after a queue timeout, 500 with the exception text on a device failure. - A Python API with the same parameters (
tt_raon.api.RaonSpeech:transcribe,speech_chat,textqa,chat,tts,tts_continuation,add_voice) and a command line (python -m tt_raon.cli) are described incode/PYTHON.md; they need a tt-metal build with the two patches inpatches/.SERVING.mdhas the full request contract.
Configuration
The server builds its device programs for one configuration when it starts; change it with environment variables
in the container's launch command (tt-model serve --print prints it) and start it again. GET /info reports it.
| item | environment variable | values | default |
|---|---|---|---|
| context (prompt + generated steps) | RAON_MAX_POSITIONS |
256 .. 65536, a multiple of 64 | 4096 (about 5 minutes of audio) |
| prompt lengths compiled at start | RAON_PREFILL_BUCKETS |
up to the context | 32,64,128,256,512 (the longest prompt: 512 positions) |
| input audio per request | RAON_MAX_AUDIO_SECONDS |
1 .. 3600 (bounded by the longest prompt: 12.5 positions per second) | 36 |
| reference clip (cloning, continuation) | RAON_MAX_REF_SECONDS |
1 .. 600 | 30 |
largest top_k |
RAON_K_MAX |
1 .. 1024 | 64 |
| talker policy | RAON_TALKER_POLICY |
lazy (the talker catches up when the model starts speaking), always |
lazy |
| device engines | RAON_ENGINE |
auto (megakernels); per stage thinker, talker, cp, codec = mk, ttnn (tt-nn operations, slower) or host (float32 on the CPU, slow) |
auto |
| weight formats | RAON_PROFILE |
bfp8 (the only profile the gates ran with) |
bfp8 |
| queue | RAON_QUEUE_DEPTH, RAON_QUEUE_TIMEOUT_S |
waiting requests, seconds | 8, 600 |
| stored voices | RAON_VOICES |
a directory inside the container (mount one) | unset (memory only) |
Example output
Generated by this package on a p150 (its HTTP server with the shipped defaults, fixed seeds); every request, the
response headers, the client-side times and the files' sha256 are in media/demos.json.
The audio and texts are output of Raon-Speech-9B: CC BY-NC 4.0, non-commercial use only. The input clips are
evaluation clips of the official krafton-ai/Raon-Speech repository
(Apache-2.0); attributions for every file in media/: media/ATTRIBUTION.md.
| demo | request and output |
|---|---|
| WAV | TTS, English, a sampled voice: "Hello from a Tenstorrent p150. This sentence was spoken by Raon-Speech-9B on a single Blackhole chip." |
| WAV | TTS, Korean, a sampled voice (seed 12; the first seed tried, 11, stopped after 0.32 s, the random-voice failure described under limitations): "μλ νμΈμ. μ΄ λ¬Έμ₯μ ν μ€ν λ νΈ p150 μΉ© ν κ°μμ μμ±λ μμ±μ λλ€." |
| WAV | voice cloning: the shipped 4 s clip voice_ref_en stored with POST /v1/voices, then "This voice was cloned from a four second clip, and the speech was generated on a Tenstorrent p150." |
| WAV | continuation of the shipped clip continuation_ref_en ("I tell you, sir, that two persons exist in you; ...") with "And then we all went home together." |
| WAV | STT of the shipped Korean clip: "μμμ΄. νλ² μΌλ¨ κ°μ λΆλͺν 보λ κ² κ°μ₯ μ€μν κ² κ°μ." |
| WAV | SpeechChat, the spoken question answered in text: "Ozone is a reactive allotrope of oxygen. ..." (the whole answer in demos.json) |
| TextQA (text only) | "What is the capital city of South Korea? Answer in one sentence." -> "The capital city of South Korea is Seoul." |
Expected performance
Agreement with the float32 model of the official code on the CPU (same weights, prompts and sampling settings) of the shipped engines, teacher forced (the device fed the official float32 rows and codes, its distribution compared at every step), over the 13 golden runs (English and Korean STT, SpeechChat, TextQA, TTS, cloned TTS, continuation):
| stage | metric | measured | criterion | the official bfloat16 code |
|---|---|---|---|---|
| thinker (text) | total-variation distance (TVD) of the sampling distribution per step, pooled; top-1 / top-5 agreement | ~0.005; 1.000 / 1.000 | mean <= 0.02, p95 <= 0.06; top-1 >= 0.97 | TVD ~0, top-1 1.0 (cases without audio input) |
| talker (first codebook, T 1.2) | TVD mean / p95; top-1 | 0.0025-0.0134 / <= 0.0146; 0.991-1.000 | <= 0.032 / 0.12; >= 0.95 | 0.010-0.016 / 0.026-0.058; 0.983-0.991 |
| code predictor (15 codebooks, greedy) | top-1 over all groups (lowest group); raw TVD mean / p95 | 0.949 (0.911); 0.022 / 0.045 | >= 0.91 (0.85); <= 0.06 / 0.12 | top-1 0.944-0.977 |
| output adaptor | next input row PCC; max abs error | >= 0.99994; <= 1.3e-3 | ||
| audio encoder + adaptor | PCC per 8 s chunk | >= 0.9993 | >= 0.999 | 0.988-0.999 |
| Mimi decoder (streamed 1, then 4 frames) | SNR / PCC vs a float32 one-pass decode | 47.6-52.4 dB / >= 0.999991; any packet schedule bit-identical | >= 39 dB / 0.9999 | 41.2-45.8 dB |
End to end on the device (free running, the device's own sampling; transcripts by Qwen3-ASR-1.7B on the CPU with the language forced; speaker similarity = cosine of raw ECAPA embeddings of the output and the reference clip):
| task | measured | float32 model |
|---|---|---|
| STT, golden clips: WER (English, 8.5 s) / CER (Korean, 11 s) | 0.031 / 0.000 | 0.031 / 0.000 |
| STT, 8 more clips (English: conversational, audiobook 30 s, LibriSpeech; Korean: conversational x 2, read, FLEURS) | WER 0.000, 0.010, 0.000, 0.059 ("Mr." read as "mister"); CER 0.000, 0.196, 0.000, 0.000 | the 0.196 clip: 0.217 (the same misheard words); LibriSpeech: the same "mister" |
| TextQA / SpeechChat | answers equal the official float32 answer where it is greedy-like (gender, capital city); sampled answers diverge after 5-10 words, as two official runs with different seeds do | |
| TTS (5 prompts: English / Korean, random / cloned voice, continuation) x 3 seeds | WER / CER 0.000 on all 15 | 0.000 (one run per prompt) |
| TTS with a cloned voice (English 16 runs, Korean 21), continuation (16), long TTS of 17-20 s (3) | WER / CER 0.000 on every run; lengths within 1.1 x the float32 sample | |
| TTS with a random voice (no speaker): English 23 runs, Korean 21 | WER > 0.15 in 3 / 23 (two run-aways to 10-21 s, one stop after 1.4 s) and 1 / 21 (a run-away to the 41 s cap); "Oh" for "Hello" in 2 runs | a similar tail: with the device's seed the float32 model also runs away (seed 99: 134 frames, WER 0.8). Replaying device runs through the float32 model: on the 1.4 s run float32 stops at the same frame with probability 1, on the 21 s and 41 s run-aways it gives the end of speech no probability in the first 80 / 190 frames, and every device choice lies inside the float32 sampling set; in one garbled run (an independent verification) two choices fell just outside the float32 top-p set. The tail is mostly the model's own behaviour, with some contribution from device sampling near top-p ties |
| cloned voice similarity to the reference clip, mean over 13 seeds: English / Korean / continuation | 0.692 / 0.735 / 0.653 (single runs 0.57-0.79) | 0.714 (1 run) / 0.746 (6 runs) / 0.651 (6 runs); criterion: within 0.03 of float32 |
| determinism | the same seed gives bit-identical tokens, codes and PCM, also across server restarts; streamed PCM == complete PCM | |
| soak | 65 mixed requests back to back (STT, TextQA, chat, TTS, cloning): no error, every stop valid, the first request repeated at the end bit-identical |
| speed (batch 1, warm, one p150) | first token / first audio packet after the request | per step | real-time factor |
|---|---|---|---|
| text question, no audio (22 prompt rows) | 38-44 ms | 20.4 ms per token | |
| STT, 8.5 s clip (106 rows) / 30 s clip (394 rows) | 76-87 ms / 172 ms | 20.6-20.9 ms per token | 38 tokens in 0.84 s / 119 tokens in 2.6 s |
| SpeechChat, 4.9 s question (71 rows) | 68-81 ms | 20.5 ms per token | |
| TTS, random or stored voice (27-28 rows) | first packet 66-81 ms | 21.6-22.0 ms per 80 ms frame, codec included | 0.28-0.30 |
| TTS with a one-off clip (speaker encoder on the host) | first packet 0.2-0.34 s | same | 0.33-0.37 |
| continuation of a stored voice (7 s clip, 139 rows) / of a one-off clip (host Mimi encoder) | first packet 146-184 ms / 0.74-1.05 s | 22.0-22.3 ms per frame | 0.35 / 0.6 for 2.5 s of audio |
| long TTS, 17-20 s of audio | first packet 81-89 ms | 22.2 ms per frame | 0.28 |
| served by the container over HTTP on loopback | streamed TTS with a stored voice: first audio bytes 153-158 ms; a written question answered in 224 ms (10 tokens); STT of an 11 s clip complete in 0.59-0.63 s; 9.4 s of speech complete in 2.7 s | ||
| container start-up | first start 857-1062 s (builds 16 GB of caches, compiles the kernels); later starts 77-205 s (host load, cache-disk speed) |
One step = the 36-layer thinker plus, while speaking, the talker, the code predictor and the output adaptor, one replayed trace per step (thinker 19.9 ms per text token and 18.2 ms per audio frame alone; talker + code predictor + adaptor 2.5 ms; Mimi decoder 1.7-2.1 ms per packet); the host reads the device state once per 4 steps. The first token waits for the thinker's tt-nn prefill (34 ms for up to 32 prompt rows, 47 ms for 128, 114 ms for 512) and, for STT, the audio encoder; the first audio packet waits for one more frame (the final-frame trim). The start-up ends with one short internal speech request (about 1 s), so the first request after a start is not slower than later ones (its first audio after 99 ms in a host run; 0.4-1.8 s before this warm-up existed). Measured on one p150 in an 8-vCPU host shared with other jobs.
For scale, KRAFTON's model card reports streaming TTS "measured with LibriSpeech test-clean samples on single-GPU setups": a real-time factor of 0.27 with the first audio chunk after 617 ms (RTX 6000 Pro), 0.45 and 887 ms (L40S). This release does not yet reach the port's own targets of 50 ms to the first audio packet and 20 ms per text token: the thinker's prefill takes 34 ms of the first packet, and a prefill megakernel is the planned next step.
Limitations
- Non-commercial use only (CC BY-NC 4.0 of the weights). Do not use it to impersonate people or to produce deceptive audio: clone only voices you have the right to use, and disclose synthetic speech where it matters. The package has no watermarking or consent check.
- No spoken answers. The official API's
force_audio_output(heremodalities: ["audio"]on chat) is accepted, but this checkpoint does not answer a question in speech: it produces a few seconds of near-silence or noise and no words (the official float32 code emits one silent frame). Answer in text, then speak the text with/v1/audio/speech. Full-duplex conversation belongs to the separate Raon-SpeechChat-9B model (not served). - Sampling makes every request different unless
seedis set; a seed reproduces the output on this package (same image, same settings), not the official PyTorch code's output for the same seed (sampling runs on the device with its own random-number generator). Text answers sampled at temperature 0.7 differ from the official code's after a few words, as two official runs with different seeds do. - TTS without a voice samples a new voice at every request and often starts or ends with 1-3 s of silence, in
the official float32 code as well. About 1 in 10 such requests goes wrong at the default temperature 1.2: it
runs on for 10-40 s (
max_new_tokensbounds it), stops after a word or two, or garbles a word. The float32 model shows a similar tail (see Performance): it is mostly the model's own behaviour, with some contribution from the device's sampling near top-p ties. Cloned and continued voices had no such failure in over 50 runs: use a stored voice for dependable output. - Long recordings with several speakers: on a 35 s clip with three speakers the transcript ended before the last speaker's short question more often than in the official float32 code; the end of the transcript is a near tie there, so the sampled path decides. Split such recordings, or check the end of the transcript.
- Prompts are at most 512 positions (
RAON_PREFILL_BUCKETS): about 36 s of input audio, or the equivalent text, per request; longer audio is refused rather than split. Context (prompt + output) is 4096 positions. - Batch 1: requests are served one at a time; up to 8 wait, more are refused with 429. One p150 only (device dispatch runs on the chip's Ethernet cores; multi-chip meshes are not supported).
- The speaker encoder (ECAPA) and the Mimi encoder of reference clips run on the host CPU in float32: a one-off clip adds 0.1-0.2 s (cloning) or about 0.6 s (continuation of a 7 s clip) to the first packet. Stored voices keep these features, so later requests skip them.
- Precision: the thinker, talker and code predictor weights are block floating point 8 (bfp8; the audio head bfloat16), with float32 accumulation, residual streams and attention statistics; KV caches bfloat16; the audio encoder and the Mimi decoder bfloat16 with float32 accumulation. "Performance" gives the measured agreement.
- STT and chat stream text token by token; the STT route does not accept streaming audio input (a websocket re-decoding mode is not implemented). MP3, Opus and AAC output are not available.
- Audio input shorter than 1 s per 8 s chunk is encoded with a padded convolution window (the official code convolves it unpadded): the last encoder row of such a chunk differs slightly.
- The first start compiles the device kernels and builds about 16 GB of caches (mostly the thinker's packed weights and tt-nn prefill tensors) into tt-model's persistent cache, in about 14-18 minutes; later starts reuse them and take about 80-210 s, depending on host load and the speed of the disk holding the caches.
Licensing
- Weights (not redistributed here;
tt servedownloads them at these commits): KRAFTON/Raon-Speech-9Bcd84c5bf, CC BY-NC 4.0 (Attribution-NonCommercial 4.0 International): non-commercial use only; credit KRAFTON for the model and its outputs. speechbrain/spkrec-ecapa-voxceleb0f99f2d0, Apache-2.0. Notices:code/tt_raon/licenses/NOTICE.md. - This package is a derivative work of Raon-Speech-9B: the inference code is written anew (prompt construction, sampling, the networks and the streaming codec follow the official remote code's behaviour, which was run on the CPU only to produce reference outputs), the networks run on the device in custom device kernels and tt-nn operations, and the weights are loaded unmodified. The audio encoder graph and the talker / code predictor / codec megakernels are adapted from the same author's Qwen3-ASR and Qwen3-TTS ports (Apache-2.0), parts of which follow tt-metal's demos (Copyright Tenstorrent AI ULC, Apache-2.0).
- Port, server and scripts (
code/) and the tt-metal patches inpatches/: Apache-2.0. The Apache-2.0 licence of the code does not extend to the weights: the CC BY-NC 4.0 terms govern any use of the model. - Demo audio and texts in
media/(demo_*.wav,demos.json): generated by this package from the Raon-Speech-9B weights, so CC BY-NC 4.0, non-commercial use only, credit KRAFTON; their input clips are the shipped samples below.media/ATTRIBUTION.mdlists every file. - Samples in
code/tt_raon/samples/: evaluation clips of the official repository krafton-ai/Raon-Speech (commitafec411), copied unmodified, Apache-2.0; provenance next to each clip.
Related packages
- changh95/Kokoro-82M: Kokoro text-to-speech on p150.
- changh95/embeddinggemma-2: text embeddings on p150.
- changh95/all-MiniLM-L6-v2: sentence embeddings on p150.
- changh95/GLM-OCR: document OCR on p150.
- changh95/PaddleOCR-VL: document parsing on p150.
- changh95/laya: a non-autoregressive decision model (choices, scores, yes / no) on p150.
- changh95/DepthPro2: Apple Depth Pro 2 metric depth on p150.
Feedback
Questions or problems with this package: open a discussion at https://huggingface.co/changh95/Raon-Speech-9B/discussions β that is what reaches its author. A problem with the tt tooling itself: tt report issue (collects your environment and opens a prefilled issue against tenstorrent/tt-cli). Product feedback: support@tenstorrent.com.
Provenance
The exact sources the image was built from β code/ in this repo is byte-identical to the model code inside the image:
| component | built from |
|---|---|
| tt-metal | 44d66500520fda9f2c7060c0f6b41ec48f7ab37e (dirty tree β the image includes uncommitted changes) |
code/ digest |
a33dd867cbcb27ce (sha256, first 16 hex digits) |
| built | 2026-12-02T04:09:56+00:00 by tt-model 0.1.0 |
Model tree for changh95/Raon-Speech-9B
Base model
KRAFTON/Raon-Speech-9B