ZaneSFL/zh-ppt-voice-agent-model-lora-support-interrupt
0123
zh-ppt-voice-agent-model-lora-support-interrupt
Base: Qwen/Qwen3-4B-Instruct-2507 PEFT: QLoRA,中文 PPT 语音助手多轮对话(含 TTS 插话场景下的应答)。
related works:
- https://huggingface.co/datasets/ZaneSFL/zh-ppt-voice-agent-interrupt-dialogues
- https://github.com/ZHYsfl/EducationAgent
Load
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = "Qwen/Qwen3-4B-Instruct-2507"
adapter = "ZaneSFL/zh-ppt-voice-agent-model-lora-support-interrupt"
tokenizer = AutoTokenizer.from_pretrained(adapter, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
base, torch_dtype="auto", device_map="auto", trust_remote_code=True
)
model = PeftModel.from_pretrained(model, adapter)按 Qwen Instruct 的 messages + apply_chat_template 推理即可。
