Run this model with HF Jobs
Run TokenAI-zer/caveling-2-mini-oQ4-mtp on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/TokenAI-zer/caveling-2-mini-oQ4-mtp. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/TokenAI-zer/caveling-2-mini-oQ4-mtp on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/TokenAI-zer/caveling-2-mini-oQ4-mtp. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use TokenAI-zer/caveling-2-mini-oQ4-mtp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use TokenAI-zer/caveling-2-mini-oQ4-mtp with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("TokenAI-zer/caveling-2-mini-oQ4-mtp") config = load_config("TokenAI-zer/caveling-2-mini-oQ4-mtp") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use TokenAI-zer/caveling-2-mini-oQ4-mtp with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "TokenAI-zer/caveling-2-mini-oQ4-mtp"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "TokenAI-zer/caveling-2-mini-oQ4-mtp" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use TokenAI-zer/caveling-2-mini-oQ4-mtp with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "TokenAI-zer/caveling-2-mini-oQ4-mtp"
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:8080/v1 hermes config set model.default TokenAI-zer/caveling-2-mini-oQ4-mtp
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use TokenAI-zer/caveling-2-mini-oQ4-mtp with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "TokenAI-zer/caveling-2-mini-oQ4-mtp"
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:8080/v1 \ --custom-model-id "TokenAI-zer/caveling-2-mini-oQ4-mtp" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
caveling-2-mini-oQ4-mtp
Unofficial oMLX oQ4 quantization of Caveling-2-Mini by caveman-so, a concise-reasoning fine-tune of Thinking Machines' Inkling 2 Mini, for Apple Silicon. It includes the vision encoder and the bundled DSpark draft (mtp.safetensors) that oMLX Lightning MTP uses for speculative decoding. This is an MLX safetensors repository, not GGUF or PyTorch.
I am not affiliated with Thinking Machines or caveman-so. The model and the fine-tune belong to them; see License and attribution.
It needs oMLX 0.8.1 or later (Inkling 2 support arrived in 0.8.1; this build was made with 0.8.4).
This variant
| Property | Value |
|---|---|
| Quantization | oMLX oQ4: experts of layers 20 to 23 affine 4-bit (requantized from MXFP8); NVFP4 experts of layers 0 to 19 unchanged; attention, embedding and vocabulary head affine 8-bit, group size 64 |
| Effective bits/weight | 4.915 for language model and vision, 5.047 including the DSpark draft |
| Weight shards | 15.10 GiB (16.21 GB) across 4 safetensors files, plus mtp.safetensors 0.59 GiB (0.64 GB) |
| Whole model directory | 15.71 GiB (16.87 GB) |
| Architecture | Inkling2LoopForConditionalGeneration: 24 layers (layers 6 to 17 run 3 times per token), hidden size 2304, 128 routed experts with top-8 |
| Context limit in config | 1,048,576 tokens; usable context depends on available memory |
| DSpark draft (MTP) | 3 layers, 54 tensors, BF16, copied byte for byte from the source |
Inkling 2 Mini ships its routed experts already quantized (NVFP4 in layers 0 to 19, MXFP8 in layers 20 to 23), and Caveling-2-Mini keeps them byte for byte. oQ never re-encodes the NVFP4 experts: at every level they pass through unchanged, so no quantization error is added to them. The vision encoder and the draft stay BF16, and the router and loop controllers stay FP32.
Where the fine-tune ends up. caveman-so trained only the 168 BF16 attention projection tensors. MLX fuses them into 56 attention matrices, which oQ stores as affine 8-bit with group size 64 at every level. So the fine-tuned weights are quantized here, while caveman-so's own GGUF keeps them in BF16. 8-bit affine is a small rounding step, but it is not lossless.
Bit distribution
| Storage format | Logical weights | Share | Tensor storage | Effective bits/weight |
|---|---|---|---|---|
| NVFP4, group 16 | 20.384B | 77.25% | 10.679 GiB | 4.50 |
| Affine 4-bit, group 64 | 4.077B | 15.45% | 2.136 GiB | 4.50 |
| Affine 8-bit, group 64 | 1.572B | 5.96% | 1.556 GiB | 8.50 |
| BF16 | 0.320B | 1.21% | 0.595 GiB | 16.00 |
| F32 | 0.036B | 0.14% | 0.133 GiB | 32.00 |
| Total | 26.389B | 100% | 15.098 GiB | 4.915 |
| Component | Logical weights | Storage |
|---|---|---|
| Language model | 26.070B | 14.51 GiB (15.58 GB) |
| Vision | 0.318B | 0.59 GiB (0.64 GB) |
| DSpark draft (MTP) | 0.318B | 0.59 GiB (0.64 GB) |
These values are computed from the shipped config.json, model.safetensors.index.json and the safetensors headers. Quantization is lossy, and these variants have no published post-quantization benchmark results.
Pick a variant
| oQ4-mtp | oQ8-mtp | |
|---|---|---|
| Model directory | 15.71 GiB (16.87 GB) | 17.49 GiB (18.78 GB) |
| Effective bits/weight (LM + vision) | 4.915 | 5.494 |
| Experts of layers 20 to 23 | affine 4-bit (requantized from MXFP8) | MXFP8 (source, unchanged) |
| Experts of layers 0 to 19 | NVFP4 (source, unchanged) | NVFP4 (source, unchanged) |
| Attention projections (fine-tuned by caveman-so) | 56 matrices affine 8-bit, group 64 | 56 matrices affine 8-bit, group 64 |
| Decode speed, one short smoke test* | 119.3 tok/s | 110.2 tok/s |
* Mean of 3 runs on an Apple M5 Max (128 GB) with oMLX 0.8.4, Lightning MTP (DSpark, adaptive depth) on, a 49-token coding prompt and 757 to 1,222 generated tokens at reasoning_effort: low, with 80% to 93% of drafted tokens accepted. These are short-context runs, not a benchmark: speed drops as the context grows and varies with prompt and draft acceptance.
The two levels differ only in the routed experts of layers 20 to 23 (about 15% of the weights), which the source ships in MXFP8: oQ4 requantizes them to affine 4-bit, oQ8 keeps them in MXFP8 exactly as released. Everything else, including the fine-tuned attention, is identical in both, so the sizes are close. oQ8 is the closest to the source checkpoint; oQ4 is smaller and decodes slightly faster. Both include the DSpark draft.
Other formats:
- Source checkpoint (NVFP4/MXFP8/BF16, safetensors): caveman-so/caveling-2-mini
- Official GGUF quants with BF16 attention, for llama.cpp, LM Studio and Ollama: caveman-so/caveling-2-mini-GGUF
- The original Inkling 2 Mini, without this fine-tune, in oMLX format: mlx-community/Inkling-2-Mini-oQ4e-mtp
About the source model
Inkling 2 Mini is a looped multimodal mixture-of-experts model with 26.4B total and 3.4B active parameters, text and image input, and up to 1M tokens of context. Caveling-2-Mini is caveman-so's fine-tune of it that cuts repetitive self-verification and dead-end loops inside the reasoning, so answers finish sooner with fewer tokens. They updated only the 168 BF16 attention projections; the experts, router, loop gates, vision encoder and DSpark draft are byte for byte the original.
caveman-so reports that at xhigh effort, across 9 text and long-context benchmarks, Caveling-2-Mini keeps 100.5% of the base model's accuracy (88.2% vs 87.7%) with 43.1% fewer reasoning tokens. At low effort it keeps 95.6% with 26.4% fewer. They measured the source checkpoint with vLLM in native NVFP4/MXFP8 on NVIDIA Blackwell, not these quantizations, and they note that MLX conversions have not been evaluated. Method and full results are in the upstream model card.
Lineage: thinkingmachines/Inkling-2-Mini โ caveman-so/caveling-2-mini โ this quant
Use with oMLX
hf download TokenAI-zer/caveling-2-mini-oQ4-mtp --local-dir ~/.omlx/models/caveling-2-mini-oQ4-mtp
omlx serve --model-dir ~/.omlx/models --port 8000
The model ID is caveling-2-mini-oQ4-mtp. oMLX turns on Lightning MTP for this model by itself; check that it is on in the model settings, otherwise the model still runs but decoding is not accelerated.
Reasoning effort and sampling
The shipped chat_template.jinja and generation_config.json are unchanged from the source. The template takes a reasoning_effort as a name (none, minimal, low, medium, high, xhigh, max) or a number from 0.0 to 0.99; the default is 0.9. Pass it in chat_template_kwargs, or as reasoning_effort in the request. caveman-so recommends xhigh (0.99) for competition math, hard coding and graduate-level science, and low (0.2) for fast general, instruction-following and tool-use work. Their examples use temperature 1.0 and top_p 1.0.
License and attribution
Apache 2.0, as for the source and the original model. Credit for the model goes to Thinking Machines and for the fine-tune to caveman-so; see LICENSE-NOTICE.md.
Citation
@misc{caveling-2-mini-oq4-mtp,
title = {caveling-2-mini-oQ4-mtp: oMLX oQ4 quantization with DSpark draft},
author = {TokenAI-zer},
year = {2026},
url = {https://huggingface.co/TokenAI-zer/caveling-2-mini-oQ4-mtp},
note = {Unofficial quantization of caveman-so/caveling-2-mini}
}
Also by TokenAI-zer: Move Mouse for macOS, a free, open-source menu bar app that keeps your Mac active (source on GitHub).
- Downloads last month
- 168
4-bit
Model tree for TokenAI-zer/caveling-2-mini-oQ4-mtp
Base model
thinkingmachines/Inkling-2-Mini