Downloads · 30 days
526
17% of all-time downloads
kaufkino/MiniCPM5-1B-Fable5-Thinking-T-Wix-ru
MiniCPM5-1B-Fable5-Thinking-T-Wix-ru is a text generation model from kaufkino. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
⚠️ Экспериментальная модель. Метрики не снимались (только ручной смоук-квиз). Не для продакшена.
Downloads · 30 days
526
17% of all-time downloads
All-time downloads
3.1K
Public
Parameters
1.1B
11 GB on disk
Likes
5
Public
Click a slice to open those files.
.gguf3.3 GB · 60%
From the Hugging Face model README
⚠️ Экспериментальная модель. Метрики не снимались (только ручной смоук-квиз). Не для продакшена.
Русскоязычная 1B-модель с работающим <think>-режимом. Получена в два этапа:
openbmb/MiniCPM5-1B на ~461k русских диалогов t-tech/T-Wix) применена к дистилляту GnLOLot/MiniCPM5-1B-Claude-Opus-Fable5-V2-Thinking через PeftModel + merge_and_unload().<think>-трейсами; управляющие суффиксы /think из данных убраны, чтобы thinking стал поведением по умолчанию.Что работает:
<think> включается сам на задачах, где уместен (математика, рассуждения), думает на языке вопроса (RU-вопрос → русский трейс, EN → английский), закрывает блок и даёт ответИзвестные дефекты:
max_new_tokens — ставьте ≥1000–2000repetition_penalty=1.1 (без него возможны циклы)| Путь | Содержимое |
|---|---|
/ | модель после reasoning-SFT, bf16 safetensors |
/gguf | GGUF: F16, Q8_0 |
/lora | reasoning-LoRA (r=16) отдельно — применима к merge-версии из истории коммитов |
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "kaufkino/MiniCPM5-1B-Fable5-Thinking-T-Wix-ru"
model = AutoModelForCausalLM.from_pretrained(repo, dtype="bfloat16", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained(repo)
messages = [{"role": "user", "content": "Реши: 17 * 23 = ?"}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True,
return_tensors="pt", return_dict=True).to(model.device)
out = model.generate(**inputs, max_new_tokens=1500, temperature=0.5, top_p=0.95,
do_sample=True, repetition_penalty=1.1)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
Chat template (включая tools-формат и enable_thinking) унаследован от дистиллята.
Принудительно выключить размышления: enable_thinking=False в apply_chat_template.
Собрано на облачном GPU-сервере Selectel (реферальная ссылка).
EN: Russian 1B model with working think-mode: T-Wix Russian LoRA merged onto a Claude Opus/Fable5 distill, then SFT'd on the T-Wix reasoning subset (31k Russian think-traces, r=16, 1 epoch). Think auto-triggers on reasoning tasks in the question's language and closes properly; tool calling preserved. Known issues: weak Russian factual recall (use RAG), unstable EN→RU translation, use repetition_penalty=1.1 and max_new_tokens≥1000. Research artifact, no formal evals.