Image-Text-to-Text
MLX
Safetensors
English
multilingual
inkling2_loop
jang
janght
quantized
apple-silicon
Mixture of Experts
looped
reasoning
thinking
agent
tool-use
coding
vision
speculative-decoding
inkling
conversational
Run this model with HF Jobs
Run OsaurusAI/Inkling-2-Mini-JANGHT4.2 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/OsaurusAI/Inkling-2-Mini-JANGHT4.2. 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/OsaurusAI/Inkling-2-Mini-JANGHT4.2 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/OsaurusAI/Inkling-2-Mini-JANGHT4.2. 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 OsaurusAI/Inkling-2-Mini-JANGHT4.2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use OsaurusAI/Inkling-2-Mini-JANGHT4.2 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("OsaurusAI/Inkling-2-Mini-JANGHT4.2") config = load_config("OsaurusAI/Inkling-2-Mini-JANGHT4.2") # 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 OsaurusAI/Inkling-2-Mini-JANGHT4.2 with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "OsaurusAI/Inkling-2-Mini-JANGHT4.2"
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": "OsaurusAI/Inkling-2-Mini-JANGHT4.2" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use OsaurusAI/Inkling-2-Mini-JANGHT4.2 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 "OsaurusAI/Inkling-2-Mini-JANGHT4.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:8080/v1 hermes config set model.default OsaurusAI/Inkling-2-Mini-JANGHT4.2
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use OsaurusAI/Inkling-2-Mini-JANGHT4.2 with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "OsaurusAI/Inkling-2-Mini-JANGHT4.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:8080/v1 \ --custom-model-id "OsaurusAI/Inkling-2-Mini-JANGHT4.2" \ --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"
Download jang_config.json from OsaurusAI/Inkling-2-Mini-JANGHT4.2: direct link, hf CLI and curl.
- Browser
- Download file 4.01 kB
-
https://huggingface.co/OsaurusAI/Inkling-2-Mini-JANGHT4.2/resolve/main/jang_config.json
- Command line
-
hf download hf://OsaurusAI/Inkling-2-Mini-JANGHT4.2/jang_config.json
-
curl -L -o jang_config.json https://huggingface.co/OsaurusAI/Inkling-2-Mini-JANGHT4.2/resolve/main/jang_config.json
4.01 kB
| { | |
| "format": "jangtq2", | |
| "format_version": 2, | |
| "format_name": "JANGHT (mixed trellis + Hadamard experts)", | |
| "model_name": "Inkling-2-Mini-JANGHT4.2", | |
| "name": "Inkling-2-Mini-JANGHT4.2", | |
| "architecture": "inkling2_loop", | |
| "source": { | |
| "repo": "thinkingmachines/Inkling-2-Mini", | |
| "revision": "ed40e7da625f594fc9c4990f5f66be24873c22d7" | |
| }, | |
| "bpw": { | |
| "whole_model": 4.25, | |
| "experts": 3.805, | |
| "rule": "model-*.safetensors bytes x 8 / BF16-equivalent source params; native drafter (mtp_drafter.*) excluded from both sides; the shipped vision tower counts", | |
| "source_params": 26388641280, | |
| "counted_bytes": 14017835336 | |
| }, | |
| "experts": { | |
| "kind": "janght", | |
| "plan_key": "ht_bpw4.25", | |
| "bytes": 11634488832, | |
| "gib": 10.835462093353271, | |
| "units": { | |
| "down:jt2.5": 2, | |
| "gate_up:jh2": 1, | |
| "gate_up:jt2.5": 5, | |
| "down:jh3": 3, | |
| "down:nat": 15, | |
| "gate_up:jt3": 4, | |
| "gate_up:nat": 10, | |
| "down:jh4": 4, | |
| "gate_up:jh4": 4 | |
| }, | |
| "jangh_scale_alpha": 0.5 | |
| }, | |
| "non_experts": { | |
| "affine_8bit_gs64_modules": 146, | |
| "kept_bf16": null, | |
| "passthrough": "router fp32, sinks, loop/attn-res control tensors, convs, norms, vision tower, native drafter (source dtype)" | |
| }, | |
| "total_bytes": 14653434656, | |
| "total_gib": 13.647074490785599, | |
| "scale_correction": { | |
| "alpha": 0.5, | |
| "applies_to": "jangtq2 (JANGH) units", | |
| "kind": "fp16 row scale x f^alpha, f = weight-space unit gain <w,w>/<w,q> per row (clipped [0.5, 2]); codes unchanged" | |
| }, | |
| "evaluation": { | |
| "reference": "source checkpoint (native NVFP4 / MXFP8 experts, fp32 activations, BF16 vision tower)", | |
| "heldout_positions": 319344, | |
| "kl_median": 0.0019293498480692506, | |
| "kl_mean": 0.007009460982400674, | |
| "kl_p99": 0.07146759435534493, | |
| "top1": 0.9688079312590812, | |
| "dnll_mean": 0.0056983784010608725, | |
| "per_domain": { | |
| "agentic": { | |
| "kl_median": 0.0013280264683999121, | |
| "top1": 0.9726139231111771 | |
| }, | |
| "coding": { | |
| "kl_median": 0.0005405443953350186, | |
| "top1": 0.977269602676321 | |
| }, | |
| "encyclopedic": { | |
| "kl_median": 0.003435641061514616, | |
| "top1": 0.961522198731501 | |
| }, | |
| "long": { | |
| "kl_median": 0.0009591648995410651, | |
| "top1": 0.9684466019417476 | |
| }, | |
| "multilingual": { | |
| "kl_median": 0.002411827677860856, | |
| "top1": 0.963505047989425 | |
| }, | |
| "reasoning": { | |
| "kl_median": 0.00016365243209293112, | |
| "top1": 0.984427094323697 | |
| }, | |
| "science": { | |
| "kl_median": 0.0009886015905067325, | |
| "top1": 0.9738391956528812 | |
| }, | |
| "story": { | |
| "kl_median": 0.003293114947155118, | |
| "top1": 0.9617860440575122 | |
| }, | |
| "terminal": { | |
| "kl_median": 0.00018973385158460587, | |
| "top1": 0.9859578736208626 | |
| }, | |
| "vision": { | |
| "kl_median": 0.00034136541944462806, | |
| "top1": 0.9745971046162251 | |
| } | |
| }, | |
| "decisive": { | |
| "think_close": { | |
| "p_ref_over_cand_geo": 0.9928088631359251, | |
| "n": 224 | |
| }, | |
| "eos": { | |
| "p_ref_over_cand_geo": 0.9988156584486314, | |
| "n": 222 | |
| }, | |
| "open_think": { | |
| "p_ref_over_cand_geo": 1.0000139302628948, | |
| "n": 234 | |
| }, | |
| "open_text": { | |
| "p_ref_over_cand_geo": 1.0002571233970092, | |
| "n": 219 | |
| }, | |
| "open_call": { | |
| "p_ref_over_cand_geo": 1.0030413530000593, | |
| "n": 8 | |
| } | |
| }, | |
| "generation": { | |
| "greedy_13": "13/13", | |
| "sampled_t1_3seeds": "39/39", | |
| "vision_40": "40/40", | |
| "source_controls": { | |
| "greedy_13": "13/13", | |
| "sampled_t1_3seeds": "39/39", | |
| "vision_40": "39/40 (shapes_4: 9 counted 10)" | |
| } | |
| } | |
| }, | |
| "recipe": { | |
| "units": "per layer x {gate_up, down}: native NVFP4/MXFP8 (source bytes) | JANGH codebook 2/3/4 + H32 | JANGT trellis K 2.5/3 (H128 + signs, L=12)", | |
| "allocation": "convex-hull greedy on sum c[unit] x held-out NMSE at a whole-model byte budget; c = measured KL per NMSE with FROZEN routing (one unit at a time, fp32 source)", | |
| "calibration": "5.57M tokens of Mini's own native traces (agentic / coding / reasoning / terminal / multilingual / science / story / encyclopedic / long) + 320 image rows (w^2 x3); loop layers pooled over their 3 passes", | |
| "jangh_scale_alpha": 0.5 | |
| } | |
| } |