CoolFace
Modelpublic

Aye10032/Qwen3-ASR-Refiner-4B

sourceHugging Faceapache-2.0updated 1mo agoView on Hugging Face
0likes164downloads
Model Card

Qwen3 ASR Refiner

Qwen3 ASR Refiner is a family of models that converts Chinese ASR transcripts and other spoken-style text into concise, natural written Chinese while preserving the original meaning. All variants are fine-tuned on `Aye10032/WenetSpeech-Formal-Text` with the same task definition and training recipe.

Model family

VariantBase modelModel repository
0.6BQwen/Qwen3-0.6B`Aye10032/Qwen3-ASR-Refiner-0.6B`
1.7BQwen/Qwen3-1.7B`Aye10032/Qwen3-ASR-Refiner-1.7B`
4BQwen/Qwen3-4B`Aye10032/Qwen3-ASR-Refiner-4B`

The LoRA adapter has been merged into the base model. This repository contains complete BF16 Transformers weights and can be loaded directly without PEFT.

Usage

python
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = 'Aye10032/Qwen3-ASR-Refiner-4B'
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype='auto', device_map='auto')

messages = [
    {
        'role': 'system',
        'content': '将中文口语转写改写为正式、自然的书面语。保持原意,不添加原文没有的信息,只输出改写后的文本。',
    },
    {'role': 'user', 'content': '呃这个事情吧我们之后再讨论一下。'},
]
text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
    enable_thinking=False,
)
inputs = tokenizer(text, return_tensors='pt').to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256, do_sample=False)
answer = tokenizer.decode(outputs[0, inputs.input_ids.shape[1]:], skip_special_tokens=True)
print(answer)

The source dataset is licensed under CC BY 4.0. Refer to its dataset card for attribution and citation information.