Downloads · 30 days
16
18% of all-time downloads
NiceAsiv/Qwen3-1.7B-Base-Nuosu-LoRA
Qwen3-1.7B-Base-Nuosu-LoRA is a text generation model from NiceAsiv. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
This repository contains a research-preview LoRA adapter for translation between Standard Liangshan Yi (Nuosu), Chinese, and English. It is based on Qwen/Qwen3-1.7B-Base and is not a standalone model.
Downloads · 30 days
16
18% of all-time downloads
All-time downloads
87
Public
Repo size
849 MB
Likes
2
Public
Click a slice to open those files.
.safetensors140 MB · 90%
From the Hugging Face model README
This repository contains a research-preview LoRA adapter for translation
between Standard Liangshan Yi (Nuosu), Chinese, and English. It is based on
Qwen/Qwen3-1.7B-Base and is not a standalone model.
本仓库发布的是面向凉山规范彝文(诺苏语)的研究预览版翻译 LoRA。它基于
Qwen/Qwen3-1.7B-Base,必须与基础模型一起加载,不是完整模型,也不是通用对话模型。
该模型适合明确指定翻译方向的研究和实验。它没有经过足够的真实多轮对话训练,不适合作为 通用聊天助手,也不应被用于需要专业母语翻译质量的场景。
The adapter was trained through OCR-ground-truth continued pretraining, dictionary SFT, and short/long translation SFT. Sources used by this run:
NuosuBench was split into fixed train, validation, and held-out research-test partitions. The held-out partition was not used for gradient training.
Deterministic greedy decoding was used with max_new_tokens=96.
| Split or target | Records | chrF2 | Exact match |
|---|---|---|---|
| Validation, overall | 192 | 28.1479 | 0.00% |
| Research test, overall | 11,171 | 38.5067 | 17.21% |
| Research test, Nuosu target | 4,263 | 25.1546 | 2.77% |
| Research test, Chinese target | 2,889 | 39.5248 | 13.46% |
| Research test, English target | 811 | 50.0656 | 22.19% |
The 192-row validation gate had no empty outputs or replacement characters and a 1.04% length-truncation rate. On the full research test, the empty-output rate was 0.009%, the replacement-character rate was 1.77%, and the length-truncation rate was 3.72%.
Automatic scores do not establish linguistic correctness. Native-speaker review remains necessary.
�).本模型最明显的问题是少量困难汉译彝输入会产生重复循环,直到达到生成长度上限。因此本版 仅作为 research preview 发布,不应描述为成熟的彝语翻译系统。
import torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_id = "Qwen/Qwen3-1.7B-Base"
adapter_id = "NiceAsiv/Qwen3-1.7B-Base-Nuosu-LoRA"
tokenizer = AutoTokenizer.from_pretrained(adapter_id)
base = AutoModelForCausalLM.from_pretrained(
base_id,
torch_dtype=torch.bfloat16,
device_map="auto",
)
model = PeftModel.from_pretrained(base, adapter_id)
model.eval()
messages = [
{
"role": "user",
"content": "请把“欢迎来到凉山”翻译成凉山规范彝文,只输出译文。",
}
]
prompt = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
stop_ids = sorted(
{
tokenizer.eos_token_id,
tokenizer.convert_tokens_to_ids("<|im_end|>"),
tokenizer.convert_tokens_to_ids("<|endoftext|>"),
}
)
with torch.inference_mode():
output = model.generate(
**inputs,
max_new_tokens=96,
do_sample=False,
eos_token_id=stop_ids,
pad_token_id=tokenizer.pad_token_id,
)
print(
tokenizer.decode(
output[0, inputs["input_ids"].shape[-1]:],
skip_special_tokens=True,
)
)
Use explicit translation instructions and deterministic decoding. Stop and discard an output if it enters a repetition loop.
Qwen/Qwen3-1.7B-BaseThis artifact is provided for academic and research use. Users are responsible for validating generated translations and reviewing the terms of each cited data source. Do not use generated text as authoritative linguistic, educational, legal, medical, or public-service translation without qualified human review.