SC117's picture
Restyle bilingual READMEs to match SC117 HTML card layout
ae324ac verified
|
Raw History Blame Contribute Delete
32.1 kB
metadata
base_model: thinkingmachines/Inkling-2-Mini
base_model_relation: quantized
license: apache-2.0
license_link: https://www.apache.org/licenses/LICENSE-2.0
pipeline_tag: image-text-to-text
language:
  - en
  - zh
  - multilingual
tags:
  - strata
  - strata-v1.1
  - inkling-2-mini
  - inkling2_loop
  - moe
  - mixture-of-experts
  - looped-transformer
  - dspark
  - quantization
  - abliterated
  - uncensored
  - multimodal
  - vision
  - reasoning
  - long-context
  - agent
STRATA v1.1SELFCHECK & HASH VERIFIEDSQ-20 · SQ-15 · SQ-10ABLITERATED (ATTN-ONLY)DSPARK SPECULATIVEVISION SHARD + CONFIGSAPACHE-2.0

Inkling-2-Mini-abliterated · Strata v1.1

Native .strata v1.1 builds (SQ-20, SQ-15, SQ-10 + lossless BF16 Vision shard + embedded DSpark speculative drafter) of abliterated Inkling-2-Mini (26.4B total / 3.4B base / 5.4B effective active params across 3 looped passes, 128-expert MoE) — byte-exact 20-layer attention ablation transplant on top of official strata-engine/Inkling-2-Mini-Strata.

9.75 GiB · SQ-1013.36 GiB · SQ-1518.02 GiB · SQ-20 (lossless)

English · 简体中文 📖 · FIT-GGUF (llama.cpp)

🧭 About this Strata v1.1 release — byte-exact ablation transplant

Every pack here was constructed directly from the official strata-engine/Inkling-2-Mini-Strata checkpoints by transplanting only the 20 abliterated attention-output tensors (model.llm.layers.4..23.attn.wo_ud.weight) inside Section 1 and recomputing the Section 1 SHA-256 header digest.

Zero expert re-quantization: all 3,072 MoE expert weights (Section 4), the embedded DSpark speculative drafter, the lossless BF16 Vision shard, routers, short-conv filters and loop controllers remain byte-for-byte identical to official Strata packs.

Base tensor layout & encoder verification✅ 24/24 byte-exact on SQ-20 (BF16), SQ-15 (4 BF16 + 20 Q8_ROW) & SQ-10 (24 Q8_ROW)
Strata engine integrity & CUDA check✅ PASS on all 3 packs (strata-inkling --selfcheck --verify-hash, Sections 0–5)
Companion llama.cpp GGUF releaseSC117/Inkling-2-Mini-abliterated-FIT-GGUF (FIT tiers + Q6_K + BF16 + mmproj)
⚠️ Safety notice

The weights in this repository have undergone refusal-direction abliteration and do not provide reliable built-in safety guardrails. The model may comply with harmful, illegal or unsafe prompts. Deploy only in controlled environments with external moderation, access control and legal review appropriate to your use case.

🧬 Abliteration — attention-only, byte-verified

Refusal suppression was baked from thinkingmachines/Inkling-2-Mini using rank-1 orthogonal subspace projection (late_24_47_orth, k=1) applied exclusively to layers.4..23.attn.wo_ud.weight (s_nonloop=4.0, s_loop=2.5). Exactly 20 of 1,244 model tensors were modified; all remaining tensors — including all 128 routed experts, DSpark drafter and vision encoder — remain untouched.

Verification MetricBaseAbliterated
Stage-1 Five-domain Macro KLD / Same-top / ΔPPL (Q8_0 vs Q8_0)Reference0.013623 / 95.63% / +0.70% (max +0.99%)
Stage-1 EN held-out semantic refusal (100 prompts, high / none)98/100 [93.0%, 99.4%]9/100 [4.8%, 16.2%] / 13/100 [7.8%, 21.0%]
Stage-1 ZH held-out semantic refusal (50 prompts, none, 4096 tok)50/50 [92.9%, 100%]4/50 [3.2%, 18.8%] (0 degraded / 88% complete usable)
Strata SQ-20 live 10-prompt refusal probe + Vision smoke—9/10 C+H (C=3, H=6, R=0, D=0, E=1 @ 1024 cap) · Vision PASS
📦 Everything in this repository

All three official Strata v1.1 packs with abliterated attn.wo_ud.weight, plus the unmodified BF16 Vision shard, pre-converted strata-tokenizer/, and ready-to-edit run configs under configs/.

PackFileGiBwo_ud Format--bench (512→64, fp8)Target Hardware & Verification
SQ-20Inkling-2-Mini-SQ-20-abliterated.strata18.0224× BF162270.2 / 76.8Lossless native SF4+MX8 · ≥24 GiB GPU / ≥32 GiB UMA · Selfcheck PASS
SQ-15Inkling-2-Mini-SQ-15-abliterated.strata13.364 BF16 + 20 Q8_ROW2217.3 / 87.816 GiB GPU / 24 GiB UMA / 12 GiB hybrid · Selfcheck PASS
SQ-10Inkling-2-Mini-SQ-10-abliterated.strata9.7524× Q8_ROW3180.7 / 107.78–12 GiB GPU / 16 GiB UMA / RDNA3 iGPU · Selfcheck PASS
VisionInkling-2-Mini-Vision.strata0.59BF16 ViT—Unmodified official vision shard (shared by all 3 packs)
Tokenizerstrata-tokenizer/ + tokenizer.json0.03o200k BPE—Pre-converted 5-file Strata serve tokenizer + root HF files
Configsconfigs/strata-inkling-2-mini-*.json<0.01JSON—Ready-to-edit Strata run configs for SQ-20, SQ-15, SQ-10 + sampling template

Bench numbers above are bare single-GPU (no DSpark). On RTX 4080 SUPER 32 GiB (sm_89, 736 GB/s, sm120_tc=0), enabling --draft dspark in live HTTP serving accelerates SQ-20 to 75.1 tok/s (prose) and 94.9–105 tok/s (code), matching unpatched official SQ-20 within 0.5%.

⚡ Measured live throughput (SQ-20, RTX 4080 SUPER 32 GiB)

Measured via serve/server.py (/v1/chat/completions, strata-inkling 0.1.65, single GPU, --kv fp8 --draft dspark):

WorkloadMeasured ThroughputNotes
448-token prose decode (5 runs, temp=0)75.1 tok/s (peak 75.5)1.2% spread; paired 256-tok base vs abliterated: 80.5 → 80.1 tok/s (-0.5%)
448-token Python code decode (3 runs, temp=0)94.9 tok/s (peak 95.4)Short code / QA bursts peak at 101–105 tok/s with DSpark
13.8K real document prefill (13,827 tok)1,874.0 tok/s (7.55 s)Immediate post-prefill 448-tok decode: 74.4 tok/s (no degradation)
41K real document prefill (40,987 tok)1,411.2 tok/s (29.33 s)Immediate post-prefill 448-tok decode: 71.7 tok/s (--kv fp8 beats fp16 by +13.4%)
Continuous batching aggregate (--parallel 16)392.5 tok/s (24.5 / slot)5.1× aggregate scaling over c=1 on a single 32 GiB card
🚀 Quick start & Strata configuration

Prerequisites: Install Strata ≥ 0.2.19 (build 0.1.65+) together with the strata-inkling shape engine component (component:strata-inkling).

1. Download your pack + companion files (SQ-20 example; swap to SQ-15 or SQ-10 as needed)

huggingface-cli download SC117/Inkling-2-Mini-abliterated-Strata \ Inkling-2-Mini-SQ-20-abliterated.strata \ Inkling-2-Mini-Vision.strata \ config.json tokenizer.json tokenizer_config.json special_tokens_map.json chat_template.jinja \ --include "strata-tokenizer/*" "configs/*" \ --local-dir ./Inkling-2-Mini-abliterated-Strata

2. Copy and edit a config template from configs/

Copy configs/strata-inkling-2-mini-sq-20-abliterated.json (and optionally configs/shared-settings.example.json as strata-inkling-2-mini-sq-20-abliterated.shared-settings.json) into your Strata directory, then replace <MODEL_DIR> and <STRATA_DIR> with your local absolute paths. On Windows with CUDA 13.x, set "lib_dirs" to your CUDA bin/x64 path if not on system PATH.

3. Launch the Strata server (OpenAI /v1/chat/completions + Anthropic /v1/messages)

<STRATA_DIR>/python/python -m serve.server \ --engine strata \ --config <STRATA_DIR>/strata-inkling-2-mini-sq-20-abliterated.json \ --host 127.0.0.1 --port 8102

Important strata-inkling 0.1.65 notes: (1) Keep --kv fp8 (default in our configs) — halves KV VRAM, speeds up 41K prefill by +13.4%, and prevents WDDM shared-RAM spill on 32 GiB cards; avoid --kv k8v8 / k8v4 on 0.1.65 (crashes with 0xC0000005). (2) On Windows WDDM without native P2P, --gpus 2 hits ep_dual_gpu.cu:1744 CUDA error 1, so configs default to single-GPU "gpu": [0]. (3) Set client max_tokens ≥ 4096 (or "answer_room": false) so soft internal thinking blocks never truncate the final answer. (4) Drop --vision from args for text-only serving (~0.6 GiB extra VRAM).

🧩 Included — and why strata-tokenizer/ is bundled

✅ All 3 abliterated .strata v1.1 packs (SQ-20, SQ-15, SQ-10, each with embedded DSpark) · ✅ Unmodified BF16 Inkling-2-Mini-Vision.strata · ✅ Pre-converted 5-file strata-tokenizer/ (9.8 MB — plug-and-play without running tools/inkling_tokenizer.py) · ✅ Root HF tokenizer & config files · ✅ Portable configs/ templates · ✅ SHA256SUMS.txt & results/verification.json

❌ No llama.cpp GGUFs in this repo (available separately at SC117/Inkling-2-Mini-abliterated-FIT-GGUF; note that strata-inkling 0.1.65 currently requires native .strata v1.1 for --serve)

🔍 Verify & checksums (SHA256SUMS.txt)

sha256sum -c SHA256SUMS.txt

FileSHA-256
Inkling-2-Mini-SQ-20-abliterated.strata4633e0420168ebf0913b6d834397c297e330885bcd45f1501462ed350c50a0a2
Inkling-2-Mini-SQ-15-abliterated.stratab52a4827f9fef6a1bb2fc58bf55a2eff376646a6382447020ed54bf0d047925d
Inkling-2-Mini-SQ-10-abliterated.strata876a4586eeff14a6d0bfbb567109a02abe2207c6e9659ff2592073bfe6790fac
Inkling-2-Mini-Vision.strata6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677

Full machine-readable verification records are stored in results/verification.json.

📄 License & credits

Apache-2.0, inherited from thinkingmachines/Inkling-2-Mini and strata-engine/Inkling-2-Mini-Strata — please follow upstream license and acceptable use requirements.

Thinking Machines Lab — Inkling 2 Mini · Strata — native .strata v1.1 format, strata-inkling engine and DSpark speculative decoding · SC117 FIT-GGUF — companion llama.cpp GGUF release.