bjo4's picture
Upload OpenTWBench Full BF16 weights (part 1/2) + Model Card & Twinkle Eval report
85be045 verified
|
Raw History Blame Contribute Delete
3.93 kB
metadata
base_model: thinkingmachines/Inkling-2-Mini
language:
  - zh
  - en
license: apache-2.0
pipeline_tag: text-generation
tags:
  - taiwan
  - traditional-chinese
  - opentwbench
  - moe
  - inkling-2-mini
  - twinkle-eval
  - bf16

Inkling-2-Mini-TW-OpenTWBench (26.4B MoE / 3.4B Active, Full BF16)

OpenTWBench-Compliant Zero-Contamination Closed-Book Full-Precision (BF16) Edition of thinkingmachines/Inkling-2-Mini, fine-tuned from clean base weights specifically for Traditional Chinese (Taiwan) knowledge, statutory law, national exam reasoning, and strict Twinkle Eval \boxed{X} output formatting.

Zero-Contamination Audit

  • Fresh Base Initialization: Fine-tuned from scratch starting directly from thinkingmachines/Inkling-2-Mini (no warm-start from any checkpoint that touched OpenTWBench datasets).
  • 3-Layer Strict Decontamination Blocklist: Every training candidate was checked against ALL 22,021 items of OpenTWBench/tw-exam-bench-sample and ALL 1,696 items of OpenTWBench/tw-formosa-bench via:
    1. Official OpenTWBench SHA-256 fingerprint (NFC normalized stem || sorted options)
    2. Normalized 16-char and 20-char CJK stem prefix matching
    3. Exact normalized CJK stem matching
  • Contaminated Candidates Removed: 96 items strictly excluded prior to training.
  • Clean SFT Pool: 5,355 items built exclusively from 6 public Traditional Chinese datasets (zake7749/kyara-lite-1M-DPO-TMMLUPLUS, ikala/tmmluplus train/validation splits only, MrFrogIsMe/tw-bar-exam, lianghsun/tw-bar-examination-2020-chat train split only, lianghsun/tw-processed-law-article, twinkle-ai/tw-reasoning-instruct-50k).

Architecture & Training Summary

  • Base Model: thinkingmachines/Inkling-2-Mini (26.4B total parameters / 3.4B active per pass / 5.4B effective active via 3× middle-12-layer loop; inkling2_loop architecture).
  • Fine-Tuning: QLoRA (r=16, alpha=32, all attention & MLP language layers; 405,110,784 trainable parameters = 1.51% of 26,791,523,328 total) merged cleanly into Full BF16 (11 safetensors shards, 49.18 GB) for direct OpenTWBench / vLLM / Transformers evaluation.
  • Schedule: 160 optimizer steps, effective batch size 8 (1,280 samples seen), cosine LR 0.00015, average training loss 0.4313 (1.1811 -> 0.3039), trained on a single NVIDIA A100-SXM4-80GB in 21.5 minutes.
  • Twinkle Eval Compatibility: chat_template.jinja defaults reasoning_effort to 'low' so the model emits concise Traditional Chinese reasoning followed by \boxed{X} without truncation.

Self-Evaluated Full-BF16 Twinkle Eval (\boxed{X}) Results

Evaluated directly on the merged full-BF16 weights using Twinkle Eval's exact system prompt (請將最終答案放在 \boxed{} 中。) and default chat_template.jinja (greedy decoding):

OpenTWBench Axis Sample Scope Strict \boxed{X} Acc Box Parse Rate Lenient Acc Simplified Leakage
OpenTWBench/tw-formosa-bench 65 stratified (5 × all 13 categories) 52.31% (34/65) 100.0% 52.31% 0.1282%
OpenTWBench/tw-exam-bench-sample 40 distinct national exam subjects 70.0% (28/40) 92.5% 72.5% 0.0%
Two-Axis Average 105 items across both axes 61.16% 96.25% — —

Usage (Transformers >= 5.24.0)

import torch
from transformers import AutoModelForImageTextToText, AutoTokenizer

model_id = "bjo4/Inkling-2-Mini-TW-OpenTWBench"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto")

Related Links