TokenBender/Chantless
extracting capabilities from models using masks
2 min read
Chantless extracts specific capabilities from frozen language models without modifying their weights. Instead of retraining, the algorithm analyzes errors and disables a small set of neurons in late layers, preserving performance while adding zero bytes to the file size. The repository includes 16 verified masks for models such as Gemma 4 E2B, Qwen3.5-4B, and Inkling-2-Mini, along with ready-to-use detectors for spotting AI-written text.
Key features
- Skill extraction: isolates specific capabilities (such as AI text detection or function calling) into lightweight mask files.
- Zero-overhead masks: disabling neurons in late layers adds no extra size to the final file.
- Broad compatibility: supports Gemma 4 E2B, Qwen3.5-4B, Qwen3-4B, Inkling-2-Mini, and Qwen3.8-27B.
- CLI tool: command-line utility for downloading masks and building deterministic GGUF files.
What you can do
- Detect AI text: run ready-to-use detectors based on Gemma 4 E2B or Qwen3.5-0.8B to spot AI-generated content.
- Compress capabilities: apply masks to build compact, specialized models without losing accuracy.
- Build GGUF files: compile standalone GGUF files from base weights using the
chantless buildutility. - Test benchmarks: use pre-built JSON masks from the repository to evaluate performance on ClsBench or BFCL.
Example
Sample command to download a mask and build a standalone GGUF model via the CLI:
chantless mask pull hf://TokenBender/Chantless/masks/qwen3-4b-bfcl-apprentice-mask.json --out qwen3-4b-bfcl-apprentice-mask.json
chantless build --source qwen3-4b-bf16.gguf --mask qwen3-4b-bfcl-apprentice-mask.json --llama-bin .local/toolchain/llama-afe77e18/build/bin --out qwen3-4b-bfcl-apprentice.ggufRead more
DetailsGemma 4 E2B Detector: 930.97 MB size (10%), 99.76% accuracy retention (50,944 / 51,066 correct decisions).
Qwen3.5-0.8B Detector: 3.01 GB weights, 396.45 MB specialized GGUF variant.
License: Apache-2.0 for masks, manifests, and checks; Gemma terms and CC BY-NC-SA 4.0 for detectors.










Comments