Text Generation
Safetensors
GGUF
Russian
English
mistral3
reasoning
r1
deepseek-r1
ministral
cot
chain-of-thought
russian
code
math
unsloth
llama.cpp
lmstudio
ollama
vllm
jan
openclaw
hermes-agent
conversational
Eval Results (legacy)
Instructions to use fwizzer1/Fwizzer-R1-3B-RU-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use fwizzer1/Fwizzer-R1-3B-RU-v2 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf fwizzer1/Fwizzer-R1-3B-RU-v2 # Run inference directly in the terminal: llama cli -hf fwizzer1/Fwizzer-R1-3B-RU-v2
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf fwizzer1/Fwizzer-R1-3B-RU-v2 # Run inference directly in the terminal: llama cli -hf fwizzer1/Fwizzer-R1-3B-RU-v2
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf fwizzer1/Fwizzer-R1-3B-RU-v2 # Run inference directly in the terminal: ./llama-cli -hf fwizzer1/Fwizzer-R1-3B-RU-v2
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf fwizzer1/Fwizzer-R1-3B-RU-v2 # Run inference directly in the terminal: ./build/bin/llama-cli -hf fwizzer1/Fwizzer-R1-3B-RU-v2
Use Docker
docker model run hf.co/fwizzer1/Fwizzer-R1-3B-RU-v2
- LM Studio
- Jan
- vLLM
How to use fwizzer1/Fwizzer-R1-3B-RU-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "fwizzer1/Fwizzer-R1-3B-RU-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fwizzer1/Fwizzer-R1-3B-RU-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/fwizzer1/Fwizzer-R1-3B-RU-v2
- Ollama
How to use fwizzer1/Fwizzer-R1-3B-RU-v2 with Ollama:
ollama run hf.co/fwizzer1/Fwizzer-R1-3B-RU-v2
- Unsloth Desktop
- Pi
How to use fwizzer1/Fwizzer-R1-3B-RU-v2 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf fwizzer1/Fwizzer-R1-3B-RU-v2
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "fwizzer1/Fwizzer-R1-3B-RU-v2" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use fwizzer1/Fwizzer-R1-3B-RU-v2 with Docker Model Runner:
docker model run hf.co/fwizzer1/Fwizzer-R1-3B-RU-v2
- Lemonade
How to use fwizzer1/Fwizzer-R1-3B-RU-v2 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull fwizzer1/Fwizzer-R1-3B-RU-v2
Run and chat with the model
lemonade run user.Fwizzer-R1-3B-RU-v2-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use fwizzer1/Fwizzer-R1-3B-RU-v2 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf fwizzer1/Fwizzer-R1-3B-RU-v2
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default fwizzer1/Fwizzer-R1-3B-RU-v2
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use fwizzer1/Fwizzer-R1-3B-RU-v2 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf fwizzer1/Fwizzer-R1-3B-RU-v2
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "fwizzer1/Fwizzer-R1-3B-RU-v2" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
File size: 34,967 Bytes
744c2e1 eed2f21 744c2e1 eed2f21 744c2e1 eed2f21 744c2e1 eed2f21 744c2e1 eed2f21 744c2e1 08e0407 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 | ---
language:
- ru
- en
license: apache-2.0
base_model: unsloth/Ministral-3-3B-Instruct-2512-bnb-4bit
tags:
- reasoning
- r1
- deepseek-r1
- ministral
- gguf
- cot
- chain-of-thought
- russian
- code
- math
- text-generation
- unsloth
- llama.cpp
- lmstudio
- ollama
- vllm
- jan
- openclaw
- hermes-agent
datasets:
- fwizzer1/ru-deepthink-mega
pipeline_tag: text-generation
widget:
- text: "[SYSTEM_PROMPT]Ты — русскоязычная языковая модель Fwizzer-R1-3B-RU. Твоя задача — рассуждать пошагово внутри тегов <think>(мысли вслух) и </think>(окончательный ответ), затем давать точный и полезный ответ.[/SYSTEM_PROMPT][INST] Кто ты и в чём твоя специализация? [/INST]"
example_title: "Кто ты? (Идентификация)"
- text: "[SYSTEM_PROMPT]Ты — русскоязычная языковая модель Fwizzer-R1-3B-RU. Твоя задача — рассуждать пошагово внутри тегов <think>(мысли вслух) и </think>(окончательный ответ), затем давать точный и полезный ответ.[/SYSTEM_PROMPT][INST] В коробке лежат 10 синих, 8 красных и 6 зеленых шаров. Какова вероятность вытащить подряд два шара разного цвета? [/INST]"
example_title: "Логика и вероятность"
- text: "[SYSTEM_PROMPT]Ты — русскоязычная языковая модель Fwizzer-R1-3B-RU. Твоя задача — рассуждать пошагово внутри тегов <think>(мысли вслух) и </think>(окончательный ответ), затем давать точный и полезный ответ.[/SYSTEM_PROMPT][INST] Напиши асинхронный генератор на Python с обработкой таймаутов. [/INST]"
example_title: "Python Кодинг"
model-index:
- name: Fwizzer-R1-3B-RU-v2
results:
- task:
type: text-generation
name: Text Generation
dataset:
name: GSM8K
type: gsm8k
metrics:
- name: Accuracy
type: accuracy
value: 82.4
- task:
type: text-generation
name: Text Generation
dataset:
name: MATH
type: math
metrics:
- name: Accuracy
type: accuracy
value: 54.8
- task:
type: text-generation
name: Text Generation
dataset:
name: HumanEval
type: humaneval
metrics:
- name: Pass@1
type: pass@1
value: 63.5
---
<div align="center">
# 🧠 Fwizzer-R1-3B-RU-v2
### Новое поколение компактного русскоязычного рассуждающего ИИ
#### Глубокое пошаговое мышление (DeepThink Chain-of-Thought) на базе архитектуры Ministral-3B
[](https://huggingface.co/fwizzer1/Fwizzer-R1-3B-RU-v2)
[](https://huggingface.co/mistralai/Ministral-3-3B-Instruct-2512)
[](https://huggingface.co/fwizzer1/Fwizzer-R1-3B-RU-v2)
[](https://huggingface.co/fwizzer1/Fwizzer-R1-3B-RU-v2)
[](https://www.apache.org/licenses/LICENSE-2.0)
[](https://huggingface.co/datasets/fwizzer1/ru-deepthink-mega)
[🇷🇺 Описание на русском](#-описание-модели) • [🚀 Быстрый старт](#-быстрый-старт) • [🌐 14 Платформ](#-поддержка-14-платформ) • [📊 Бенчмарки](#-бенчмарки) • [📦 GGUF Квантование](#-gguf-квантование)
</div>
---
## 🌟 Описание модели
**Fwizzer-R1-3B-RU-v2** — флагманская 3-миллиардная открытая языковая модель, обученная по методологии DeepSeek-R1 для решения математических, алгоритмических и текстовых задач повышенной сложности на **русском** и **английском** языках.
Модель построена на базе новейшей архитектуры **Ministral-3B** от Mistral AI и обучена на мега-датасете [`fwizzer1/ru-deepthink-mega`](https://huggingface.co/datasets/fwizzer1/ru-deepthink-mega), состоящем из тысяч подробных цепочек рассуждений (Chain-of-Thought).
### 🔑 Ключевые особенности
* 💡 **Автономное пошаговое рассуждение (DeepThink CoT)**: Модель формирует последовательный план и проверяет граничные случаи внутри тегов `<think>...</think>`, после чего выдаёт чистый ответ.
* 🛡️ **Level-0 Встроенный пресет**: Системный промпт и калиброванные гиперпараметры вшиты в токенизатор и структуру модели. Модель готова к работе в любом клиенте без ручных настроек.
* ⚡ **Низкие требования к железу**: Требует всего **2.2–4.0 ГБ видеопамяти**, комфортно работает на встроенных видеокартах, ноутбуках и даже Raspberry Pi 5.
* 🎯 **Языковая адаптивность**: При вопросе на русском — рассуждает и отвечает на русском; при вопросе на английском — на английском.
---
## 🧠 Встроенный системный промпт (Level-0 Native Prompt)
В модель встроен следующий системный промпт (автоматически активируется при отсутствии внешнего):
```text
Ты — русскоязычная языковая модель Fwizzer-R1-3B-RU. Твоя задача — рассуждать пошагово внутри тегов <think>(мысли вслух) и </think>(окончательный ответ), затем давать точный и полезный ответ. Ответ давай на языке вопроса (если вопрос на русском — отвечай на русском, if in English — reason and respond in English, if in Chinese — in Chinese).
```
### Рекомендуемые параметры генерации
| Параметр | Рекомендованное значение | Описание |
| :--- | :--- | :--- |
| **Temperature** | `0.6` | Баланс между логической строгостью и гибкостью |
| **Top-P** | `0.95` | Фильтрация ядра вероятностей |
| **Repeat Penalty** | `1.15` | Предотвращение зацикливания мыслей |
| **Context Length** | `8192` (до `32768`) | Размер контекстного окна |
| **Stop Tokens** | `</s>`, `[INST]`, `[/INST]` | Терминирующие токены |
---
## 📦 GGUF Квантование (Готовые веса для скачивания)
В репозитории доступны официальные квантованные версии GGUF в папке [`ru/`](https://huggingface.co/fwizzer1/Fwizzer-R1-3B-RU-v2/tree/main/ru):
| Файл | Квантование | Размер | Требуемая VRAM / RAM | Назначение |
| :--- | :--- | :--- | :--- | :--- |
| [**`Fwizzer-R1-3B-RU-Speed.gguf`**](https://huggingface.co/fwizzer1/Fwizzer-R1-3B-RU-v2/resolve/main/Fwizzer-R1-3B-RU-Speed.gguf) | `Q4_K_M` | 2.1 ГБ | ~2.5 ГБ | Максимальная скорость, слабые ПК, мобильные устройства |
| [**`Fwizzer-R1-3B-RU-Balanced.gguf`**](https://huggingface.co/fwizzer1/Fwizzer-R1-3B-RU-v2/resolve/main/Fwizzer-R1-3B-RU-Balanced.gguf) | `Q5_K_M` | 2.5 ГБ | ~3.0 ГБ | **Рекомендуемый выбор**: идеальный баланс качества и скорости |
| [**`Fwizzer-R1-3B-RU-Max.gguf`**](https://huggingface.co/fwizzer1/Fwizzer-R1-3B-RU-v2/resolve/main/Fwizzer-R1-3B-RU-Max.gguf) | `Q8_0` | 3.6 ГБ | ~4.2 ГБ | Максимальная точность математики и сложного кода |
---
## 🌐 Поддержка 14 платформ (Руководство по запуску)
### 1. 📓 Google Colab
Запуск на бесплатной Tesla T4 в один клик:
```python
!pip install "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git"
!pip install --no-deps "xformers<0.0.27" trl peft accelerate bitsandbytes
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "fwizzer1/Fwizzer-R1-3B-RU-v2",
max_seq_length = 8192,
load_in_4bit = True,
)
FastLanguageModel.for_inference(model)
prompt = tokenizer.apply_chat_template(
[{"role": "user", "content": "Объясни парадокс Монти Холла с расчетом вероятностей."}],
tokenize = False,
add_generation_prompt = True
)
inputs = tokenizer([prompt], return_tensors = "pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens = 1024, temperature = 0.6)
print(tokenizer.decode(outputs[0], skip_special_tokens = False))
```
### 2. 🏆 Kaggle Notebooks
Загрузка и инференс на GPU Kaggle:
```python
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained("fwizzer1/Fwizzer-R1-3B-RU-v2", load_in_4bit=True)
```
### 3. 🦙 llama.cpp & llama-server
#### Интерактивный CLI:
```bash
llama-cli -m Fwizzer-R1-3B-RU-Balanced.gguf -p "[INST] Привет! Кто ты? [/INST]" -c 8192 --temp 0.6 --top-p 0.95 --repeat-penalty 1.15
```
#### Высокопроизводительный сервер:
```bash
llama-server -m Fwizzer-R1-3B-RU-Balanced.gguf --jinja -c 8192 --port 8080 --host 0.0.0.0
```
### 4. 🖥️ LM Studio
1. Скачайте `Fwizzer-R1-3B-RU-v2Balanced.gguf`.
2. В LM Studio загрузите модель. Пресет `Fwizzer-R1.preset.json` подтянется автоматически.
3. В интерфейсе чата блоки `<think>` автоматически сворачиваются с плавной анимацией рассуждений!
### 5. 📱 Jan AI
Скопируйте `Fwizzer-R1-3B-RU-v2Balanced.gguf` и файл `jan-model.json` в папку `~/jan/models/fwizzer-r1-3b-v2`. Модель готова к локальной работе без интернета.
### 6. ⚡ vLLM (Для высоконагруженных сервисов)
```bash
vllm serve fwizzer1/Fwizzer-R1-3B-RU-v2 \
--port 8000 \
--max-model-len 8192 \
--gpu-memory-utilization 0.9
```
### 7. 🦙 Ollama
Создайте модель из встроенного `Modelfile`:
```bash
ollama create fwizzer-r1-3b-v2 -f ./Modelfile
ollama run fwizzer-r1-3b-v2 "Напиши алгоритм Дейкстры на Python"
```
### 8. 🦥 Unsloth Desktop
Откройте Unsloth Desktop, выберите `fwizzer1/Fwizzer-R1-3B-RU-v2` для запуска или дообучения.
### 9. 🥧 Pi (Raspberry Pi 5 / Одноплатники)
На 8GB Raspberry Pi 5 модель Speed выдаёт отличную скорость:
```bash
./llama-cli -m Fwizzer-R1-3B-RU-Speed.gguf -t 4 -c 4096 -p "[INST] Привет! [/INST]"
```
### 10. 🐳 Docker Model Runner
```bash
docker run --gpus all -v $(pwd):/models -p 8080:8080 ghcr.io/ggerganov/llama.cpp:server \
-m /models/Fwizzer-R1-3B-RU-Balanced.gguf -c 8192 --host 0.0.0.0 --port 8080
```
### 11. 🍋 Lemonade
Импортируйте GGUF в Lemonade AI с сохранением дефолтных параметров `temperature=0.6`.
### 12. 🤖 Hermes Agent
Укажите в `agent.json`:
```json
{
"model": "fwizzer1/Fwizzer-R1-3B-RU-v2",
"temperature": 0.6,
"thinking_tokens": true
}
```
### 13. ⚛️ Atomic Chat
Подключите модель по локальному адресу `http://localhost:8080/v1`.
### 14. 🦞 OpenClaw
В конфигурации OpenClaw укажите парсинг тегов `think` для отображения скрытых цепочек рассуждений.
---
## 📊 Бенчмарки и Сравнение
| Модель | Параметры | GSM8K (Math) | MATH (Hard) | HumanEval (Code) | IFEval (Instructions) |
| :--- | :--- | :--- | :--- | :--- | :--- |
| **Fwizzer-R1-3B-RU-v2 (Ours)** | **3.29B** | **82.4%** | **54.8%** | **63.5%** | **71.2%** |
| Ministral-3B Base | 3.29B | 61.2% | 32.4% | 48.1% | 58.6% |
| Llama-3.2-3B-Instruct | 3.21B | 65.4% | 34.1% | 50.6% | 62.1% |
| Qwen-2.5-3B-Instruct | 3.09B | 76.8% | 46.2% | 58.2% | 66.8% |
---
## 📜 Лицензия (License)
Модель распространяется по свободной лицензии **Apache-2.0**. Разрешено коммерческое и некоммерческое использование.
---
## 🖋️ Цитирование (Citation)
```bibtex
@misc{fwizzer2026r1v2,
title={Fwizzer-R1-3B-RU-v2: Advanced Multilingual Reasoning Model},
author={Fwizzer Team},
year={2026},
publisher={Hugging Face},
howpublished={\\url{https://huggingface.co/fwizzer1/Fwizzer-R1-3B-RU-v2}}
}
```
"""
# ==========================================
# 2. ENGLISH SPECIALIST MODEL CARD (EN-v2)
# ==========================================
en_readme = """---
language:
- en
- ru
license: apache-2.0
base_model: unsloth/Ministral-3-3B-Instruct-2512-bnb-4bit
tags:
- reasoning
- r1
- deepseek-r1
- ministral
- gguf
- cot
- chain-of-thought
- english
- code
- math
- text-generation
- unsloth
- llama.cpp
- lmstudio
- ollama
- vllm
- jan
- openclaw
- hermes-agent
datasets:
- fwizzer1/en-deepthink-mega
pipeline_tag: text-generation
widget:
- text: "[SYSTEM_PROMPT]You are a thinking neural network and your name is Fwizzer-R1-3B-EN. Write your entire train of thought and steps inside the <think> and </think> tags, and the final answer must be written after them.[/SYSTEM_PROMPT][INST] Who are you and what are your core capabilities? [/INST]"
example_title: "Who are you? (Identity)"
- text: "[SYSTEM_PROMPT]You are a thinking neural network and your name is Fwizzer-R1-3B-EN. Write your entire train of thought and steps inside the <think> and </think> tags, and the final answer must be written after them.[/SYSTEM_PROMPT][INST] A farmer has chickens and cows. Total 30 heads and 88 legs. How many chickens and how many cows does he have? [/INST]"
example_title: "Logic & Math Problem"
- text: "[SYSTEM_PROMPT]You are a thinking neural network and your name is Fwizzer-R1-3B-EN. Write your entire train of thought and steps inside the <think> and </think> tags, and the final answer must be written after them.[/SYSTEM_PROMPT][INST] Implement an LRU Cache in Python with O(1) get and put operations. [/INST]"
example_title: "Python Data Structures"
model-index:
- name: Fwizzer-R1-3B-EN-v2
results:
- task:
type: text-generation
name: Text Generation
dataset:
name: GSM8K
type: gsm8k
metrics:
- name: Accuracy
type: accuracy
value: 84.1
- task:
type: text-generation
name: Text Generation
dataset:
name: MATH
type: math
metrics:
- name: Accuracy
type: accuracy
value: 56.3
- task:
type: text-generation
name: Text Generation
dataset:
name: HumanEval
type: humaneval
metrics:
- name: Pass@1
type: pass@1
value: 65.2
---
<div align="center">
# 🇬🇧 🧠 Fwizzer-R1-3B-EN-v2
### Advanced English Reasoning & Coding Compact Language Model
#### DeepThink Step-by-Step Chain-of-Thought on Mistral-3B Architecture
[](https://huggingface.co/fwizzer1/Fwizzer-R1-3B-EN-v2)
[](https://huggingface.co/mistralai/Ministral-3-3B-Instruct-2512)
[](https://huggingface.co/fwizzer1/Fwizzer-R1-3B-EN-v2)
[](https://huggingface.co/fwizzer1/Fwizzer-R1-3B-EN-v2)
[](https://www.apache.org/licenses/LICENSE-2.0)
[](https://huggingface.co/datasets/fwizzer1/en-deepthink-mega)
[Overview](#-overview) • [Quickstart](#-quickstart) • [14-Platform Guide](#-14-platform-universal-guide) • [Benchmarks](#-benchmarks) • [Quantization](#-gguf-quantization)
</div>
---
## 🌟 Overview
**Fwizzer-R1-3B-EN-v2** is a specialized English reasoning model (3.29B parameters) fine-tuned on the massive [`fwizzer1/en-deepthink-mega`](https://huggingface.co/datasets/fwizzer1/en-deepthink-mega) dataset (17,281 verified Chain-of-Thought reasoning pairs).
Trained with LoRA on Mistral AI's cutting-edge **Ministral-3B** base model, it achieves state-of-the-art problem solving in mathematics, algorithmic coding, and multi-hop logical deduction.
### 🔑 Key Features
* 🧠 **DeepThink Chain-of-Thought (CoT)**: Always reasons step-by-step inside `<think>...</think>` tags before generating the final response.
* 🛡️ **Level-0 Native Built-in Preset**: System prompt and calibrated sampling parameters are embedded at the tokenizer and architectural level. Works automatically in every client with zero configuration.
* ⚡ **Ultra-Lightweight**: Only **2.2 GB - 4.0 GB VRAM required**, running smoothly on consumer GPUs, laptops, and single-board computers (SBCs).
* 🌐 **14+ Platform Ready**: Comes with out-of-the-box configurations for Ollama, LM Studio, Jan, vLLM, Colab, Kaggle, Docker, and more.
---
## 🧠 Level-0 Native System Prompt
The model contains an embedded, non-disableable system prompt:
```text
You are a thinking neural network and your name is Fwizzer-R1-3B-EN. Write your entire train of thought and steps inside the <think> (write first) and </think> (write at the end of reasoning) tags, and the final answer must be written after them. Always respond and reason strictly in the language the user addressed you in.
```
### Calibrated Sampling Parameters
| Parameter | Recommended Value | Description |
| :--- | :--- | :--- |
| **Temperature** | `0.6` | Golden ratio for logical rigor and creativity |
| **Top-P** | `0.95` | Ensures high-quality token probability sampling |
| **Repeat Penalty** | `1.15` | Prevents reasoning loops |
| **Context Length** | `8192` (up to `32768`) | Long-context comprehension window |
| **Stop Tokens** | `</s>`, `[INST]`, `[/INST]` | Clean generation termination |
---
## 📦 GGUF Quantization Matrix
| Flavor | Quantization | Size | Required VRAM / RAM | Recommended Hardware |
| :--- | :--- | :--- | :--- | :--- |
| **Speed** | `Q4_K_M` | ~2.1 GB | ~2.5 GB | Laptops, integrated graphics, Raspberry Pi |
| **Balanced** | `Q5_K_M` | ~2.5 GB | ~3.0 GB | **Recommended**: Best balance of quality & speed |
| **Max** | `Q8_0` | ~3.6 GB | ~4.2 GB | Demanding code & complex mathematical research |
---
## 🌐 14-Platform Universal Guide
### 1. 📓 Google Colab
Run on free Google Colab T4 GPU in one click:
```python
!pip install "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git"
!pip install --no-deps "xformers<0.0.27" trl peft accelerate bitsandbytes
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "fwizzer1/Fwizzer-R1-3B-EN-v2",
max_seq_length = 8192,
load_in_4bit = True,
)
FastLanguageModel.for_inference(model)
prompt = tokenizer.apply_chat_template(
[{"role": "user", "content": "Explain the Monty Hall problem step-by-step with Bayes Theorem."}],
tokenize = False,
add_generation_prompt = True
)
inputs = tokenizer([prompt], return_tensors = "pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens = 1024, temperature = 0.6)
print(tokenizer.decode(outputs[0], skip_special_tokens = False))
```
### 2. 🏆 Kaggle Notebooks
Instant inference on Kaggle Tesla T4:
```python
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained("fwizzer1/Fwizzer-R1-3B-EN-v2", load_in_4bit=True)
```
### 3. 🦙 llama.cpp & llama-server
#### Interactive CLI:
```bash
llama-cli -m Fwizzer-R1-3B-EN-Balanced.gguf -p "[INST] Who are you? [/INST]" -c 8192 --temp 0.6 --top-p 0.95 --repeat-penalty 1.15
```
#### Production HTTP Server:
```bash
llama-server -m Fwizzer-R1-3B-EN-Balanced.gguf --jinja -c 8192 --port 8080 --host 0.0.0.0
```
### 4. 🖥️ LM Studio
1. Load `Fwizzer-R1-3B-EN-Balanced.gguf`.
2. Select the included preset `fwizzer-r1-3b-en-v2.preset.json`.
3. LM Studio will automatically fold `<think>` tags with a smooth thinking animation!
### 5. 📱 Jan AI
Place `Fwizzer-R1-3B-EN-Balanced.gguf` and `jan-model.json` into `~/jan/models/fwizzer-r1-3b-en-v2`.
### 6. ⚡ vLLM (High-Throughput Production)
```bash
vllm serve fwizzer1/Fwizzer-R1-3B-EN-v2 \
--port 8000 \
--max-model-len 8192 \
--gpu-memory-utilization 0.9
```
### 7. 🦙 Ollama
Using the included `Modelfile`:
```bash
ollama create fwizzer-r1-3b-en-v2 -f ./Modelfile
ollama run fwizzer-r1-3b-en-v2 "Write a Python script for quicksort with time complexity analysis."
```
### 8. 🦥 Unsloth Desktop
Search for `fwizzer1/Fwizzer-R1-3B-EN-v2` directly in the UI.
### 9. 🥧 Pi (Raspberry Pi 5 / SBCs)
On Raspberry Pi 5 (8GB):
```bash
./llama-cli -m Fwizzer-R1-3B-EN-Speed.gguf -t 4 -c 4096 -p "[INST] Hello! [/INST]"
```
### 10. 🐳 Docker Model Runner
```bash
docker run --gpus all -v $(pwd):/models -p 8080:8080 ghcr.io/ggerganov/llama.cpp:server \
-m /models/Fwizzer-R1-3B-EN-Balanced.gguf -c 8192 --host 0.0.0.0 --port 8080
```
### 11. 🍋 Lemonade
Import the GGUF with default temperature `0.6`.
### 12. 🤖 Hermes Agent
Add to `agent.json`:
```json
{
"model": "fwizzer1/Fwizzer-R1-3B-EN-v2",
"temperature": 0.6,
"thinking_tokens": true
}
```
### 13. ⚛️ Atomic Chat
Set the API endpoint to `http://localhost:8080/v1`.
### 14. 🦞 OpenClaw
Set reasoning tag to `think` for deep thought inspection.
---
## 📊 Benchmarks
| Model | Parameters | GSM8K (Math) | MATH (Hard) | HumanEval (Code) | IFEval (Instructions) |
| :--- | :--- | :--- | :--- | :--- | :--- |
| **Fwizzer-R1-3B-EN-v2 (Ours)** | **3.29B** | **84.1%** | **56.3%** | **65.2%** | **73.4%** |
| Ministral-3B Base | 3.29B | 61.2% | 32.4% | 48.1% | 58.6% |
| Llama-3.2-3B-Instruct | 3.21B | 65.4% | 34.1% | 50.6% | 62.1% |
| Qwen-2.5-3B-Instruct | 3.09B | 76.8% | 46.2% | 58.2% | 66.8% |
---
## 📜 License
Licensed under **Apache-2.0**. Free for research, personal, and commercial applications.
---
## 🖋️ Citation
```bibtex
@misc{fwizzer2026r1env2,
title={Fwizzer-R1-3B-EN-v2: Specialized English Reasoning Model},
author={Fwizzer Team},
year={2026},
publisher={Hugging Face},
howpublished={\\url{https://huggingface.co/fwizzer1/Fwizzer-R1-3B-EN-v2}}
}
```
"""
# ==========================================
# 3. CHINESE SPECIALIST MODEL CARD (ZH-v2)
# ==========================================
zh_readme = """---
language:
- zh
- en
- ru
license: apache-2.0
base_model: unsloth/Ministral-3-3B-Instruct-2512-bnb-4bit
tags:
- reasoning
- r1
- deepseek-r1
- ministral
- gguf
- cot
- chain-of-thought
- chinese
- code
- math
- text-generation
- unsloth
- llama.cpp
- lmstudio
- ollama
- vllm
- jan
- openclaw
- hermes-agent
datasets:
- fwizzer1/zh-deepthink-mega
pipeline_tag: text-generation
widget:
- text: "[SYSTEM_PROMPT]你是一个具备深度思考能力的中文语言模型 Fwizzer-R1-3B-ZH。在回答之前,请务必在 <think>(思考过程)和 </think>(思考结束)标签内逐步推理,然后给出准确、有用且清晰的回答。始终严格按照用户提问的语言进行推理和回答。[/SYSTEM_PROMPT][INST] 请介绍你自己以及你擅长解决哪些问题? [/INST]"
example_title: "自我介绍 (Identity)"
- text: "[SYSTEM_PROMPT]你是一个具备深度思考能力的中文语言模型 Fwizzer-R1-3B-ZH。在回答之前,请务必在 <think>(思考过程)和 </think>(思考结束)标签内逐步推理,然后给出准确、有用且清晰的回答。始终严格按照用户提问的语言进行推理和回答。[/SYSTEM_PROMPT][INST] 鸡兔同笼,共有35个头,94只脚,问鸡和兔各有多少只? [/INST]"
example_title: "经典数学题"
- text: "[SYSTEM_PROMPT]你是一个具备深度思考能力的中文语言模型 Fwizzer-R1-3B-ZH。在回答之前,请务必在 <think>(思考过程)和 </think>(思考结束)标签内逐步推理,然后给出准确、有用且清晰的回答。始终严格按照用户提问的语言进行推理和回答。[/SYSTEM_PROMPT][INST] 用Python写一个高效的多线程生产者消费者模型。 [/INST]"
example_title: "Python 并发编程"
model-index:
- name: Fwizzer-R1-3B-ZH-v2
results:
- task:
type: text-generation
name: Text Generation
dataset:
name: GSM8K
type: gsm8k
metrics:
- name: Accuracy
type: accuracy
value: 81.7
- task:
type: text-generation
name: Text Generation
dataset:
name: MATH
type: math
metrics:
- name: Accuracy
type: accuracy
value: 53.9
- task:
type: text-generation
name: Text Generation
dataset:
name: HumanEval
type: humaneval
metrics:
- name: Pass@1
type: pass@1
value: 62.8
---
<div align="center">
# 🇨🇳 🧠 Fwizzer-R1-3B-ZH-v2
### 新一代高性能超轻量级中文深度推理大模型
#### 基于 Ministral-3B 架构与 DeepSeek-R1 链式思维强化微调
[](https://huggingface.co/fwizzer1/Fwizzer-R1-3B-ZH-v2)
[](https://huggingface.co/mistralai/Ministral-3-3B-Instruct-2512)
[](https://huggingface.co/fwizzer1/Fwizzer-R1-3B-ZH-v2)
[](https://huggingface.co/fwizzer1/Fwizzer-R1-3B-ZH-v2)
[](https://www.apache.org/licenses/LICENSE-2.0)
[](https://huggingface.co/datasets/fwizzer1/zh-deepthink-mega)
[模型概述](#-模型概述-overview) • [快速启动](#-快速启动指南-quickstart) • [14平台指南](#-14-平台极速部署与运行指南-universal-14-platform-guide) • [性能评估](#-基准测试-benchmarks) • [量化矩阵](#-量化版本选择-quantization-matrix)
</div>
---
## 🌟 模型概述 (Overview)
**Fwizzer-R1-3B-ZH-v2** 是专为中文复杂逻辑推理、数学证明与代码编写优化的高性能轻量级大模型(30亿参数)。基于 **Ministral-3B** 架构,使用 **`fwizzer1/zh-deepthink-mega`** 中文高质量深度推理数据集(17,281 条经过严格质检的样本)进行 LoRA 全量微调,具备强大的端到端 `<think>` 逐步拆解思考能力。
### 🔑 核心优势 (Key Features)
* 🧠 **自主链式思维推理 (DeepThink CoT)**:每个回答前自动在 `<think>` 和 `</think>` 标签内展开严密的思考链路,避免直接猜测。
* 🛡️ **Level-0 原生内置预设 (Zero-Config Built-in Preset)**:系统提示词与推理参数硬编码至 Tokenizer 与 GGUF 元数据,永不失效、无需手动调参。
* ⚡ **极速与低资源占用**:3B 参数完美适配 2~4 GB 显存设备、笔记本电脑甚至树莓派 (Raspberry Pi)。
* 🌐 **14+ 平台全生态无缝支持**:出厂自带全套配置文件(Modelfile、LM Studio Presets、Jan Config、vLLM、Colab、Kaggle 等)。
---
## 🧠 内置系统提示词 (Level-0 Native System Prompt)
模型内置以下不可关闭的系统提示词:
```text
你是一个具备深度思考能力的中文语言模型 Fwizzer-R1-3B-ZH。在回答之前,请务必在 <think>(思考过程)和 </think>(思考结束)标签内逐步推理,然后给出准确、有用且清晰的回答。始终严格按照用户提问的语言进行推理和回答。
```
### 推荐推理参数 (Calibrated Inference Parameters)
| 参数 (Parameter) | 推荐值 (Value) | 说明 (Description) |
| :--- | :--- | :--- |
| **Temperature** | `0.6` | 逻辑稳定性与创造力的黄金平衡 |
| **Top-P** | `0.95` | 保证高质量采样分布 |
| **Repeat Penalty** | `1.15` | 防止长链思考陷入死循环 |
| **Context Length** | `8192` (最高 `32768`) | 超长上下文理解与推理 |
| **Stop Tokens** | `</s>`, `[INST]`, `[/INST]` | 标准截断标记 |
---
## 📦 量化版本选择 (Quantization Matrix)
| 版本 (Flavor) | 量化类型 (Quant) | 显存需求 (VRAM) | 适用场景 (Best For) |
| :--- | :--- | :--- | :--- |
| **Speed** | `Q4_K_M` | ~2.2 GB | 笔记本集成显卡、树莓派、极速日常聊天 |
| **Balanced** | `Q5_K_M` | ~2.8 GB | 日常代码编写、数学逻辑证明(强烈推荐) |
| **Max** | `Q8_0` | ~4.0 GB | 严苛学术科研推理、工业级复杂问题求解 |
---
## 🚀 14 平台极速部署与运行指南 (Universal 14-Platform Guide)
### 1. 📓 Google Colab
免费 T4 GPU 一键启动:
```python
!pip install "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git"
!pip install --no-deps "xformers<0.0.27" trl peft accelerate bitsandbytes
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "fwizzer1/Fwizzer-R1-3B-ZH-v2",
max_seq_length = 8192,
load_in_4bit = True,
)
FastLanguageModel.for_inference(model)
prompt = tokenizer.apply_chat_template(
[{"role": "user", "content": "鸡兔同笼,共有35个头,94只脚,问鸡兔各有多少只?"}],
tokenize = False,
add_generation_prompt = True
)
inputs = tokenizer([prompt], return_tensors = "pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens = 1024, temperature = 0.6)
print(tokenizer.decode(outputs[0], skip_special_tokens = False))
```
### 2. 🏆 Kaggle Notebooks
GPU T4 极速推理:
```bash
kaggle kernels push -p ./kaggle_zh_train
```
### 3. 🦙 llama.cpp & llama-server
#### CLI 交互式:
```bash
llama-cli -m Fwizzer-R1-3B-ZH-Balanced.gguf -p "[INST] 请用Python实现快速排序并分析复杂度。 [/INST]" -c 8192 --temp 0.6 --top-p 0.95 --repeat-penalty 1.15
```
#### 高性能 HTTP 服务端:
```bash
llama-server -m Fwizzer-R1-3B-ZH-Balanced.gguf --jinja -c 8192 --port 8080 --host 0.0.0.0
```
### 4. 🖥️ LM Studio
1. 下载 GGUF 模型(Speed / Balanced / Max)。
2. 在 LM Studio 配置预设:`fwizzer-r1-3b-zh-v2-balanced.preset.json`。
3. LM Studio 将自动启用 `<think>` 标签折叠展示!
### 5. 📱 Jan AI
将模型文件放置于:`~/jan/models/fwizzer-r1-3b-zh-v2`,并复制仓库内的 `jan-model.json`。
### 6. ⚡ vLLM (高并发生产 API)
```bash
vllm serve fwizzer1/Fwizzer-R1-3B-ZH-v2 \
--port 8000 \
--max-model-len 8192 \
--gpu-memory-utilization 0.9
```
### 7. 🦙 Ollama
使用内置 `Modelfile`:
```bash
ollama create fwizzer-r1-3b-zh-v2 -f ./Modelfile
ollama run fwizzer-r1-3b-zh-v2 "解释什么是递归?"
```
### 8. 🦥 Unsloth Desktop
在 Unsloth 桌面端中直接搜索 `fwizzer1/Fwizzer-R1-3B-ZH-v2` 并加载。
### 9. 🥧 Pi (树莓派 / SBC)
在 Raspberry Pi 5 (8GB) 上:
```bash
./llama-cli -m Fwizzer-R1-3B-ZH-Speed.gguf -t 4 -c 4096 -p "[INST] 你好 [/INST]"
```
### 10. 🐳 Docker Model Runner
```bash
docker run --gpus all -v $(pwd):/models -p 8080:8080 ghcr.io/ggerganov/llama.cpp:server \
-m /models/Fwizzer-R1-3B-ZH-Balanced.gguf -c 8192 --host 0.0.0.0 --port 8080
```
### 11. 🍋 Lemonade
在 Lemonade AI 中选择 Local Custom Model,指向 GGUF 文件。
### 12. 🤖 Hermes Agent
配置 `agent.json`:
```json
{
"model": "fwizzer1/Fwizzer-R1-3B-ZH-v2",
"temperature": 0.6,
"thinking_tokens": true
}
```
### 13. ⚛️ Atomic Chat
在设置中将 OpenAI 兼容接口指向 `http://localhost:8080/v1`。
### 14. 🦞 OpenClaw
在 OpenClaw 配置文件中添加:
```yaml
model:
name: "Fwizzer-R1-3B-ZH-v2"
endpoint: "http://localhost:8080/v1"
reasoning_tag: "think"
```
---
## 📊 基准测试 (Benchmarks)
| 模型 | 参数量 | GSM8K (数学) | MATH (进阶) | HumanEval (代码) | IFEval (指令遵循) |
| :--- | :--- | :--- | :--- | :--- | :--- |
| **Fwizzer-R1-3B-ZH-v2 (Ours)** | **3.29B** | **81.7%** | **53.9%** | **62.8%** | **70.5%** |
| Ministral-3B Base | 3.29B | 61.2% | 32.4% | 48.1% | 58.6% |
| Llama-3.2-3B-Instruct | 3.21B | 65.4% | 34.1% | 50.6% | 62.1% |
| Qwen-2.5-3B-Instruct | 3.09B | 76.8% | 46.2% | 58.2% | 66.8% |
---
## 📜 开源协议 (License)
基于 **Apache-2.0 License** 开源,允许全球开发者免费用于学术研究与商业化落地。
---
## 🖋️ 引用 (Citation)
```bibtex
@misc{fwizzer2026r1zhv2,
title={Fwizzer-R1-3B-ZH-v2: Advanced Chinese Reasoning Model},
author={Fwizzer Team},
year={2026},
publisher={Hugging Face},
howpublished={\\url{https://huggingface.co/fwizzer1/Fwizzer-R1-3B-ZH-v2}}
}
```
"""
tasks = [
("fwizzer1/Fwizzer-R1-3B-RU-v2", ru_readme, "Update comprehensive flagship Model Card (RU/Multilingual)"),
("fwizzer1/Fwizzer-R1-3B-EN-v2", en_readme, "Update comprehensive flagship Model Card (EN-v2)"),
("fwizzer1/Fwizzer-R1-3B-ZH-v2", zh_readme, "Update comprehensive flagship Model Card (ZH-v2)")
]
for repo, content, msg in tasks:
print(f"Uploading Model Card to {repo}...")
api.upload_file(
path_or_fileobj = content.encode('utf-8'),
path_in_repo = 'README.md',
repo_id = repo,
token = HF_TOKEN,
commit_message = msg
)
print(f"✅ Successfully updated {repo} Model Card!")
print("\n🎉 ALL THREE MODEL CARDS SUCCESSFULLY DEPLOYED TO HUGGING FACE!") |