Views
No views yet
Qwen/Qwen3-1.7B。Qwen/Qwen3-1.7B70d244cc86ccca08cf5af4e1e306ecf908b1ad5e90b7d6c3d71e025e1336a2a585389f1dedab9b6f3c7f17f012e5a483c367ff7b5b16e905e1b2c7ddnuosu-mt-clean-recover-v2026080842| Split | Records | Notes |
|---|---|---|
| train | 159,083 | 94,532 lexicon, 16,077 published, 39,512 sentence, 8,962 short |
| validation | 7,131 | held-out validation projection |
| research test | 8,558 | full held-out generation test |
8,558 records, greedy, no_think):| Metric | Overall | Yi-target |
|---|---|---|
| Compact exact match | 3.76% | 2.47% |
| chrF2 | 10.93 | 13.70 |
| Reference contained | 5.68% | 3.35% |
| Replacement-character rate | 0.11% | 0.33% |
provenance/GATE_WAIVER.1from peft import PeftModel
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4base_id = "Qwen/Qwen3-1.7B"
5adapter_id = "NiceAsiv/Qwen3-1.7B-Nuosu-MT"
6
7tokenizer = AutoTokenizer.from_pretrained(adapter_id)
8base = AutoModelForCausalLM.from_pretrained(
9 base_id, torch_dtype="auto", device_map="auto"
10)
11base.resize_token_embeddings(len(tokenizer), pad_to_multiple_of=64)
12model = PeftModel.from_pretrained(base, adapter_id)
13
14messages = [{
15 "role": "user",
16 "content": "请将以下中文翻译为凉山规范彝文。只输出译文,不要解释。\n我今天去学校。",
17}]
18prompt = tokenizer.apply_chat_template(
19 messages, tokenize=False, add_generation_prompt=True,
20 enable_thinking=False,
21)
22inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
23output = model.generate(
24 **inputs, do_sample=False, max_new_tokens=256,
25 eos_token_id=tokenizer.eos_token_id,
26)
27print(tokenizer.decode(output[0, inputs["input_ids"].shape[-1]:],
28 skip_special_tokens=True).strip())no_think
mode. Use --thinking-mode thinking only when deliberately testing reasoning.1@software{axi2026nuosumt,
2 author = {Wuhe Axi},
3 title = {Qwen3-1.7B Nuosu MT LoRA},
4 year = {2026},
5 institution = {Xi'an Jiaotong University},
6 url = {https://huggingface.co/NiceAsiv/Qwen3-1.7B-Nuosu-MT}
7}