pnnbao-ump/ngochuyen_voice
Viewer • Updated • 7.54k • 267 • 7
How to use pnnbao-ump/VieNeu-TTS-0.3B-lora-ngoc-huyen with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("pnnbao-ump/VieNeu-TTS-0.3B")
model = PeftModel.from_pretrained(base_model, "pnnbao-ump/VieNeu-TTS-0.3B-lora-ngoc-huyen")Configuration Parsing Warning:Config file tokenizer_config.json cannot be fetched (too big)
LoRA adapter được fine-tune từ base model VieNeu-TTS-0.3B để huấn luyện giọng đọc Ngọc Huyền (Vbee).
Code finetune VieNeu-TTS tại repo: https://github.com/pnnbao97/VieNeu-TTS
pnnbao-ump/VieNeu-TTS-0.3Bgit clone https://github.com/pnnbao97/VieNeu-TTS.git
cd VieNeu-TTS
uv sync
uv run gradio_app.py
Mở trình duyệt tại http://127.0.0.1:7860, chọn Custom Model ở phần Backbone và điền pnnbao-ump/VieNeu-TTS-0.3B-lora-ngoc-huyen vào ô model name.
Base model
pnnbao-ump/VieNeu-TTS-0.3B