Downloads · 30 days
0
newtype-2038/qwen3-tts-yuna-lora
qwen3-tts-yuna-lora is a machine learning model from newtype-2038. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
LoRA fine-tuned adapter for Qwen/Qwen3-TTS-12Hz-1.7B-Base.
Downloads · 30 days
0
Access
Public
Updated Feb 28, 2026
Repo size
77 MB
Likes
1
Public
Click a slice to open those files.
.safetensors77 MB · 100%
From the Hugging Face model README
LoRA fine-tuned adapter for Qwen/Qwen3-TTS-12Hz-1.7B-Base.
import torch
from peft import PeftModel
from qwen_tts import Qwen3TTSModel
from safetensors.torch import load_file
# Load base model
model = Qwen3TTSModel.from_pretrained(
"Qwen/Qwen3-TTS-12Hz-1.7B-Base",
dtype=torch.bfloat16, # or float32 for MPS
attn_implementation="flash_attention_2", # or "eager" for MPS
device_map="cuda", # or "mps"
)
# Load LoRA adapter
model.model.talker = PeftModel.from_pretrained(
model.model.talker,
"tonymustbegreat/qwen3-tts-yuna-lora",
)
# Load speaker embedding
spk = load_file("tonymustbegreat/qwen3-tts-yuna-lora/speaker_embedding.safetensors")
# Inject into codec embedding at position 3000
model.model.talker.model.model.codec_embedding.weight.data[3000] = spk["speaker_embedding"]
# Generate speech
wavs, sr = model.generate_custom_voice(
text="안녕하세요, 이것은 파인튜닝된 음성입니다.",
speaker="yuna",
)
adapter_config.json - LoRA configurationadapter_model.safetensors - LoRA weights (77MB)speaker_embedding.safetensors - Speaker embedding vectortts_config.json - Custom voice TTS config