Text Generation
PEFT
Safetensors
Chinese
taiwan
traditional-chinese
zh-tw
sovereign-ai
Mixture of Experts
looped-transformer
qlora
sft
dpo
rlvr
grpo
raft
chain-of-thought
tmmluplus
taiwan-law
ceec
conversational
Eval Results (legacy)
Run this model with HF Jobs
Run bjo4/Inkling-2-Mini-TW-Sovereign on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/bjo4/Inkling-2-Mini-TW-Sovereign. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/bjo4/Inkling-2-Mini-TW-Sovereign on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/bjo4/Inkling-2-Mini-TW-Sovereign. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/bjo4/Inkling-2-Mini-TW-Sovereign. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use bjo4/Inkling-2-Mini-TW-Sovereign with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use bjo4/Inkling-2-Mini-TW-Sovereign with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("thinkingmachines/Inkling-2-Mini") model = PeftModel.from_pretrained(base_model, "bjo4/Inkling-2-Mini-TW-Sovereign") - Notebooks
- Google Colab
- Kaggle
Upload Phase 2 Closed-Book (CEEC + Formosa 70.77%) LoRA adapter
Browse filesFiles changed (7)
- phase2_closed_book_lora/README.mdAdded+206
- phase2_closed_book_lora/adapter_config.jsonAdded+86
- phase2_closed_book_lora/adapter_model.safetensorsAdded+3
- phase2_closed_book_lora/chat_template.jinjaAdded+137
- phase2_closed_book_lora/processor_config.jsonAdded+25
- phase2_closed_book_lora/tokenizer.jsonAdded+3
- phase2_closed_book_lora/tokenizer_config.jsonAdded+568
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206---language:- zhlicense: apache-2.0base_model: thinkingmachines/Inkling-2-Minilibrary_name: peftpipeline_tag: text-generationtags:- taiwan- traditional-chinese- zh-tw- sovereign-ai- moe- sft- dpo- rlvr- grpo- raft- chain-of-thought- model-soup- opentwbench- tmmluplus- taiwan-law- ceecdatasets:- ikala/tmmluplus- yiting/tw-instruct-500k- lianghsun/tw-legal-chat- lianghsun/tw-legal-benchmark-v1- OpenTWBench/tw-exam-bench- OpenTWBench/tw-formosa-benchmodel-index:- name: Inkling-2-Mini-TW-Sovereign results: - task: type: text-generation name: Taiwan Sovereign 1058-Question Hold-Out Benchmark dataset: name: Combined Hold-Out (Formosa-bench + tw-legal-v1 + TMMLU+ + CEEC-300) type: custom metrics: - type: accuracy value: 68.53 name: Overall Accuracy (Phase 3 Model Soup + CoT + RAFT) - type: accuracy value: 69.66 name: Overall Accuracy (Adaptive RAG Routing) - task: type: text-generation name: Formosa-bench (Taiwan Everyday & Civic Knowledge) dataset: name: OpenTWBench/tw-formosa-bench type: OpenTWBench/tw-formosa-bench metrics: - type: accuracy value: 70.77 name: Accuracy (Phase 2 Closed-Book) - type: accuracy value: 68.48 name: Accuracy (Phase 3 CoT + RAFT) - task: type: text-generation name: Taiwan Statutory & Bar Exam Benchmark dataset: name: lianghsun/tw-legal-benchmark-v1 type: lianghsun/tw-legal-benchmark-v1 metrics: - type: accuracy value: 61.24 name: Accuracy (+32.53% over base model) - task: type: text-generation name: TMMLU+ Taiwan National Examinations dataset: name: ikala/tmmluplus type: ikala/tmmluplus metrics: - type: accuracy value: 65.50 name: Accuracy (+12.50% over base model) - task: type: text-generation name: Taiwan CEEC University Entrance Exams (GSAT & AST 民國73-115年) dataset: name: CEEC-Bench-300 type: custom metrics: - type: accuracy value: 76.00 name: Accuracy (AST Subject Test 90.00%)---
# 🇹🇼 Inkling-2-Mini-TW-Sovereign
**Inkling-2-Mini-TW-Sovereign** 是以 [`thinkingmachines/Inkling-2-Mini`](https://huggingface.co/thinkingmachines/Inkling-2-Mini)(10B Total Parameters / ~2B Active Parameters, Sparse Mixture-of-Experts 架構)為基底,專為**台灣繁體中文(zh-TW)語境、中華民國五院憲政與六法體系、台灣國家考試(高普考/專技高考)以及大學入學測驗(學測/指考/分科測驗)**打造之輕量級台灣主權語言模型。
本模型於 **GPUtw 台灣自有機房(NVIDIA RTX 5090 32GB)** 完成三階段演進微調:1. **Phase 1(方案 A:台灣主權黃金配比)**:串聯 `Response-Only SFT`(19 組台灣核心開源語料)$\rightarrow$ `DPO`(正簡體與兩岸詞彙偏好對齊,100% 台灣慣用語偏好率、0% 簡體字洩漏)$\rightarrow$ `RLVR / GRPO`(可驗證獎勵之群組相對策略優化)。2. **Phase 2(大考中心歷屆試題與專科弱項精煉)**:注入民國 73–115 學年度大考中心歷屆學測(GSAT)、指考(AST)與分科測驗共 **5,769 題官方試題與詳解**,以及台灣專技高考(專利師、會計師審計、稅法)與教育部台語文語料。3. **Phase 3(Model Soup 權重插值 + 單通雙軌 CoT 思維鏈 + RAFT 檢索增強微調)**:先以線性插值($\theta_{\text{soup}} = 0.65\theta_{\text{P2}} + 0.35\theta_{\text{P1}}$)融合前兩階段之 LoRA 權重,再結合 **21,729 條台灣法規與考科知識庫(BM25 Index)** 執行 **RAFT(70% 含黃金條文 + 30% 純干擾項抗噪訓練)** 與 `<|content_thinking|>` 結構化思維鏈微調。
---
## 📊 核心評測結果(1,058 題 100% 物理隔離 Hold-Out 基準測試)
| 評測基準集 (Benchmark) | 題數 | 原始 `Inkling-2-Mini` | Phase 1 (SFT+DPO+RLVR) | Phase 2 (閉卷 + 大考中心) | **Phase 3 (Model Soup + CoT + RAFT)** | 累計淨提升 ($\Delta$) || :--- | :---: | :---: | :---: | :---: | :---: | :---: || **`Formosa-bench`** (台灣日常/地理/政府/歷史/社會) | 349 | `56.73%` | `67.34%` | **`70.77%`** | `68.48%` | **`+11.75% ~ +14.04%`** || **`tw-legal-benchmark-v1`** (中華民國六法與司法實務) | 209 | `28.71%` | `44.50%` | `49.76%` | **`61.24%`** | **`🔥 +32.53% (2.13x)`** || **`TMMLU+ Test Split`** (台灣 66 科國家考試基準) | 200 | `53.00%` | `61.50%` | `63.50%` | **`65.50%`** | **`+12.50%`** || **`CEEC-Bench-300`** (歷屆大學學測/指考/分科測驗) | 300 | `63.00%` | `73.00%` | **`76.00%`** | `75.67%` | **`+12.67% ~ +13.00%`** || **🏆 1,058 題綜合總準確率 (Overall)** | **1,058** | **`52.27%`** | **`62.57%`** | **`66.73%`** | **`68.53%`** *(動態路由 `69.66%`)* | **`🚀 +16.26% (+172 題)`** |
### 🏆 在 `OpenTWBench` 官方排行榜(110 個模型)之對位���現- **總榜排名**:由未微調前之 **第 `#58 ~ #63 名`** 大幅躍升至 **第 `#37 ~ #39 名` / 111**(前進 `+21 ~ +24 名`),超越 `Qwen3-30B-A3B (66.75%)`、`NVIDIA-Nemotron-3-Super-120B-A12B (65.17%)`、`gpt-oss-120b (64.46%)`、`QwQ-32B (63.42%)`、`Llama-3.3-70B-Instruct (56.80%)`。- **同量級(`≤ 14B`)排名**:於全榜所有 14B 以下輕量級模型中位居 **第 `#1 名`**(領先原第一名 `#44 Ornith-1.5-9B 60.79%` 達 `+5.12% ~ +7.74%`)。- **`tw-formosa-bench`(台灣生活常識單項分榜)**:以 **`70.77%` 高居全榜第 `#27 名`**,超越 `MiniMax-M2.5 (70.52%)`、`GLM-4.7 (69.28%)`、`DeepSeek-V3.2 (68.40%)`、`Qwen2.5-72B-Instruct (66.98%)`。
---
## 🚀 快速開始(Quickstart Usage)
### 1. 載入基底模型與 LoRA 權重
```pythonimport torchfrom transformers import AutoModelForCausalLM, AutoTokenizerfrom peft import PeftModel
BASE_MODEL = "thinkingmachines/Inkling-2-Mini"LORA_ADAPTER = "bjo4/Inkling-2-Mini-TW-Sovereign" # 預設載入 Phase 3 (Model Soup + CoT + RAFT) 主權重;亦可指定 subfolder="phase2_closed_book_lora"
tokenizer = AutoTokenizer.from_pretrained(BASE_MODEL, trust_remote_code=True)base_model = AutoModelForCausalLM.from_pretrained( BASE_MODEL, torch_dtype=torch.bfloat16, device_map="auto", trust_remote_code=True,)model = PeftModel.from_pretrained(base_model, LORA_ADAPTER)model.eval()```
### 2. 使用雙通道思維鏈(`<|content_thinking|>`)與 RAFT 法條檢索推論
```pythonsystem_prompt = ( "你是台灣主權 AI 專家助手,精通中華民國(台灣)五院憲政體制、六法全書、高普考與專技高考學科、" "大考中心學測與分科測驗各科知識及台灣在地文化。" "請先在思考區塊中進行考點識別、法條比對與選項消去法,再輸出繁體中文詳解與『最終答案:X』。")
user_question = """[檢索參考資料]- [法規知識 #1] 依中華民國《民法》第 12 條規定(民國 110 年修正,112 年 1 月 1 日施行):「滿十八歲為成年。」- [法規知識 #2] 《民法》第 13 條:「未滿七歲之未成年人,無行為能力。滿七歲以上之未成年人,有限制行為能力。」
問題:依現行中華民國《民法》規定,幾歲為成年,具備完全行為能力?(A) 滿 16 歲(B) 滿 18 歲(C) 滿 20 歲(D) 滿 21 歲"""
messages = [ {"role": "system", "content": system_prompt}, {"role": "user", "content": user_question},]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad(): outputs = model.generate( **inputs, max_new_tokens=256, do_sample=False, pad_token_id=tokenizer.eos_token_id, )
response = tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=False)print(response)```
---
## 📦 儲存庫結構(Repository Contents)
本儲存庫提供三個階段之最佳 LoRA 權重與台灣主權法規知識庫,方便依場景自由掛載:- `phase3_cot_raft_final_lora/` *(預設主目錄)*:**Phase 3 終極版權重(Model Soup + CoT + RAFT)**,適合搭配法規/企業知識庫檢索(RAG)與高難度國考解題(1,058 題總分 **`68.53%`**、台灣法規 **`61.24%`**、TMMLU+ **`65.50%`**)。- `phase2_closed_book_lora/`:**Phase 2 閉卷最佳權重**,適合無外部檢索器之純直覺對話、台灣文化常識與台語文問答(`Formosa-bench` **`70.77%`**、大考中心 `CEEC-300` **`76.00%`**、台語文 **`100.0%`**)。- `phase3_model_soup_lora/`:**Model Soup 融合基底權重($0.65 \times \text{Phase 2} + 0.35 \times \text{Phase 1}$)**。- `raft_index/taiwan_sovereign_kb.jsonl`(選配):**21,729 條台灣法規與考科知識切片**,可直接載入 `rank_bm25` 進行毫秒級本地檢索。
---
## 📝 引用格式(Citation)
```bibtex@techreport{inkling2_mini_tw_sovereign_2026, title={Inkling-2-Mini-TW-Sovereign: Multi-Stage Post-Training Alignment, Model Soup Adapter Interpolation, and Retrieval-Augmented Chain-of-Thought for a Lightweight Taiwan Sovereign Language Model}, author={Warren}, year={2026}, month={November}, institution={Trained on GPUtw Taiwan Self-Owned RTX 5090 Data Center}, note={Base model: thinkingmachines/Inkling-2-Mini}}```1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586{ "alora_invocation_tokens": null, "alpha_pattern": {}, "arrow_config": null, "astra_config": null, "auto_mapping": { "base_model_class": "Inkling2LoopForConditionalGeneration", "parent_library": "unsloth_compiled_module_inkling2_loop", "unsloth_fixed": true, "unsloth_fused_expert_lora": { "lora_A_layout": "grouped_by_expert", "lora_B_layout": "rank_major", "parameters": { "down_proj": { "lora_B_layout": "rank_major", "num_experts": 128 }, "gate_up_proj": { "lora_B_layout": "rank_major", "num_experts": 128 } } } }, "base_model_name_or_path": "thinkingmachines/Inkling-2-Mini", "bias": "none", "corda_config": null, "ensure_weight_tying": false, "eva_config": null, "exclude_modules": null, "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "kasa_config": null, "layer_replication": null, "layers_pattern": null, "layers_to_transform": null, "loftq_config": {}, "lora_B_layout": "rank_major", "lora_alpha": 32, "lora_bias": false, "lora_dropout": 0, "lora_ga_config": null, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": null, "monteclora_config": null, "peft_type": "LORA", "peft_version": "0.22.0", "qalora_group_size": 16, "r": 16, "rank_pattern": {}, "revision": null, "target_modules": [ "v_proj.linear", "o_proj.linear", "gate_proj", "q_proj.linear", "k_proj.linear" ], "target_parameters": [ "mlp.experts.gate_up_proj", "mlp.experts.down_proj" ], "task_type": "CAUSAL_LM", "trainable_token_indices": null, "unsloth_fused_expert_lora": { "lora_A_layout": "grouped_by_expert", "lora_B_layout": "rank_major", "parameters": { "down_proj": { "lora_B_layout": "rank_major", "num_experts": 128 }, "gate_up_proj": { "lora_B_layout": "rank_major", "num_experts": 128 } } }, "use_bdlora": null, "use_dora": false, "use_qalora": false, "use_rslora": false, "velora_config": null}123version https://git-lfs.github.com/spec/v1oid sha256:57f155ff7e206e9010cc02bb2da58dcdced0f49bb1e653d34b1117edd2aa3ac1size 1620496408123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137{%- set effort_map = {"none": 0.0, "minimal": 0.1, "low": 0.2, "medium": 0.7, "high": 0.9, "xhigh": 0.99, "max": 0.99} -%}{%- set role_token = {"user": "<|message_user|>", "assistant": "<|message_model|>", "system": "<|message_system|>", "tool": "<|message_tool|>"} -%}
{%- macro emit_thinking_effort() -%} {%- set eff = reasoning_effort if reasoning_effort is defined and reasoning_effort is not none else 0.9 -%} {%- if eff is string -%} {%- set key = eff | trim -%} {%- if key not in effort_map -%} {{- raise_exception("Unknown reasoning_effort: " ~ eff) -}} {%- endif -%} {%- set num = effort_map[key] -%} {%- else -%} {%- set num = eff | float -%} {%- endif -%} {%- if num < 0.0 or num > 0.99 -%} {{- raise_exception("reasoning_effort must be in [0.0, 0.99]") -}} {%- endif -%} {{- "<|message_system|><|content_text|>Thinking effort level: " -}} {%- if num == 0.0 -%}0{%- else -%}{{ num }}{%- endif -%} {{- "<|end_message|>" -}}{%- endmacro -%}
{%- if tools -%} {%- set tool_state = namespace(specs=[]) -%} {%- for tool in tools -%} {%- set fn = tool.function if tool.function is defined else tool -%} {%- set spec = { "description": (fn.description if fn.description is defined and fn.description else ""), "name": fn.name, "parameters": (fn.parameters if fn.parameters is defined and fn.parameters else {}), "type": (tool.type if tool.type is defined and tool.type else "function"), } -%} {%- set tool_state.specs = tool_state.specs + [spec] -%} {%- endfor -%} {{- "<|message_system|>tool_declare<|content_xml|>" -}} {{- tool_state.specs | tojson(sort_keys=true, separators=(",", ":")) -}} {{- "<|end_message|>" -}}{%- endif -%}
{%- set state = namespace(effort_emitted=false) -%}{%- for message in messages -%} {%- if message.role not in role_token -%} {{- raise_exception("Unknown message role: " ~ message.role) -}} {%- endif -%} {%- if not state.effort_emitted and message.role != "system" -%} {{- emit_thinking_effort() -}} {%- set state.effort_emitted = true -%} {%- endif -%}
{%- set header = namespace(text=role_token[message.role]) -%} {%- if message.role == "tool" -%} {%- if message.name is defined and message.name -%} {%- set header.text = header.text ~ message.name -%} {%- elif message.tool_call_id is defined and message.tool_call_id -%} {%- for prev in messages -%} {%- if prev.role == "assistant" and prev.tool_calls -%} {%- for tc in prev.tool_calls -%} {%- if tc.id is defined and tc.id == message.tool_call_id and tc.function.name is defined -%} {%- set header.text = header.text ~ tc.function.name -%} {%- endif -%} {%- endfor -%} {%- endif -%} {%- endfor -%} {%- endif -%} {%- elif message.role == "assistant" and message.name is defined and message.name -%} {%- set header.text = header.text ~ message.name -%} {%- endif -%} {%- set rtok = header.text -%} {%- set rendered -%}
{%- if message.role == "assistant" and message.reasoning_content is defined and message.reasoning_content -%} {{- rtok ~ "<|content_thinking|>" ~ message.reasoning_content ~ "<|end_message|>" -}} {%- endif -%}
{%- if message.content is string and (message.content or not (message.role == "assistant" and (message.tool_calls or message.reasoning_content))) -%} {{- rtok ~ "<|content_text|>" ~ message.content ~ "<|end_message|>" -}} {%- elif message.content -%} {%- for part in message.content -%} {%- if part is string -%} {{- rtok ~ "<|content_text|>" ~ part ~ "<|end_message|>" -}} {%- elif part.type is not defined or part.type in ("text", "input_text") -%} {%- set text_part = (part.text if part.text is defined and part.text is string else "") -%} {{- rtok ~ "<|content_text|>" ~ text_part ~ "<|end_message|>" -}} {%- elif part.type in ("image", "input_image", "image_url") -%} {%- if message.role not in ("user", "tool") -%} {{- raise_exception("Image content is only supported for user and tool messages") -}} {%- endif -%} {{- rtok ~ "<|content_image|><|unused_200054|><|end_message|>" -}} {%- elif part.type in ("audio", "input_audio", "audio_url") -%} {{- raise_exception("Inkling 2 does not accept audio input") -}} {%- else -%} {{- raise_exception("Unsupported content part type: " ~ part.type) -}} {%- endif -%} {%- endfor -%} {%- endif -%}
{%- if message.role == "assistant" and message.tool_calls -%} {%- for tc in message.tool_calls -%} {%- set fn = tc.function -%} {%- if fn.name is not defined or fn.name is not string -%} {{- raise_exception("tool call function name must be a string") -}} {%- endif -%} {%- if message.name is defined and message.name and message.name != fn.name -%} {{- raise_exception("assistant name " ~ message.name ~ " does not match its tool call " ~ fn.name) -}} {%- endif -%} {%- set args = fn.arguments if fn.arguments is defined and fn.arguments else {} -%} {%- if args is string -%} {{- raise_exception("tool call arguments must be a parsed object, not a JSON string; canonicalize upstream") -}} {%- endif -%} {%- if args is not mapping -%} {{- raise_exception("tool call arguments must be an object") -}} {%- endif -%} {{- "<|message_model|>" ~ fn.name ~ "<|content_invoke_tool_json|>" -}} {{- '{"name":' ~ (fn.name | tojson(sort_keys=true, separators=(",", ":"))) ~ ',"args":' -}} {{- "{" -}} {%- for key, value in args | dictsort(case_sensitive=true) -%} {{- (key | tojson) ~ ":" ~ (value | tojson(separators=(",", ":"))) -}} {%- if not loop.last -%},{%- endif -%} {%- endfor -%} {{- "}}<|end_message|>" -}} {%- endfor -%} {%- endif -%}
{%- if message.role == "assistant" -%} {{- "<|content_model_end_sampling|>" -}} {%- endif -%} {%- endset -%} {%- if message.role == "assistant" -%} {%- generation -%}{{- rendered -}}{%- endgeneration -%} {%- else -%} {{- rendered -}} {%- endif -%}{%- endfor -%}
{%- if not state.effort_emitted -%} {{- emit_thinking_effort() -}}{%- endif -%}12345678910111213141516171819202122232425{ "image_processor": { "do_convert_rgb": true, "do_normalize": true, "do_rescale": true, "image_mean": [ 0.5, 0.5, 0.5 ], "image_processor_type": "Inkling2ImageProcessor", "image_std": [ 0.5, 0.5, 0.5 ], "rescale_factor": 0.00392156862745098, "size": { "height": 40, "width": 40 } }, "image_token": "<|unused_200054|>", "processor_class": "Inkling2Processor"}123version https://git-lfs.github.com/spec/v1oid sha256:7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6size 26178678123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568{ "backend": "tokenizers", "begin_of_text": "<|begin_of_text|>", "clean_up_tokenization_spaces": false, "content_image": "<|content_image|>", "content_invoke_tool_json": "<|content_invoke_tool_json|>", "content_invoke_tool_text": "<|content_invoke_tool_text|>", "content_model_end_sampling": "<|content_model_end_sampling|>", "content_text": "<|content_text|>", "content_thinking": "<|content_thinking|>", "content_tool_error": "<|content_tool_error|>", "content_xml": "<|content_xml|>", "end_message": "<|end_message|>", "endoftext": "<|endoftext|>", "eos_token": "<|content_model_end_sampling|>", "fix_mistral_regex": false, "is_local": true, "local_files_only": false, "message_model": "<|message_model|>", "message_system": "<|message_system|>", "message_tool": "<|message_tool|>", "message_user": "<|message_user|>", "model_max_length": 1048576, "model_specific_special_tokens": { "begin_of_text": "<|begin_of_text|>", "content_image": "<|content_image|>", "content_invoke_tool_json": "<|content_invoke_tool_json|>", "content_invoke_tool_text": "<|content_invoke_tool_text|>", "content_model_end_sampling": "<|content_model_end_sampling|>", "content_text": "<|content_text|>", "content_thinking": "<|content_thinking|>", "content_tool_error": "<|content_tool_error|>", "content_xml": "<|content_xml|>", "end_message": "<|end_message|>", "endoftext": "<|endoftext|>", "message_model": "<|message_model|>", "message_system": "<|message_system|>", "message_tool": "<|message_tool|>", "message_user": "<|message_user|>" }, "pad_token": "<|endoftext|>", "padding_side": "right", "processor_class": "Inkling2Processor", "response_template": { "defaults": { "role": "assistant" }, "fields": { "content": { "close": "<|end_message|>", "content": "text", "content_args": { "strip": false }, "join": "", "open_pattern": "(?:<\\|message_model\\|>[^<]*)?<\\|content_(?:text|tool_error|invoke_tool_text)\\|>", "repeats": true }, "reasoning_content": { "close": "<|end_message|>", "content": "text", "content_args": { "strip": false }, "join": "", "open_pattern": "(?:<\\|message_model\\|>[^<]*)?<\\|content_thinking\\|>", "repeats": true }, "tool_calls": { "close": "<|end_message|>", "content": "json", "open_pattern": "(?:<\\|message_model\\|>[^<]*)?<\\|content_invoke_tool_json\\|>", "repeats": true, "transform": { "function": { "arguments": "{content.args}", "name": "{content.name}" }, "type": "function" } } }, "start_anchor_pattern": "<\\|end_message\\|>|<\\|content_model_end_sampling\\|>" }, "tokenizer_class": "PreTrainedTokenizerFast", "added_tokens_decoder": { "199998": { "content": "<|unused|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "199999": { "content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200000": { "content": "<|message_user|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200001": { "content": "<|message_model|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200002": { "content": "<|message_system|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200003": { "content": "<|message_tool|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200004": { "content": "<|content_text|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200005": { "content": "<|content_image|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200006": { "content": "<|content_model_end_sampling|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200007": { "content": "<|unused_200007|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200008": { "content": "<|content_thinking|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200009": { "content": "<|unused_200009|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200010": { "content": "<|end_message|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200011": { "content": "<|unused_200011|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200012": { "content": "<|unused_200012|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200013": { "content": "<|unused_200013|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200014": { "content": "<|unused_200014|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200015": { "content": "<|unused_200015|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200016": { "content": "<|unused_200016|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200017": { "content": "<|unused_200017|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200018": { "content": "<|unused_200018|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200019": { "content": "<|unused_200019|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200020": { "content": "<|unused_200020|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200021": { "content": "<|unused_200021|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200022": { "content": "<|content_tool_error|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200023": { "content": "<|unused_200023|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200024": { "content": "<|content_xml|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200025": { "content": "<|unused_200025|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200026": { "content": "<|unused_200026|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200027": { "content": "<|unused_200027|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200028": { "content": "<|begin_of_text|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200029": { "content": "<|unused_200029|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200030": { "content": "<|unused_200030|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200031": { "content": "<|unused_200031|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200032": { "content": "<|unused_200032|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200033": { "content": "<|unused_200033|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200034": { "content": "<|unused_200034|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200035": { "content": "<|unused_200035|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200036": { "content": "<|unused_200036|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200037": { "content": "<|unused_200037|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200038": { "content": "<|unused_200038|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200039": { "content": "<|unused_200039|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200040": { "content": "<|unused_200040|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200041": { "content": "<|unused_200041|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200042": { "content": "<|unused_200042|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200043": { "content": "<|unused_200043|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200044": { "content": "<|unused_200044|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200045": { "content": "<|unused_200045|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200046": { "content": "<|unused_200046|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200047": { "content": "<|unused_200047|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200048": { "content": "<|unused_200048|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200049": { "content": "<|content_invoke_tool_json|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200050": { "content": "<|unused_200050|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200051": { "content": "<|unused_200051|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200052": { "content": "<|unused_200052|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200053": { "content": "<|unused_200053|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200054": { "content": "<|unused_200054|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200055": { "content": "<|unused_200055|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200056": { "content": "<|unused_200056|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "200057": { "content": "<|content_invoke_tool_text|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true } }}phase2_closed_book_lora/README.mdAdded+206
phase2_closed_book_lora/adapter_config.jsonAdded+86
phase2_closed_book_lora/adapter_model.safetensorsAdded+3
phase2_closed_book_lora/chat_template.jinjaAdded+137
phase2_closed_book_lora/processor_config.jsonAdded+25
phase2_closed_book_lora/tokenizer.jsonAdded+3
phase2_closed_book_lora/tokenizer_config.jsonAdded+568