Instructions to use shahvandit/qwen3-tts-tokenizer-multi-codebook-hf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shahvandit/qwen3-tts-tokenizer-multi-codebook-hf with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="shahvandit/qwen3-tts-tokenizer-multi-codebook-hf")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("shahvandit/qwen3-tts-tokenizer-multi-codebook-hf", device_map="auto") - Qwen3-TTS
How to use shahvandit/qwen3-tts-tokenizer-multi-codebook-hf with Qwen3-TTS:
# pip install qwen-tts import torch import soundfile as sf from qwen_tts import Qwen3TTSModel model = Qwen3TTSModel.from_pretrained( "shahvandit/qwen3-tts-tokenizer-multi-codebook-hf", device_map="cuda:0", dtype=torch.bfloat16, attn_implementation="flash_attention_2", ) wavs, sr = model.generate_custom_voice( text="Your text here.", language="English", speaker="Ryan", instruct="Speak in a natural tone.", ) sf.write("output.wav", wavs[0], sr) - Notebooks
- Google Colab
- Kaggle
Qwen3-TTS multi-codebook tokenizer (Transformers conversion)
Conversion of the Qwen3-TTS multi-codebook (12Hz) speech tokenizer to the Transformers implementation added in huggingface/transformers#44517. Stored in float32, matching the original.
Converted from Qwen/Qwen3-TTS-Tokenizer-12Hz with the conversion script that
ships with the model. The tensors are unchanged: conversion only renames state dict keys to match the
Transformers module layout, fuses the code predictor's per-group lm_head layers into one projection,
and rewrites the configuration.
This checkpoint exists so the integration tests have something to fetch while the model is under review. Once merged, a Transformers-compatible checkpoint is expected to be hosted by the Qwen team.
Usage
from transformers import Qwen3TTSTokenizerMultiCodebookModel
model = Qwen3TTSTokenizerMultiCodebookModel.from_pretrained("shahvandit/qwen3-tts-tokenizer-multi-codebook-hf")
License
Apache 2.0, inherited from the original model.
- Downloads last month
- 16
Model tree for shahvandit/qwen3-tts-tokenizer-multi-codebook-hf
Base model
Qwen/Qwen3-TTS-Tokenizer-12Hz