# Reproducible recipe of Inkling-2-Mini-SM86-Fast. Scripts are in reproduce/; # run them from one work directory W (they default to # ~/models-fast/experiments/inkling2-sm86-fast) with the vllm-inkling2 runtime. source: repo: thinkingmachines/Inkling-2-Mini revision: 7a67ae2314b44ef05c87fd1d4d311c58aaeb18f6 license: apache-2.0 runtime: repo: https://github.com/quantforge-br/vllm-inkling2 branch: inkling2-sm86 hardware: 2x RTX 3090 (SM86), tensor parallel 2, PCIe P2P self_distillation: # report A1 + B1 calibration source prompts: reproduce/prep_prompts.py # 8469 prompts, seed 20261124, val = every 10th per source buckets: {code: 2700, code_edit: 700, tool: 1569, reasoning: 1000, prose_en: 1100, prose_ptbr: 1400} datasets: - ise-uiuc/Magicoder-OSS-Instruct-75K - bigcode/self-oss-instruct-sc2-exec-filter-50k - m-a-p/CodeFeedback-Filtered-Instruction - nuprl/EditPackFT - glaiveai/glaive-function-calling-v2 - NousResearch/hermes-function-calling-v1 (func_calling_singleturn) - Team-ACE/ToolACE - openai/gsm8k (main) - AI-MO/NuminaMath-CoT - HuggingFaceH4/ultrachat_200k (train_sft) - Open-Orca/SlimOrca - FreedomIntelligence/alpaca-gpt4-portuguese - cnmoro/GPT4-500k-Augmented-PTBR-Clean reasoning_effort_mix: {none: 15, low: 10, medium: 30, high: 35, xhigh: 10} generation: reproduce/gen.py # official checkpoint, temperature 1.0, token ids kept generated_tokens: 5.68M draft_vocabulary: # report A1 tool: reproduce/build_vocab.py size: 40960 # 20480 ids per tensor-parallel shard of the target head train_tokens: 5118629 # completion tokens of the train split val_coverage: {general: 0.9903, code: 0.9946, tool: 0.9945, prose_en: 0.9730, prose_ptbr: 0.9844} files: [draft_vocab_ids.pt, draft_vocab_ids.json] config_key: mtp_config.pruned_vocab_size calibration: # report B1 corpus: reproduce/build_calib.py # 321 rows, 442712 tokens, seed 20261124 mix: {code: 0.17, code_edit: 0.08, raw_code: 0.20, tool: 0.13, reasoning: 0.12, prose_en: 0.14, prose_ptbr: 0.16} ppl_corpus_disjoint: true # the PPL gate reads model-loader internal/**/*.go, never calibrated on hessians: reproduce/collect_all.sh # serving engine on the official checkpoint, TP2, # inputs accumulated over the 3 passes of the loop quantization: # report B1 + B2 tool: reproduce/quantize_all.sh -> reproduce/quantize_fast.py format: compressed-tensors pack-quantized scheme: {num_bits: 4, type: int, symmetric: true, strategy: group, group_size: 128} # uint4b8 solver: {method: gptq, damp: 0.01, expert_row_prior: 64} targets: - "model.llm.layers.*.mlp.experts.*.{gate,up,down}_proj" # routed experts - "model.llm.layers.*.attn.{wq_du,wr_du,gate_attn,attn_sink_proj,wk_dv,wv_dv,wo_ud}" # attention, TP-agnostic kept_bf16: [embed_tokens, lm_head, router gate, controllers, short convs, rel_logits_proj, attn_res, norms] removed: ["model.visual.*"] # text only scales: strictly positive (checked: 9384 scale tensors, min 1.04e-03) draft: official bf16 mtp.safetensors (A2 int4 draft rejected) assembly: reproduce/assemble.sh ckpt/sm86-fast-v1 data/vocab-40960 serve_env: # runtime transforms, all exact or gated VLLM_INKLING2_INT8_DENSE: "1" VLLM_INKLING2_DENSE_BITS: "4" # attention projections stay Marlin W4A16 VLLM_INKLING2_EMBED_INT8: "1" # A4: embed_tokens INT8 at load VLLM_INKLING2_PREFILL_ATTN_INT8: "1" # C2: INT8 QK^T prefill VLLM_INKLING2_PREFILL_ATTN_PV_F16ACC: "1" VLLM_INKLING2_PREFILL_ATTN_SPLITS: "1" VLLM_INKLING2_DSPARK_MIN_CONFIDENCE: "0.5" VLLM_INKLING2_P2P_AR_CONV: "1" VLLM_ALLREDUCE_USE_FLASHINFER_PCIE_IPC: "1" PYTORCH_CUDA_ALLOC_CONF: expandable_segments:False