← Back to Leaderboard
Fandimarafioti

andimarafioti/faster-qwen3-tts

Local Qwen3-TTS streaming with Torch graphs and a native GGML backend

View on GitHub ↗
Engineering Health (Methodology)
A · 82/100
Maintenance Activity
● Updated 1mo ago
Latest Release
v0.5.4
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance26/35
Fork Adoption19/25
Release Cadence17/20
License Clarity20/20
Self-HostedLocal AIGPUAPI
Total Stars
★ 1,447
24h Growth
+1
7d Growth
+12
Forks
203

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

andimarafioti/faster-qwen3-tts Star History (2026-02-15 - 2026-12-03) ALL-TIME STAR HISTORY (2026-02 – 2026-12) +1.4k in 291d · avg +5/day 1.5k 764 0 2026-02-15: ★ 12026-03-07: ★ 4402026-03-28: ★ 7592026-04-18: ★ 8592026-05-09: ★ 9692026-05-30: ★ 1,0642026-06-20: ★ 1,1172026-07-11: ★ 1,1912026-08-01: ★ 1,2672026-08-22: ★ 1,3152026-09-12: ★ 1,3422026-10-03: ★ 1,3652026-10-24: ★ 1,3932026-11-11: ★ 1,4212026-12-03: ★ 1,447 ★ 1.4k 2026-02 2026-07 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Faster Qwen3-TTS is a Python inference engine with two execution paths. The Torch path uses a static cache and captures decode work with torch.cuda.CUDAGraph to reduce per-step overhead. On AMD ROCm, PyTorch exposes the same torch.cuda API, so the backend remains torch and the device remains cuda. The experimental GGML adapter delegates inference to the native qwentts.cpp runtime through qwentts-cpp-python.

Applications load the engine through FasterQwen3TTS.from_pretrained or use the faster-qwen3-tts CLI. Streaming generation yields audio chunks with sample rate and timing data; full generation returns the audio at once. warmup(prefill_len=100) captures Torch graphs ahead of requests and is a no-op on GGML. For HTTP integrations, examples/openai_server.py wraps synthesis behind an OpenAI-compatible speech endpoint rather than requiring clients to use the Python interface.

Key Capabilities & Differentiators

The model lineup covers 0.6B and 1.7B Base voice cloning via speaker embeddings (xvec) or full in-context conditioning (ICL), plus 1.7B CustomVoice and VoiceDesign. GGML can cache reference audio as .spk speaker latents and .rvq acoustic latents or accept those assets directly. The example server maps requested voice names to reference configurations and streams WAV and PCM; MP3 requires pydub.

On the RTX 4090, the CUDA Graphs benchmark reduced time to first audio from 800 ms to 156 ms for 0.6B and from 850 ms to 174 ms for 1.7B. The corresponding generation rates were 4.78× and 4.22× real time, using the project's convention of audio duration divided by generation time. These are benchmark results, not service latency budgets: the 1.7B model reached only 0.925× real time and 1,096 ms to first audio on a Tesla T4.

Trade-offs & Limitations

The graph path improves time to first audio against the upstream dynamic-cache baseline on the listed hardware, but its static-cache output is not bit-identical: kernel and reduction order differ, so assess the supplied audio pairs and listen to your own material. Chunking also trades latency for throughput. On Jetson AGX Orin with 0.6B, a one-step chunk starts at 240 ms but generates at 0.750× real time; two steps start at 266 ms and reach 1.042×, the smallest tested chunk that sustains real-time output.

Audio streaming is independent of non_streaming_mode, which controls how input text is fed into generation. GGML can stream audio but cannot honor explicit step-by-step text feeding through its current ABI; it warns and uses its native layout. Compared with a managed alternative such as ElevenLabs, self-hosting gives you control over where inference and reference files live, but you own runtime compatibility, capacity planning, and service operations. The example endpoint supplies the speech API contract, not a verified production serving stack.

Hardware & Deployment Guide

Install faster-qwen3-tts with Python 3.10+; the Torch path requires PyTorch 2.5.1+ and a compatible CUDA or ROCm environment. Match the NVIDIA driver to the PyTorch build; RTX 50-series Blackwell uses CUDA 12.8 wheels. The validated MI300X VF Torch setup used ROCm 7.2.4, PyTorch 2.9.1 and transformers==5.15.1. Do not install qwen-tts-hf alongside qwen-tts, as both provide the qwen_tts package.

On macOS 14+ with native Apple Silicon Python, the default installation includes GGML Metal; the wheel does not support Intel Macs or Rosetta Python. Elsewhere, use the ggml extra with a matching native runtime. AMD GGML requires a source build with GGML_HIP=ON and selection of ROCm0; the published Linux wheels are for NVIDIA CUDA. For local HTTP serving, install the demo extra and run the example server from a checkout. v0.5.4 moved the GGML dependency to qwentts-cpp-python 0.5.0 with ABI v5 and kept native diagnostics quiet by default, with --verbose available for troubleshooting.

Graph execution: The Torch path uses a static cache and torch.cuda.CUDAGraph on NVIDIA CUDA and AMD ROCm.
Native backend: GGML uses qwentts.cpp; v0.5.4 requires qwentts-cpp-python 0.5.0 or newer, with ABI v5 in that release.
Streaming controls: Audio chunk size and text-feeding mode are separate; GGML uses its native prompt layout.
Reference reuse: GGML caches speaker and acoustic latents as .spk and .rvq and accepts precomputed references.
API integration: The example POST /v1/audio/speech server routes named voices and streams WAV or PCM.
Hardware validation: Both backends were tested on MI300X VF with ROCm 7.2.4; GGML needed a HIP source build.
Best For

Self-hosted voice agents or local playback pipelines that need early audio, local control of reference material, and a team that can benchmark and operate the target hardware.

Skip If

You need managed capacity and service guarantees, or your chosen GGML deployment must support step-by-step text feeding.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Self-HostedLocal AIGPUAPI
pip install faster-qwen3-tts

Comparison vs. Top Voice, Vision & Video Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
faster-qwen3-tts ★1.4k+12PythonMITLocal Qwen3-TTS streaming with Torch graphs and a native GGML backend
fish-speech34k+84Python—Self-hosted PyTorch speech inference for directed, multi-speaker audio
voicebox61.8k+399PythonMITLocal-first voice studio with multi-engine speech synthesis, dictation and MCP.
ChatTTS40.1k+24PythonAGPL-3.0Local autoregressive TTS for expressive Chinese and English dialogue

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/andimarafioti/faster-qwen3-tts.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

andimarafioti/faster-qwen3-tts Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about faster-qwen3-tts

Can I connect an OpenAI-compatible client without writing an adapter?

Run examples/openai_server.py with the demo extra and point the client at POST /v1/audio/speech. With --voices, the request’s voice field selects a named reference configuration. WAV and PCM stream during generation; MP3 requires pydub.

How much GPU memory do I need, and how should I size the service?

There is no verified minimum VRAM figure. Benchmark the 0.6B or 1.7B checkpoint on the intended backend, then measure peak memory, cold and warm first-audio latency, and throughput at your expected concurrency. The streaming chunk size changes the latency/throughput balance; the Torch and GGML runtimes should be sized separately.

What should I check before using it commercially or hosting it internally?

The engine code is MIT-licensed, which permits commercial use subject to its notice requirements. Check the terms for model weights and dependencies separately, and confirm that you have permission to use any speaker references. If those references are sensitive, include cached .spk and .rvq files in your data-retention policy.

When is it a better fit than upstream Qwen3-TTS or ElevenLabs?

Choose it over upstream Qwen3-TTS when local first-audio latency matters and you can validate the accelerated output on your own prompts; the static-cache and dynamic-cache paths are not bit-identical. Compared with a managed service such as ElevenLabs, this gives you control over inference and reference audio placement, but you take on hardware, scaling, and API operations. There is no verified head-to-head quality result here.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining andimarafioti/faster-qwen3-tts? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature andimarafioti/faster-qwen3-tts on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare