MOSS-TTS-Local-Transformer-v1.5-EXL3-5bpw

A custom mixed-precision MOSS checkpoint with native EXL3 K=5 packed transformer linears. Conversion and all model synthesis ran on one NVIDIA RTX 3090 in an i7-12700KF host. Hermes client wall times also include each client machine and its network transport. This repository contains actual packed weights and the matching loader.

Format and source

  • Source: OpenMOSS-Team/MOSS-TTS-Local-Transformer-v1.5, pinned revision be7766a6735b98bd793f7c79fb720b4d0f5d13b8.
  • EXL3 source: turboderp-org/exllamav3, revision 02aef45cd681b960a00afcd0749a4ab99e6c1bfe.
  • Logical original parameters (unique, excluding tied aliases): 4,129,990,144. The Hub may count packed storage elements; that automatic total is not the original model parameter count.
  • Native quantized matrices: 252, each trellis K=5.
  • Tensor payload: 3.044 GiB.
  • Effective serialized tensor bits per unique original parameter: 6.331. This includes high-precision protected parameters and scale/packing metadata; “5-bit” describes the listed EXL3 matrices.
  • The tied text embedding/output head, all 12 audio embedding/head pairs, the local frame transformer, normalization, and other non-backbone parameters remain BF16.
  • Quantization uses activation-calibrated LDLQ, sigma regularization 0.025, multiplicative scaling, and per-row power-of-two range guards. Native packed-kernel outputs are checked against reconstructed quantized matrices.
  • Large matrix batches may use temporary FP16 reconstruction inside ExLlamaV3; there is no permanent dense-weight cache.

Custom loader required

This architecture uses the original MOSS PyTorch graph around EXL3 kernels. It is not a stock ExLlamaV3 causal-LM conversion, and default AutoModel.from_pretrained is deliberately blocked to prevent accidentally loading packed weights as an unquantized model.

Install an appropriate CUDA PyTorch environment, Transformers, accelerate, safetensors, soundfile, torchaudio and NumPy, plus the pinned ExLlamaV3 runtime:

pip install "git+https://github.com/turboderp-org/exllamav3@02aef45cd681b960a00afcd0749a4ab99e6c1bfe"
pip install transformers accelerate safetensors huggingface_hub soundfile torchaudio numpy

A compatible CUDA toolkit/compiler is required when building the ExLlamaV3 extension from source. The included runtime version report records the actual measured environment.

Synthesize 48 kHz stereo speech

import sys
import soundfile as sf
from huggingface_hub import snapshot_download

tts_dir = snapshot_download("groxaxo/MOSS-TTS-Local-Transformer-v1.5-EXL3-5bpw")
codec_dir = snapshot_download("groxaxo/MOSS-Audio-Tokenizer-v2-EXL3-5bpw")
sys.path.insert(0, tts_dir)
from tts_pipeline import load_runtime

runtime = load_runtime(tts_dir, codec_dir, device="cuda:0")
audio, sr, metrics = runtime.synthesize(
    "Hola. Espero que estés teniendo un buen día.",
    language="Spanish",
    seed=1234,
)
sf.write("speech.wav", audio, sr)
print(metrics)

Audio is shaped [samples, 2], at 48,000 Hz. These tests use the TTS model's fixed 12 RVQ codebooks. Standalone codec quality at other RVQ depths has not been established by this benchmark.

Measured end-to-end real-time factor

RTF is elapsed synthesis time divided by output audio duration; lower is faster. Timings include complete utterance generation and codec decoding, exclude initial model loading, and exclude one warm-up utterance. The same four held-out English/Spanish prompts and two seeds are used for all profiles.

Profile Pooled RTF Median RTF Peak allocated VRAM GiB
bf16_fp32 0.4009 0.3989 16.20
exl3_fp32 0.5171 0.5169 11.35
exl3_exl3 0.5151 0.5124 4.73

The complete EXL3 pair used 70.8% less peak allocated GPU memory, while its measured RTF was 1.28× the original pipeline's RTF. It remained 1.94× faster than real time. This conversion's demonstrated end-to-end benefit is memory reduction; the measured full TTS path is slower than the original BF16 pipeline.

These are full-utterance timings, not time-to-first-streaming-audio claims. The same prompts and seeds can produce different speech durations after quantization; each RTF uses its actual output duration. The exact per-utterance durations, generation/decode split, output validation, settings and hardware are in the attached benchmark JSONs. Codec-only results below use their own repeated, warmed harness and should not be substituted for the measured end-to-end decoder latency.

The published runtime uses a dynamic total-length output-scaling kernel, avoiding a separate Triton compilation for every new utterance length. After this bounded fix, all 16 quantized-profile WAVs remained byte-for-byte identical and both profiles passed repeated-seed token checks. The earlier timing reports remain in reports/history/length-specialization; the tables above use the final fresh-process measurements.

Initial proxy deployment measurements

On the 12700 host, model moss-tts-local-v1.5-exl3-5bpw is available through port 12434. Four English/Spanish requests returned native 48 kHz stereo PCM16 WAVs.

  • Pooled warm HTTP RTF: 0.7887, including the proxy and transport.
  • Pooled backend-header RTF: 0.5657, including synthesis and WAV encoding.
  • Excluded cold warmup: 21.567 seconds HTTP time for 4.88 seconds of audio.

These initial deployment measurements predate the model-lookup optimization documented below. This four-request serving workload differs from the eight-case direct benchmark. These are full-utterance responses. See proxy validation and the deployment recipe.

Hermes default voice integration

The portable Hermes adapter uses Hermes's supported command-provider interface. It preserves native 48 kHz stereo PCM16 WAV, speed 1.0 and the model default voice. See installation and configuration.

The integration was tested through Hermes's actual default text-to-speech tool on two Linux hosts and one Mac. Each synthesized the same English and Spanish test sentences. All three hosts produced identical WAV hashes for matching input, and a local CPU-int8 Whisper check found 1/23 word errors. This is a small intelligibility check, not a naturalness or speaker-identity score. The adapter sends explicit JSON null for language, which selects the upstream unconstrained language mode; an explicit English or Spanish override is also supported.

The final adapter was checked with two actual-tool calls per host and no excluded first call:

Client Audio seconds Complete tool seconds Pooled client-inclusive RTF
Linux GPU server 8.08 6.206 0.7681
Linux client 8.08 6.660 0.8242
macOS client 8.08 8.896 1.1010

These client timings include process dispatch, network transport and possible server queue/start costs. Initial validation runs are also retained in the report. The Mac path had approximately 263 ms TCP connection time and 530 ms for a tiny response; its measured short-utterance RTF exceeded one. These results do not establish end-to-end realtime synthesis on that remote path.

The shared proxy was optimized to check the requested model's availability without probing unrelated backends. In six warm HTTP requests (two sentences repeated three times), pooled RTF changed from 0.8861 to 0.5177; median overhead outside the synthesis backend changed from 1.0676 s to 0.0052 s. All six before/after WAV pairs were byte-identical, and checkpoint weights were unchanged. One warmup was excluded on each side. This smaller serving workload is separate from the eight-case direct benchmark above.

Listen to the actual default-provider samples: English and Spanish.

See Hermes validation, routing optimization measurements, and the intelligibility check.

Held-out intelligibility check

The same local Faster Whisper large-v3 CPU INT8 recognizer was used for all eight utterances in each profile. These are recognizer-based estimates on a small English/Spanish test set, not a voice-naturalness or speaker-similarity score.

Profile Word errors / reference words Pooled word error rate
bf16_fp32 0/154 0.00%
exl3_fp32 0/154 0.00%
exl3_exl3 0/154 0.00%

Listen to paired examples: Spanish original, Spanish EXL3, English original, English EXL3.

Codec-only checks

  • Original FP32 codec pooled decode RTF: 0.03166.
  • Quantized codec pooled decode RTF: 0.01992.
  • Original FP32 streaming decoder RTF at 0.32-second chunks: 0.13667.
  • Quantized streaming decoder RTF at 0.32-second chunks: 0.19770.
  • Full-utterance codec decode was 1.59× faster. Small-chunk streaming decode was 44.7% slower, while still operating at 5.06× real time. These are codec-only measurements, separate from complete TTS synthesis.
  • Held-out identical-code decoder numeric gates passed: True.
  • Protected codec parameters were checked bit-for-bit against the source.
  • Encoder code agreement, identical-code reconstruction metrics and per-clip results are in codec-benchmark.json. Numerical and ASR checks are limited proxies for perceived voice quality.

The codec-only measurements were collected before the final dynamic-length output-scaling optimization. They describe that measured kernel version; the quantized weights and validated waveform outputs are unchanged. The end-to-end table uses the final runtime.

Calibration

The recipe uses 32 original BF16-generated speech examples: 16 Spanish, 12 English and 4 code-switching prompts. Some TTS calibration contexts include synthetic reference audio codes. Calibration and evaluation texts are separate. One generation that reached the frame limit was rejected and regenerated with a recorded alternate seed. No personal voice recordings were used.

See RECIPE.md, PRIOR_RECIPE.md, exl3_manifest.json, and the reports for protected tensors, per-matrix audits, source pins and reproducible scripts. The upstream Apache-2.0 license applies; original MOSS author attribution is retained in the model source files.

Downloads last month
63
Safetensors
Model size
2B params
Tensor type
BF16
·
F16
·
I16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for groxaxo/MOSS-TTS-Local-Transformer-v1.5-EXL3-5bpw

Quantized
(9)
this model