Instructions to use ssuasd/Caphlon-2 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 ssuasd/Caphlon-2 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 ssuasd/Caphlon-2 # Run inference directly in the terminal: llama cli -hf ssuasd/Caphlon-2
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ssuasd/Caphlon-2 # Run inference directly in the terminal: llama cli -hf ssuasd/Caphlon-2
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 ssuasd/Caphlon-2 # Run inference directly in the terminal: ./build/bin/llama cli -hf ssuasd/Caphlon-2
Use Docker
docker model run hf.co/ssuasd/Caphlon-2
- Llama new
- LM Studio
- Jan
- vLLM
How to use ssuasd/Caphlon-2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ssuasd/Caphlon-2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ssuasd/Caphlon-2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ssuasd/Caphlon-2
- Ollama
How to use ssuasd/Caphlon-2 with Ollama:
ollama run hf.co/ssuasd/Caphlon-2
- Unsloth Desktop
- Pi
How to use ssuasd/Caphlon-2 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ssuasd/Caphlon-2
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": "ssuasd/Caphlon-2" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use ssuasd/Caphlon-2 with Docker Model Runner:
docker model run hf.co/ssuasd/Caphlon-2
- Lemonade
How to use ssuasd/Caphlon-2 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ssuasd/Caphlon-2
Run and chat with the model
lemonade run user.Caphlon-2-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use ssuasd/Caphlon-2 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ssuasd/Caphlon-2
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 ssuasd/Caphlon-2
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use ssuasd/Caphlon-2 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ssuasd/Caphlon-2
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 "ssuasd/Caphlon-2" \ --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"
- Caphlon-Model
- Overview โ The Caphlon 27B Family
- How Caphlon-2 Reaches
4.52 GiB(1.65 bpw) Without Losing the 64-Layer Topology - Model Specifications
- Audited Benchmarks
- Included Kernel Patch & Calibration Kit
- Quickstart
- Hardware Requirements
- FAQ & Search Index (English / Tรผrkรงe)
- Citation
- License, Attribution & Badges
- Overview โ The Caphlon 27B Family
Caphlon-Model
The lightest Qwen 3.8 27B GGUF model family โ Caphlon-2 (4.52 GiB PTQ1_SB, all 64 layers via Ternary-Bonsai-2) & Caphlon-1 (6.87 GiB IQ2_S, stock llama.cpp).
4.52 GiB ยท Qwen 3.8 27B + Ternary-Bonsai-2 ยท runs on 6 GB VRAM / 8 GB RAM โ interactive showcase: https://caphlon.dev
Overview โ The Caphlon 27B Family
Caphlon is an open-weight model family engineered to produce the lightest runnable builds of Qwen 3.8 27B (en hafif Qwen 3.8 27B modeli) without distilling a smaller student network. Both builds keep the 27B hybrid Gated-Delta-Net + Full-Attention architecture intact so they can run locally on a standard 6 GB VRAM GPU or 8 GB RAM laptop (Apple Silicon M1/M2/M3/M4, Linux CUDA, Windows/Linux AVX2):
- Caphlon-2 (
4.52 GiB,PTQ1_SB1.65 bpwโ Flagship Reasoning & Low-Hallucination Build): Derived from Qwen 3.8 27B and PrismML / UkisAI Ternary-Bonsai-2-27B (PTQ1_0,5.54 GiB). Preserves all 64 hybrid layers (23.30Bactive parameters) while shrinking the file byโ1.02 GiBvs Ternary-Bonsai-2,โ34.2%vs Caphlon-1 (6.87 GiB), andโ70.5%vsQ4_K_M(15.33 GiB). Achieves80.0%(48/60,89.7%BF16 retention) on GPQA-Diamond and87.41%(236/270,100%unanswerable abstain recall) on Halu-270. - Caphlon-1 (
6.87 GiB,IQ2_Sโ Legacy Stockllama.cppBuild): Derived from Qwen 3.8 27B (Unsloth Dynamic IQ2_S) via100kvocabulary reduction and 4-layer hybrid interval pruning (60layers). Runs on unmodified stockllama.cppwith96.7%(29/30) HumanEval pass@1 and92.9%MMLU retention.
How Caphlon-2 Reaches 4.52 GiB (1.65 bpw) Without Losing the 64-Layer Topology
- BPE Vocabulary Surgery (
V83K): Closure-preserving merge-table pruning from111,104 โ 84,352tokens (83,982merges), remapping all control/thinking tokens (<think>=84267,</think>=84268) and shipping a 24-token anti-hesitation logit-bias profile (metadata/Caphlon-2-27B-PTQ1_SB.meta.json). - Layer-Adaptive FFN Width Pruning (
LayerTrim): Block-influence ridge-regression calibrated intermediate MLP dimension reduction (17,408 โ 15,456aligned to256-element super-block boundaries), retaining23,298,072,064(23.30B) active parameters across all 64 layers. PTQ1_SB(GGML_TYPE_PTQ1_SB = 144,1.648 bpw) Super-Block Ternary Format: Replaces per-128 FP16 scales with a 1,024-element Sylvester-Hadamard $H_{1024}$ super-block (205 Bbase-3 packed trits +2 BFP16 super-scale +4 Bpacked8ร1284-bit sub-scale nibbles =211 Bper 1,024 weights).- Inference-Time Intervention (
ITI) Calibration Vector: Ships withmetadata/iti_mean.gguf(1.2 MiB), lifting 270-question Hallucination benchmark accuracy from85.93%(232/270) to87.41%(236/270) with100.0%unanswerable abstain recall.
Model Specifications
| Field | Caphlon-2 (4.52 GiB Flagship) |
Caphlon-1 (6.87 GiB Legacy) |
|---|---|---|
| Base architecture | Qwen 3.8 27B (64-layer hybrid GDN + Full-Attention) | Qwen 3.8 27B (60-layer pruned hybrid) |
| Upstream intermediate | PrismML Ternary-Bonsai-2-27B (PTQ1_0) / UkisAI Swift-Bonsai-2 (5.54 GiB) |
Unsloth Dynamic IQ2_S (7.80 GiB) |
| Quantization & format | PTQ1_SB (GGML type 144, 1.65 bpw super-block ternary, 851 tensors) |
IQ2_S (2.31 bpw stock GGUF) |
| Active parameters | 23,298,072,064 (23.30B, 64/64 layers, n_ff = 15456, n_vocab = 84352) |
~24.8B (60/64 layers, n_vocab = 100000) |
| File size | 4.5227 GiB (4,856,213,824 bytes) |
6.8686 GiB (7,375,122,272 bytes) |
| Filename | Caphlon-2-27B-PTQ1_SB.gguf |
Caphlon-Model-IQ2_S.gguf |
| SHA-256 | ac41fcddf5da28d71198f60202c10ea37cc64d791e5f6f118f849a02579c20db |
8487b4e443834659b230e0bd529674ad65e068fc00380b996aaf11c873d63bc0 |
| Runtime | patches/prismll_ptq1_sb_cuda_metal.patch on PrismML-Eng/llama.cpp (6447906) |
Stock llama.cpp |
Audited Benchmarks
All benchmarks below were measured on real hardware (NVIDIA A100-SXM4-80GB, dual NVIDIA Tesla T4 16GB, and Apple M2 Metal) and verified through a two-layer deterministic + blind forensic audit gate (0 unverified claims).
1. Reasoning, Hallucination & Perplexity Across the Lineage
| Model / Build | Format | Size | GPQA-Diamond (60 RID, xhigh) |
Mini-40 Truth & Abstain | Halu-270 (270 Q, 4 Suites) | Held-out PPL (4ร512 EN / TR) |
|---|---|---|---|---|---|---|
Caphlon-2 (Cand_pure) |
PTQ1_SB (1.65 bpw) |
4.52 GiB |
48/60 (80.0%)(89.7% retention vs BF16 89.2%; 47/59 excl. 1 cap) |
32/40 (80.0%)Abstain 100% ยท False Refusal 2.86% |
232/270 (85.93%)Halu 11.85% ยท False Refusal 2.48% ยท Brier 0.1147 |
7.8551 / 6.8792 |
Caphlon-2 + ITI (+metadata/iti_mean.gguf) |
PTQ1_SB (1.65 bpw) |
4.52 GiB |
48/60 (80.0%)(89.7% retention vs BF16 89.2%) |
34/40 (85.0%)Abstain 100% ยท False Refusal 2.86% |
236/270 (87.41%)Halu 10.37% ยท Abstain 100% ยท Brier 0.1014 ยท ECE 0.0767 |
7.8551 / 6.8792 |
| Ternary-Bonsai-2-27B (Upstream base) | PTQ1_0 (1.75 bpw) |
5.54 GiB |
51/60 (85.0%) @65K/98K(95.3% retention; 46/60 = 76.7% @49K) |
32/40 (80.0%)Brier 0.1573 |
237/270 (87.78%)Halu 9.26% ยท Abstain 100% ยท Brier 0.0996 |
7.3961 / 6.1799 |
Caphlon-1 (Stock llama.cpp legacy) |
IQ2_S (voc100k+L56) |
6.87 GiB |
โ (thinking disabled) | HumanEval 29/30 (96.7%) |
MMLU 344/502 (92.9% retention) |
6.6088 (EN40) |
Key takeaway: At
4.52 GiB(1.02 GiBsmaller than upstream5.54 GiBTernary-Bonsai-2-27B), Caphlon-2 beats upstream's default@49KGPQA-Diamond score (48/60 = 80.0%vs46/60 = 76.7%), retains89.69%of full BF16 (89.2%), and withiti_mean.ggufmatches upstream on the 270-question Hallucination suite within a single question (236/270 = 87.41%vs237/270 = 87.78%) while cutting average reasoning length nearly in half (1,282vs2,355tokens/question).
2. CUDA, AVX2 & Apple Metal Speed and Numerical Parity (4.52 GiB PTQ1_SB)
| Backend / Configuration | Prefill pp64 |
Prefill pp512 |
Decode tg32 / tg64 |
Numerical Parity / Cache Audit |
|---|---|---|---|---|
NVIDIA Tesla T4 (sm_75, f16 KV, FA) |
87.29 tok/s |
โ | 16.33 tok/s (tg32) |
Patch v3 Tensor Core MMQ + 2row Q8_1_SB |
NVIDIA Tesla T4 (sm_75, q8_0 KV, FA) |
86.68 tok/s |
277.95 tok/s |
16.14 tok/s (tg32) / 15.71 tok/s (tg64) |
4.43ร pp512 speedup vs v2 (62.70 tok/s) |
Apple M2 Metal (-ngl 99, q8_0 KV) |
โ | โ | 3.64 tok/s (full CoT) |
Standalone smoke verified (chem_ph & Xylon-Theta-99 abstain) |
x86 AVX2 & ARM64 NEON (ptq1_sb_dot32) |
27.30 tok/s |
โ | 0.35 tok/s (1-thread CPU check) |
max_rel_err = 0 (bit-exact vs FP32 reference) |
0-Miss Context OS (--ctx-checkpoints 32 -cms 128) |
โ | โ | โ | toplam_cache_miss = 0, unplanned_reprefill = 0, ckpt_erased = 0 |
Included Kernel Patch & Calibration Kit
To make Caphlon-2 immediately useful for local inference, benchmarking, and further ternary research, we include the full kernel and calibration kit alongside the weights:
patches/prismll_ptq1_sb_cuda_metal.patch(137.8 KB):- CUDA (
sm_75+): Turing/Ampere INT8 Tensor Core MMQ prefill (pp512 = 277.95 tok/son T4),GGML_CUDA_Q8_1_SB(1152 Bper 1,024 elements),0-SMEM warp-register unpack (ptq1_sb_warp_unpack_regs), 2-row register-sharedmul_mat_vec_ptq1_sb_fast_2row(ncols_dst = 1..16), multi-columnffn_up + ffn_gate + swiglufusion (ptq1_sb_mc), and pool-backed fusedRMSNorm + FWHT -> Q8_1_SB. - Apple Metal: Native
kernel_mul_mv_ptq1_sb_f32&q8_0KV Flash-Attention support for Apple Silicon unified memory. - ARM64 NEON & x86 AVX2: Vectorized
ptq1_sb_dot32_avx2and NEONdotprod/no-dotprodkernels verified atmax_rel_err = 0against reference FP32.
- CUDA (
metadata/Caphlon-2-27B-PTQ1_SB.meta.json: Remapped special token IDs (<think>=84267,</think>=84268,<|im_start|>=84244,<|im_end|>=84245) and the 24-token anti-hesitation--logit-biastable (Wait,Hmm,Alternatively,Actually, etc.).metadata/iti_mean.gguf(1.2 MiB): Optional Inference-Time Intervention (ITI) mean activation vector (236/270 = 87.41%on Halu-270 with100.0%abstain recall).scripts/build-prism-llamacpp.sh&scripts/run.sh: One-command builder and zero-missq8_0KV launcher.
Quickstart
0. Quickest: Run on Ollama (One Command)
ollama run univerisr/caphlon
Or build and run Caphlon-2 with hardware-accelerated Sylvester-Hadamard ternary kernels:
1. Build the patched PrismML llama.cpp runtime (CUDA / Metal / AVX2 / NEON)
git clone https://github.com/demiralpdev/Caphlon-Model.git
cd Caphlon-Model
bash scripts/build-prism-llamacpp.sh
2. Download Weights from Hugging Face
- Caphlon-2 (
4.52 GiBPTQ1_SB): huggingface.co/ssuasd/Caphlon-Model & huggingface.co/ssuasd/Caphlon-2
curl -L -C - -o Caphlon-2-27B-PTQ1_SB.gguf \
https://huggingface.co/ssuasd/Caphlon-Model/resolve/main/Caphlon-2-27B-PTQ1_SB.gguf
shasum -a 256 Caphlon-2-27B-PTQ1_SB.gguf
# expected: ac41fcddf5da28d71198f60202c10ea37cc64d791e5f6f118f849a02579c20db
# size: 4856213824 bytes (4.5227 GiB)
- Caphlon-1 (
6.87 GiBIQ2_S, stockllama.cpp):
curl -L -C - -o Caphlon-Model-IQ2_S.gguf \
https://huggingface.co/ssuasd/Caphlon-Model/resolve/main/Caphlon-Model-IQ2_S.gguf
3. Run the Server
bash scripts/run.sh Caphlon-2-27B-PTQ1_SB.gguf 32768 1
Hardware Requirements
| Setup | Minimum (8Kโ16K ctx) |
Comfortable (32Kโ65K ctx) |
|---|---|---|
GPU, full offload (-ctk q8_0 -ctv q8_0) |
6 GB VRAM (Caphlon-2) / 8 GB VRAM (Caphlon-1) |
8โ12 GB VRAM |
| Apple Silicon (Metal, M1/M2/M3/M4) | 8 GB Unified Memory | 16 GB Unified Memory |
CPU only (mmap, AVX2 / NEON) |
6 GB RAM | 8โ16 GB RAM |
| Disk | 4.6 GB (Caphlon-2) / 7.0 GB (Caphlon-1) |
โ |
FAQ & Search Index (English / Tรผrkรงe)
- What is the lightest Qwen 3.8 27B model? / En hafif Qwen 3.8 27B modeli hangisidir?
Caphlon-2 (
4.52 GiB/4,856,213,824bytes,1.65 bpwPTQ1_SB) is the lightest full 64-layer build of Qwen 3.8 27B (derived via Ternary-Bonsai-2-27B). It runs locally on 6 GB VRAM graphics cards or 8 GB RAM laptops (including base 8 GB Apple Silicon MacBooks) while retaining80.0%(48/60) GPQA-Diamond accuracy (89.7%of full BF16) and87.41%(236/270) Halu-270 truthfulness. - 8 GB RAM veya 6 GB VRAM ile รงalฤฑลan en iyi 27B yapay zeka modeli nasฤฑl indirilir?
Caphlon-2-27B-PTQ1_SB.gguf(4.52 GiB, Tรผrkรงe6.88ve ฤฐngilizce7.86PPL) veya stokllama.cppuyumluCaphlon-Model-IQ2_S.gguf(6.87 GiB) dosyalarฤฑnฤฑ doฤrudan huggingface.co/ssuasd/Caphlon-Model ve caphlon.dev รผzerinden indirebilirsiniz.
Citation
@misc{caphlon2_2026,
title = {Caphlon-2: A 4.52 GiB PTQ1_SB Super-Block Ternary Build of Qwen 3.8 27B via Ternary-Bonsai-2},
author = {Gรผndoฤmuล, Demir Alp},
year = {2026},
month = {11},
note = {GGUF PTQ1\_SB (1.65 bpw), V83K vocabulary pruning, LayerTrim FFN pruning, 80.0\% GPQA-Diamond, 87.4\% Halu-270, and custom CUDA/Metal/SIMD kernels},
url = {https://github.com/demiralpdev/Caphlon-Model}
}
License, Attribution & Badges
- Repository code, kernel patch, scripts, documentation: Apache License 2.0 โ see LICENSE.
- Model weights & upstream lineage: Derived from Qwen 3.8 27B (Qwen Team, Apache-2.0) and Ternary-Bonsai-2-27B (PrismML / UkisAI, Apache-2.0). The upstream Apache-2.0 license governs the weights. See NOTICE.md for the complete modification chain and required notices.
- Trademarks: "Caphlon", "Caphlon-2", and "Caphlon-Model" are project marks of Demir Alp Gรผndoฤmuล. Apache-2.0 grants no trademark rights.
Keywords: lightest Qwen model ยท lightest Qwen 3.8 27B ยท en hafif Qwen modeli ยท en hafif 27B yapay zeka modeli ยท smallest 27B GGUF ยท 4.52 GiB 27B LLM ยท run 27B LLM on 8 GB RAM ยท run 27B on 6 GB VRAM ยท Ternary-Bonsai-2 27B GGUF ยท PTQ1_SB ยท Sylvester-Hadamard quantization ยท LayerTrim FFN pruning ยท BPE vocabulary pruning ยท Apple Silicon 8 GB 27B LLM ยท llama.cpp ternary CUDA Tensor Core ยท Caphlon ยท Caphlon-2 ยท Caphlon-Model
- Downloads last month
- 165
We're not able to determine the quantization variants.
Model tree for ssuasd/Caphlon-2
Base model
Qwen/Qwen3.8-27B
docker model run hf.co/ssuasd/Caphlon-2