/ Модель

Характеристики

Контекст
40 960 токенов
Параметры
508 млн
Лицензия
Apache 2.0
Архитектура
qwen3 · dense
Базовая модель
Qwen3-0.6B
Библиотека
transformers
Опубликована
29 окт 2026

Qwen3-0.6B-qlora-zhtw

Генерация текстаТекст → текст3 профессии
406скачиваний за 30 дней0лайковвеса обновлены14 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Компактная модель Qwen3, дообученная для диалогов и ответов на традиционном китайском в тайваньском варианте.

Это компактная разговорная модель на архитектуре Qwen3, созданная разработчиком mikeforai на основе Qwen/Qwen3-0.6B. Модель дообучена методом QLoRA на примерно 17,6 тыс. примеров на традиционном китайском и выпущена со слитыми с базовыми весами адаптером. Она рассчитана на диалоги и ответы в традиционной письменности и лексике Тайваня; шаблон чата позволяет включать режим рассуждения или получать прямой ответ.

Размер модели — около 507,9 млн параметров, нативный контекст — 40 960 токенов, хотя при обучении использовались последовательности длиной до 2 048 токенов. Модель предназначена для генерации текста, а не для специализированной предметной области. В описанной ограниченной оценке снизилось число словоупотреблений, характерных для материкового Китая, а результат TMMLU+ немного улучшился относительно базовой модели.

Небольшой размер ограничивает надёжность: модель может ошибаться и выдумывать факты, слаба в математике, коде и длинных рассуждениях; режим рассуждения не гарантирует правильность. Тайваньская лексика выдерживается не всегда, а качество других языков и прямых ответов проверялось ограниченно. Лицензия модели — Apache-2.0.

Сценарии применения

  • ответы на вопросы на традиционном китайском
  • диалоговый помощник для пользователей на Тайване
  • подготовка прямых ответов на китайском языке
  • генерация ответов с включённым режимом рассуждения

Ограничения

Модель с 0,6 млрд параметров может ошибаться и выдумывать факты, а её рассуждения не гарантируют правильности; математика, код и длинные рассуждения даются ей с трудом. Тайваньская лексика соблюдается не всегда, а другие языки и режим ответов без рассуждения проверены ограниченно.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Qwen3-0.6B-qlora-zhtw-thinking

A small chat model that answers in Traditional Chinese (Taiwan usage) and keeps Qwen3's thinking mode. It is Qwen/Qwen3-0.6B fine-tuned with QLoRA on about 17.6k Traditional Chinese examples: 4.4k human-written Q&A pairs (direct answers) mixed with 13.2k reasoning examples (<think>…</think> and then an answer).

The main effect is script and vocabulary: in our test the base model answered in Simplified Chinese in all 5 side-by-side rows we inspected. After fine-tuning it answers in Traditional Chinese, and the count of Mainland-style terms dropped from 15 to 5. TMMLU+ went up slightly (0.289 → 0.311); the English benchmarks did not change significantly in our small test.

Qwen3 is a hybrid thinking model: the chat template has an enable_thinking switch. This model was trained on both modes, so you can turn thinking on (think first, then answer) or off (answer directly).

Quick start

This repo holds the merged model (LoRA already merged into the base weights), so you can load it directly.

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM

repo = "mikeforai/Qwen3-0.6B-qlora-zhtw-thinking"  # change to your repo name
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype=torch.float16, device_map="auto")

def chat(question, think=True, max_new_tokens=None):
    messages = [{"role": "user", "content": question}]
    prompt = tokenizer.apply_chat_template(
        messages, tokenize=False, add_generation_prompt=True, enable_thinking=think
    )
    inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
    # Sampling settings recommended by Qwen3
    sampling = dict(temperature=0.6, top_p=0.95) if think else dict(temperature=0.7, top_p=0.8)
    out = model.generate(
        **inputs, max_new_tokens=max_new_tokens or (1536 if think else 256), do_sample=True, **sampling
    )
    text = tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True)
    if "</think>" not in text:           # thinking off, or thinking was cut off
        return "", text.strip()
    thought, answer = text.split("</think>", 1)
    return thought.replace("<think>", "").strip(), answer.strip()

thought, answer = chat("電腦開機很慢,可能是什麼原因?", think=True)
print("【思考】", thought)
print("【回答】", answer)

print("【直接回答】", chat("電腦開機很慢,可能是什麼原因?", think=False)[1])

Do not use greedy decoding in thinking mode: it tends to repeat forever. Use the sampling settings above.

Using the LoRA adapter only

If you have the adapter files instead of the merged model:

from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-0.6B", torch_dtype=torch.float16, device_map="auto")
model = PeftModel.from_pretrained(base, "<adapter-path-or-repo>")

Model details

Base modelQwen/Qwen3-0.6B (hybrid thinking model)
MethodQLoRA (4-bit NF4 base + LoRA adapter), then merged to fp16
LanguageTraditional Chinese (zh-TW)
Trainable parameters10.1M of 606.1M (1.67%)
Adapter sizeabout 39 MB (adapter_model.safetensors)
LicenseApache 2.0 (base model and Aya dataset); the reasoning dataset is MIT

Training data

SourceLicenseRole
Heng666/Traditional_Chinese-aya_datasetApache 2.0Direct-answer Q&A. Human-annotated Chinese Q&A from the Cohere Aya project, already converted to Traditional characters by the dataset author.
twinkle-ai/tw-reasoning-instruct-50kMITReasoning examples with a thinking process (think) and a final answer (output).

Cleaning steps for Aya:

  1. Strip leading and trailing whitespace.
  2. Drop empty answers (MIN_TARGET_CHARS = 1, so very short answers were kept).
  3. Drop duplicate questions.

The reasoning examples are randomly sampled (seed 42) so that they make up 75% of the training data (REASONING_RATIO = 0.75). This keeps the model from forgetting how to think. Each one is written in the Qwen3 format:

<think>
{think}
</think>

{output}
StageExamples
Aya, original4,909
Aya, after cleaning4,409
Reasoning examples sampled (from 50,000)13,227
Total (4,409 direct + 13,227 reasoning)17,636
Train / validation split (95% / 5%)16,754 / 882
After dropping samples longer than 2,048 tokens16,745 / 881

Long samples are dropped, not truncated: a truncated reasoning example would teach the model half a thought and no final answer.

Prompt format and loss

Each example is formatted with the Qwen3 chat template. The prompt ending depends on the example type, so training matches inference exactly:

Example typeenable_thinkingPrompt ends withLoss is computed on
Direct answer (Aya)False<|im_start|>assistant\n<think>\n\n</think>\n\nthe answer
ReasoningTrue<|im_start|>assistant\n<think>…</think> and the answer

Loss is computed only on the model's output, not on the question (prompt labels are -100).

Training setup

SettingValue
Hardware2 × Tesla T4 (Kaggle)
Training timeabout 3 h 53 min (13,986 s)
Epochs / steps1 / 524
Max sequence length2048
Batch size1 per device × 16 gradient accumulation (effective batch 16)
Learning rate2e-4, cosine schedule
Optimizerpaged_adamw_8bit
Precisionfp16 (T4 does not support bf16)
Quantization4-bit NF4, double quantization, fp16 compute
LoRAr=16, alpha=32, dropout=0.05, bias="none"
LoRA targetsq_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
Gradient checkpointingon (use_reentrant=False)
Frameworkstransformers, peft, bitsandbytes, accelerate, datasets

Final training loss (average): 3.257. The loss is much higher than in a plain Q&A fine-tune because 75% of the tokens are long reasoning text, which is harder to predict. Do not compare it with the loss of a model trained on short answers only.

Evaluation

Base and fine-tuned models were compared with the same 4-bit model object, switching the adapter on and off, so the quantization is identical.

Validation loss

StepEval lossPerplexity
503.482532.54
1003.400329.97
1503.356828.70
2003.322627.73
2503.300227.12
3003.280726.59
3503.268126.26
4003.257525.99
4503.253225.87
5003.251625.83
5243.251525.83

The loss flattened out in the last 100 steps (3.2575 → 3.2516), so a second epoch is unlikely to help much on its own.

Taiwan vs. Mainland China wording

20 everyday questions, thinking mode on, sampling with a fixed seed (0) so it can be repeated. We counted 16 Mainland-style terms (視頻, 軟件, 硬件, 質量, 網絡, 默認, 優化, 屏幕, 鼠標, 程序員, 數據庫, 服務器, 打印機, U盤, 博客, 短信) in the final answers (the thinking text is not counted).

ModelMainland-style terms
Base (Qwen3-0.6B)15
This model5

This count understates the real difference. The keyword list only matches Traditional-character spellings. In the 5 side-by-side rows we inspected, the base model answered in Simplified Chinese (for example "台湾夜市热闹非凡…", "电脑开机慢可能是多种原因造成的…"), and the fine-tuned model answered in Traditional Chinese. Simplified spellings such as 软件 or 视频 are not counted. The count is a rough keyword check, not a quality score. The 5 remaining terms mean the model still uses some Mainland wording: in the computer start-up answer we saw "硬件問題", and a stray Simplified character ("内") inside an otherwise Traditional answer.

Standard benchmarks

lm-evaluation-harness, 0-shot, only 50 questions per sub-task. These tasks compare option probabilities and do not generate text, so thinking mode does not affect them.

TaskMetricBaseThis modelStd. error (base / this model)
TMMLU+ (Taiwan knowledge, all 66 subjects)acc0.2890.3110.008 / 0.008
ARC-Easyacc0.5400.5400.071 / 0.071
ARC-Easyacc_norm0.5000.6200.071 / 0.069
HellaSwagacc0.4200.4400.071 / 0.071
HellaSwagacc_norm0.4800.5200.071 / 0.071

TMMLU+ by group (acc):

GroupBaseThis model
STEM0.2980.298
Humanities0.2540.297
Social sciences0.2860.324
Other0.2960.313

The ARC-Easy and HellaSwag differences (up to +0.12 on ARC-Easy acc_norm) are all smaller than 2 × the standard error (about 0.14), so we cannot call them real changes; we saw no sign of forgetting English commonsense. The +0.022 on TMMLU+ is bigger than its standard error, but each subject has only 50 questions and the absolute scores are close to the 25% chance level of a four-choice test. Treat it as "slightly better", not as a real knowledge gain.

Behavior to expect

In thinking mode the model writes a plan first, then the final answer. Example (question: 請用三句話介紹台灣的夜市文化。):

【思考】 首先,我需要理解台灣夜市的文化特徵,並確保描述的三句話能夠清楚且流暢地展現這些特徵。夜市文化在台灣具有多樣性和豐富性,包括小吃、攤販、藝術表演等……

【回答】 台灣的夜市文化充滿了歡樂與熱情,小吃琳琅滿目,攤販熱鬧非凡,還有各種表演活動吸引著遊客。

With enable_thinking=False it answers directly:

台灣的夜市文化以美食和夜市活動為主,充滿活力和熱情,是台灣人放鬆心情的熱鬧之地。

Things to know:

  • Thinking can take many tokens. Give it max_new_tokens around 1,536 or more. If it is cut off before </think>, there is no clean split between thinking and answer.
  • The thinking text is not always correct. The 0.6B model can reason in a convincing way and still be wrong. In the example above the thinking is generic planning, and the answer is fluent but contains almost no concrete facts.
  • Direct mode is trained on short Aya answers, so those answers may be shorter than the base model's. If you want longer answers, ask for them in the prompt (for example "請詳細說明") or use thinking mode.

Limitations

  • Very small model (0.6B): it can make mistakes, invent facts, and struggle with math, code, and long reasoning. The thinking process is a style it has learned, not a guarantee of correct reasoning.
  • Thinking data is third-party: the reasoning examples come from twinkle-ai/tw-reasoning-instruct-50k; we did not check their quality ourselves. Follow that dataset's terms if you redistribute the data.
  • One epoch only: about 16.7k examples, one pass. It is not tuned for any specific domain.
  • Limited evaluation: 50 questions per benchmark sub-task, 20 hand-written prompts, one run, no human preference study. The blind A/B files from the notebook were created but not scored. The Mainland-term count misses Simplified-character spellings (see above).
  • Script mixing is not fully gone: Mainland terms and occasional Simplified characters still appear in answers.
  • Sequence length: max 2,048 tokens; longer samples were removed (9 train, 1 validation), and longer conversations were not trained on.
  • Thinking-off quality was only spot-checked: the 20-question comparison was run with thinking on. The direct-answer mode was only tried on one example.
  • Language: built for Traditional Chinese. Other languages may be worse than the base model (not measured).
  • The model inherits the biases and limits of the base model and the training data.

Acknowledgements

  • Qwen team for the base model
  • Heng666 for the Traditional Chinese Aya dataset, and Cohere For AI for the original Aya dataset
  • twinkle-ai for the Taiwan reasoning dataset
  • Hugging Face transformers, peft, bitsandbytes, and EleutherAI lm-evaluation-harness

Citation

@misc{qwen3technicalreport,
  title  = {Qwen3 Technical Report},
  author = {Qwen Team},
  year   = {2025},
  eprint = {2505.09388},
  archivePrefix = {arXiv}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3ForCausalLM
Ревизия весов
44414f0

0 моделей