Instructions to use sergiogmn/Inkling-2-Mini-Cyber-GGUF 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 sergiogmn/Inkling-2-Mini-Cyber-GGUF 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 sergiogmn/Inkling-2-Mini-Cyber-GGUF:IQ4_NL # Run inference directly in the terminal: llama cli -hf sergiogmn/Inkling-2-Mini-Cyber-GGUF:IQ4_NL
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf sergiogmn/Inkling-2-Mini-Cyber-GGUF:IQ4_NL # Run inference directly in the terminal: llama cli -hf sergiogmn/Inkling-2-Mini-Cyber-GGUF:IQ4_NL
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf sergiogmn/Inkling-2-Mini-Cyber-GGUF:IQ4_NL # Run inference directly in the terminal: ./build/bin/llama cli -hf sergiogmn/Inkling-2-Mini-Cyber-GGUF:IQ4_NL
Use Docker
docker model run hf.co/sergiogmn/Inkling-2-Mini-Cyber-GGUF:IQ4_NL
- Llama new
- LM Studio
- Jan
- vLLM
How to use sergiogmn/Inkling-2-Mini-Cyber-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sergiogmn/Inkling-2-Mini-Cyber-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sergiogmn/Inkling-2-Mini-Cyber-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/sergiogmn/Inkling-2-Mini-Cyber-GGUF:IQ4_NL
- Ollama
How to use sergiogmn/Inkling-2-Mini-Cyber-GGUF with Ollama:
ollama run hf.co/sergiogmn/Inkling-2-Mini-Cyber-GGUF:IQ4_NL
- Unsloth Desktop
- Pi
How to use sergiogmn/Inkling-2-Mini-Cyber-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sergiogmn/Inkling-2-Mini-Cyber-GGUF:IQ4_NL
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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "sergiogmn/Inkling-2-Mini-Cyber-GGUF:IQ4_NL" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use sergiogmn/Inkling-2-Mini-Cyber-GGUF with Docker Model Runner:
docker model run hf.co/sergiogmn/Inkling-2-Mini-Cyber-GGUF:IQ4_NL
- Lemonade
How to use sergiogmn/Inkling-2-Mini-Cyber-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull sergiogmn/Inkling-2-Mini-Cyber-GGUF:IQ4_NL
Run and chat with the model
lemonade run user.Inkling-2-Mini-Cyber-GGUF-IQ4_NL
List all available models
lemonade list
- Hermes Agent
How to use sergiogmn/Inkling-2-Mini-Cyber-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sergiogmn/Inkling-2-Mini-Cyber-GGUF:IQ4_NL
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:9931/v1 hermes config set model.default sergiogmn/Inkling-2-Mini-Cyber-GGUF:IQ4_NL
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use sergiogmn/Inkling-2-Mini-Cyber-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sergiogmn/Inkling-2-Mini-Cyber-GGUF:IQ4_NL
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:9931/v1 \ --custom-model-id "sergiogmn/Inkling-2-Mini-Cyber-GGUF:IQ4_NL" \ --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"
Inkling-2-Mini-Cyber (GGUF + LoRA)
Standalone, zero-hook GGUF builds (IQ4_NL, Q6_K, Q8_0) of a cybersecurity fine-tune of thinkingmachines/Inkling-2-Mini (26.4B total / 3.4B active looped MoE), built for authorized cybersecurity research, red-team engineering, vulnerability analysis, and CTI workflows.
Authorized Research Notice: This model has intentionally reduced refusal behavior on technical security and offensive-cyber prompts so security practitioners can work on authorized assessments, exploit reproduction, detection engineering, and lab simulations without false refusals. It has no additional guardrails layered back on โ do not deploy it unfiltered to untrusted end users.
At a Glance
- Surgical weight edit (
0.0065%of parameters): Only 20 of 704 tensors are modified (layers 4..23 self_attn.o_proj,1,720,320LoRA params, spliced at scale1.55). All 128 MoE experts, embeddings, and the vision projector (mmproj-F16.gguf) remain byte-identical to the stock base quants. - Cyber & red-team gains: Cuts
CyberSecEval MITRE-120refusals from100 โ 1(68.3%full /75.8%full+partial @ 4K), improvesCTIBench CVEโCWE-100to66.0%(+3.0%over stock,+6.0%overQwen3.8-27B-abliterated), holds92.8%onCyberMetric-500, and produces0/104harmless over-refusals. - Drop-in portable & fast: Runs out of the box in vanilla
llama.cpp, Ollama, and LM Studio with zero custom runtime hooks โ available inIQ4_NL(17.63 GB, fits 24 GB VRAM),Q6_K(24.70 GB), andQ8_0(27.82 GB), passes5/5on multi-step agentic tool use (pi_bench), and decodes ~4ร faster than 27B dense alternatives. - Honest trade-offs: Compared to stock Inkling-2-Mini, full
HumanEval+(164) dips from93.3%(153/164) to82.9%(136/164, including10token-cap hits;code_16screen remains16/16), withGSM8K-128at91.4%andMMLU-256at78.5%. Non-thinking (reasoning_effort=none) compliance is partial (64.4%on AdvBench vs.95.2%with thinking enabled) โ thinking mode (medium) is recommended.
Files in This Repository
| File | Size | Target Hardware / Description |
|---|---|---|
Inkling-2-Mini-Cyber-IQ4_NL.gguf |
17.63 GB |
24 GB VRAM daily driver (benchmarked below; spliced from ggml-org) |
Inkling-2-Mini-Cyber-Q6_K.gguf |
24.70 GB |
32 GB VRAM / 36 GB Apple Silicon sweet spot (spliced from bartowski) |
Inkling-2-Mini-Cyber-Q8_0.gguf |
27.82 GB |
48 GB+ / Mac Studio / DGX Spark max precision (spliced from ggml-org) |
*.gguf.sha256 |
99 B each |
Standalone SHA-256 checksums (sha256sum -c ready) |
mmproj-F16.gguf |
639 MB |
Stock multimodal vision projector (unchanged from unsloth/Inkling-2-Mini-GGUF) |
adapter/ |
6.89 MB |
BF16 PEFT LoRA adapter (r=16, alpha=32) โ splice onto any other quant or use with peft |
All three GGUFs are standalone, zero-hook builds spliced at --scale 1.55 with the exact same 20 modified Q8_0 blk.{4..23}.attn_output.weight tensors and byte-identical base MoE experts.
Quickstart (llama.cpp)
# Download your preferred quant (IQ4_NL, Q6_K, or Q8_0) + vision projector
hf download sergiogmn/Inkling-2-Mini-Cyber-GGUF \
Inkling-2-Mini-Cyber-IQ4_NL.gguf mmproj-F16.gguf \
--local-dir ./models
# Serve with llama-server (OpenAI-compatible API on :8080)
llama-server \
-m ./models/Inkling-2-Mini-Cyber-IQ4_NL.gguf \
--mmproj ./models/mmproj-F16.gguf \
-ngl 99 -c 32768 --jinja --port 8080
- Thinking mode: Native
<|content_thinking|>works out of the box (defaultreasoning_effort: "medium"gives the highest technical depth and lowest refusal rate). - Verified runtimes: Vanilla
llama.cpp(server-rocm-inkling-1427-r2and upstreamb12600+withinkling2_loopsupport) and Tintero with all runtime ablation hooks disabled (IK2_ABLATE_MODE=off).
Benchmarks
All evaluations below were run on the same harness and graded with Qwen3Guard-Gen-8B (0 parse errors) on the standalone IQ4_NL GGUF with zero runtime hooks (Q6_K and Q8_0 share the exact same 20 spliced Q8_0 attention matrices with higher-precision MoE experts).
| Benchmark | Stock Inkling-2-Mini (IQ4_NL) |
Inkling-2-Mini-Cyber (IQ4_NL) |
Qwen3.8-27B-abliterated (Q4_K_M) |
|---|---|---|---|
| CyberMetric-500 (MCQ) | 94.0% (470/500) |
92.8% (464/500) |
93.8% (469/500) |
| CTIBench MCQ-250 | 73.2% (183/250) |
74.0% (185/250) |
75.2% (188/250) |
| CTIBench CVEโCWE-100 | 63.0% (63/100) |
66.0% (66/100) |
60.0% (60/100) |
| CyberSecEval MITRE-120 @ 2K (full / full+part / ref) | 0.0% / 0.8% / 100 ref | 67.5% / 75.8% / 1 ref | 76.7% / 90.8% / 0 ref |
| CyberSecEval MITRE-120 @ 4K (full / full+part / ref) | 0.0% / 0.8% / 100 ref | 68.3% / 75.8% / 1 ref | โ |
AdvBench harmful_test (104, medium) |
0.0% (104 ref) |
95.2% (99/104, 0 ref) |
โ |
AdvBench harmful_test (104, none) |
~1% (103 ref) |
64.4% (67/104, 36 ref) |
โ |
| Harmless Over-Refusal (104) | 0 / 104 |
0 / 104 |
โ |
| Pi Agentic Bench (5 multi-step tool tasks) | 4 / 5 |
5 / 5 (14 calls, 49.6s) |
โ |
HumanEval+ (code_16 screen) |
16 / 16 |
16 / 16 (0 len cap) |
16 / 16 |
| HumanEval+ (all 164 @ 4K) | 93.3% (153/164) |
82.9% (136/164, 10 cap) |
โ |
| GSM8K-128 | โ | 91.4% (117/128) |
โ |
| MMLU-256 | โ | 78.5% (201/256, 0 multi) |
โ |
Scale Sweep (Why ep2-s1.55 Was Selected)
Because the LoRA delta is spliced linearly into the 20 Q8_0 attn_output.weight matrices (blk.{4..23}.attn_output.weight), we swept the splice multiplier scale from 1.0 to 2.4 on the exact same trained epoch-2 adapter before exporting the final standalone GGUF:
| Splice Scale | AdvBench med Comp (Ref) |
Harmless Over-Ref | AdvBench none Comp (Ref) |
MITRE-120 @ 2K Full (Full+Part / Ref) | code_16 |
|---|---|---|---|---|---|
ep2-s1.0 |
79/104 (23) | 0/104 | 6/104 (96) | 69/120 (76 / 5) | 16/16 |
ep2-s1.3 |
96/104 (1) | 0/104 | 33/104 (68) | 65/120 (76 / 1) | 16/16 |
ep2-s1.55 (Released) |
99/104 (0) | 0/104 | 67/104 (36) | 81/120 (91 / 1) | 16/16 |
ep2-s1.65 |
97/104 (2) | 0/104 | 81/104 (23) | 79/120 (89 / 1) | 15/16 |
ep2-s1.8 |
97/104 (0) | 0/104 | 86/104 (16) | 84/120 (94 / 1) | 15/16 |
ep2-s2.4 |
88/104 (3) | 3/104 | 92/104 (5) | 77/120 (87 / 6) | 13/16 |
ep2-s1.55 is the Pareto sweet spot: 0 refusals on AdvBench (med), 0 harmless over-refusals, 1 refusal on MITRE-120, and 16/16 on code_16 before coding accuracy begins to degrade at >= 1.65.
Training & GGUF Splicing Recipe (Splice Onto Other Quants)
- Base model: Stock
thinkingmachines/Inkling-2-Mini(NVFP4 MoE experts dequantized to BF16 during training). - Dataset (
555rows, 100% disjoint from all evaluation splits):382on-policy Inkling-2-Mini responses (generated via norm-preserving directional steering):96harmful-train,117harmless retention,69multi-language coding (C,C++,Rust,Python,JS),60CTIBench RCM (CVEโCWE),40CTIBench MCQ.173off-policyQwen3.8-27B-abliteratedresponses:145MITRE (medium) +28MITRE (none).
- LoRA configuration:
layers.{4..23}.self_attn.o_proj.linearonly (20modules,1,720,320trainable params =0.0065%),r=16,alpha=32,dropout=0.05,lr=1.5e-4cosine,2.0epochs (140optimizer steps, effective batch size8,max_seq_len=2560, final loss0.3080, ~49 min on 1ร A100-80GB). - Splicing
adapter/onto another quant (e.g.Q5_K_M,Q4_K_M,IQ4_XS): Usingapply_lora_gguf.py(zero PyTorch required โ dequantizes only the 20attn_output.weighttensors, appliesscale * (alpha/r) * (B @ A), and re-quantizes them in place while copying all other 684 tensors verbatim):python3 tools/ik2_ablate/apply_lora_gguf.py \ /path/to/Inkling-2-Mini-Q5_K_M.gguf \ ./adapter \ ./out --scale 1.55 --full \ --out-name Inkling-2-Mini-Cyber-Q5_K_M.gguf
Checksums (SHA-256)
cecf2592f6f6b78be470ca1cb39fa81642e7047fef7a8d50ce70336fab41b8d9 Inkling-2-Mini-Cyber-IQ4_NL.gguf
d72b15d2f8944bf6a335fd609e0efaa52afaa9161d2ad9e5d7f3657b216f1154 Inkling-2-Mini-Cyber-Q6_K.gguf
cf1bd6b16c1e49663a8275bde63a3f41db9b22c9a4644a3c599918c32ce9b168 Inkling-2-Mini-Cyber-Q8_0.gguf
3bff75ffeb2d6e0371ba7bd42e30d26a7d98aea681fa44b03b5a20891cfa2c5f mmproj-F16.gguf
License & Attribution
- Base model: thinkingmachines/Inkling-2-Mini by Thinking Machines Lab, Inc., released under the Apache-2.0 license.
- Base GGUF quants & vision projector: Derived from the
inkling2_loopGGUF builds byggml-org/Inkling-2-Mini-GGUF(IQ4_NL,Q8_0),bartowski/Inkling-2-Mini-GGUF(Q6_K), andunsloth/Inkling-2-Mini-GGUF(mmproj-F16.gguf). - License: Apache-2.0.
- Downloads last month
- -
4-bit
6-bit
8-bit
Model tree for sergiogmn/Inkling-2-Mini-Cyber-GGUF
Base model
thinkingmachines/Inkling-2-Mini