Models

caldrix run and caldrix serve take a model as a directory, an alias or a Hugging Face repo id; an alias or a repo id is downloaded into the standard Hugging Face cache and read from there after. The import accepts dense Llama, Mistral, Qwen2 and Qwen3 checkpoints, the Qwen3 mixture-of-experts architecture (Qwen3MoeForCausalLM) and Qwen3.5 (Qwen3_5ForCausalLM, and Qwen3_5ForConditionalGeneration as text only) in safetensors, bf16, f32 or f16, and SmolVLM's vision-language architecture (Idefics3ForConditionalGeneration), which runs on the cpu, hip and metal lanes and in the browser on both tiers from caldrix.js 0.16.0 (Aliases); f16 weights are computed in bf16 by default, or exactly with --dtype f32; quantized safetensors checkpoints are admitted in the formats Quantized safetensors checkpoints names. Qwen3.5 runs on the cpu, hip and metal lanes, and on the nvidia lane by --backend nvidia only (Aliases); inferno serve also serves it on --backend host, its off-hardware test stand-in, which makes no hardware claim. A JANG conversion of Qwen3.5 dense runs on the cpu lane alone (Quantized safetensors checkpoints). Quantized Ollama tags (Q4_K_M and Q8_0) run on the metal lane and, at the desk, on the cpu lane (x86-64-v3); on the hip lane five tags were token-exact in f32 on one MI300X (Ollama tags). Mistral is accepted by the import but has not been verified on hardware. NemotronH (NemotronHForCausalLM) runs on the cpu lane, from a dense checkpoint at the f32 plan, an MLX one or a GGUF file in the kinds its records hold, on the metal lane from a dense checkpoint or a Q8_0 GGUF file at the f32 plan, and in the browser, on both tiers, from a GGUF file only (What the import refuses). Raon-1-nano (Raon1NanoForCausalLM) runs on the cpu lane alone, from a dense checkpoint at the f32 plan, and Raon-1-mini (Raon1MiniForCausalLM) on the cpu lane alone, at the f32 plan with its routed experts read as stored (mxfp8) (What the import refuses). Gemma 4 E2B (Gemma4ForConditionalGeneration, as text only, and Gemma4ForCausalLM) runs on the cpu lane alone, at the f32 plan, from a dense checkpoint or kept compressed from the MLX checkpoint JANGQ-AI/gemma-4-E2B-it-qat-JANG_4M (What the import refuses). GPT-2 (GPT2LMHeadModel) runs on the cpu lane and in the browser on both tiers, at the f32 plan and for completion only (What the import refuses). Phi-3 (Phi3ForCausalLM) runs on the cpu lane, from a dense checkpoint with no rope scaling (What the import refuses). FLUX.2 klein 4B, an image pipeline, makes images from a prompt on the cpu and metal lanes (Image pipelines).

Aliases

Each alias names a model Inferno has run on hardware, pinned to the revision it ran at. smollm2-instruct (from v0.1.2) is verified on the CPU lane (x86-64-v3), not on Metal or AMD GPUs: its tokens on a plain-text prompt; its chat template is not exercised by any gate. qwen3-30b-a3b (the mixture-of-experts checkpoint) is verified by its token gates — eight greedy tokens of one prompt against the PyTorch reference — on one AMD MI300X with every expert resident, on one Apple M1 Max (64 GiB) streamed under a 56 GiB --weight-budget, and on the CPU lane (x86-64-v3) streamed under a 20 GiB budget; without a budget the Metal and CPU lanes load every expert resident, which no run has exercised at this size, and --max-batch above 1 is refused for it. decider-0.8b (Qwen3.5, Qwen3_5ForCausalLM) is a decision model, not a chat model. It and Qwen/Qwen3.5-0.8B-Base are verified by their token gates — eight greedy tokens of one prompt in f32 and in bf16, and of a 1,100-token prompt, against the PyTorch reference — at the desk on the CPU lane (x86-64-v3), on the AMD lane on one MI300X and on the Metal lane on one Apple M1 Max (64 GiB), through the engine. inferno serve serves Qwen3.5 on the cpu lane, on the hip lane (one MI300X, single-stream: the default --max-batch is lowered to 1), on the metal lane (one Apple M1 Max) and on --backend host (its off-hardware test stand-in, which makes no hardware claim). caldrix runs Qwen3.5 on the cpu, hip and metal lanes; the browser refuses the safetensors model. The safetensors Qwen3.5 model also runs on the nvidia lane, by --backend nvidia only: Inferno's own token tests ran decider-0.8b and the Qwen3.5 base model on one GeForce GTX 1080, and caldrix run and one caldrix serve request ran the base model there. caldrix run ran the safetensors model on the hip lane on one MI300X and on the metal lane on one Apple M1 Max; --max-batch above 1 and --weight-budget are refused for it. A quantized Qwen3.5 GGUF file runs on the cpu lane, a desk reading and not a hardware run: the engine generated eight tokens from one Q6_K file of the 0.8B and from the Ollama registry tag qwen3.5:0.8b (a Q8_0 file), each token-exact against its references, caldrix run ollama:qwen3.5:0.8b answered one prompt there with its reference's eight tokens, and inferno serve --backend cpu answered that prompt from the Q6_K file in-process (no HTTP request), cold, repeated and resumed from a checkpoint. On the metal lane the engine's own token gate has run it: once, on one Apple M1 Max, it generated the same eight tokens from the Q6_K file. inferno serve and caldrix admit it on the metal lane too, single-stream at f32, and that served path has run there once, on the same M1 Max: inferno serve --backend metal answered the prompt from the Q6_K file in-process (no HTTP request), cold, repeated and resumed from a checkpoint, and caldrix run ollama:qwen3.5:0.8b --backend metal answered it, each with its reference's eight tokens. One run; no speed or memory figure. In the browser, caldrix.js loads the Q6_K file of the 0.8B by its Hub repo id on the wasm tier: in headless Chromium on a CPU it generated the same eight tokens, at a 64-row context and at the default context, which the fit clamped to 12032 rows (this is the fit's arithmetic, not a memory reading; the first run of this file, before the load streamed it into place, was clamped to 9728). That is not a device run; the WebGPU tier has none of this model's kernels, so the default backend: "auto" uses the wasm tier and backend: "webgpu" is refused by name; the Try page does not list it. No other quantized Qwen3.5 file has run in a browser. On the nvidia lane a quantized Qwen3.5 file runs by --backend nvidia only: the engine's own token gates ran the Q6_K file of the 0.8B and the Ollama tag qwen3.5:0.8b (a Q8_0 file) on one GeForce GTX 1080, each generating the same eight tokens, and caldrix run ollama:qwen3.5:0.8b --backend nvidia and one caldrix serve request answered the prompt there with those tokens, single-stream at f32. inferno serve's own binary has served none there. One run each; no speed or memory figure. --backend auto never uses the GPU for it, and a file whose value heads outnumber its key heads (the 27B files) is refused on that lane. Every other lane refuses it by name. A quantized Qwen3.5 file with a mixture of experts (the Qwen3.6 35B-A3B GGUF files) is admitted by inferno serve and caldrix on the cpu and metal lanes only, and every other lane refuses such a file by name; name the file after the repo (owner/name@revision:<file>.gguf), since UD-Q4_K_M is not a quant selector. On the cpu lane, a desk reading and not a hardware run: from the UD-Q6_K file and from the UD-Q4_K_M file of unsloth/Qwen3.6-35B-A3B-GGUF the engine generated eight tokens at one prompt, each token-exact against its reference; inferno serve --backend cpu answered that prompt from each file in-process (no HTTP request), cold, repeated and resumed from a checkpoint, and caldrix run answered it from each, every reply the reference's eight tokens. On the metal lane both files have run once, on one Apple M1 Max: the engine's own token gate generated the same eight tokens from each, and inferno serve --backend metal answered that prompt from each in-process (no HTTP request), cold, repeated and resumed from a checkpoint, with those tokens; on the same Mac caldrix run by each file's Hub reference downloaded it and answered with those tokens, and caldrix serve --backend metal answered one HTTP completion with them. There is no speed or memory figure.

smolvlm-256m (SmolVLM-256M-Instruct, Idefics3ForConditionalGeneration) is a vision-language model: it takes images as well as text, in caldrix run with -i and /image (run.md) and in caldrix serve as image parts (api.md). It runs on the CPU, HIP and Metal lanes (and on the NVIDIA lane by --backend nvidia only, where Inferno's own token test, caldrix serve and caldrix run -i ran it on one GeForce GTX 1080), and in the browser on both tiers through caldrix.js 0.16.0 (caldrix-js.md; on the wasm tier it has run in Playwright's headless Chromium on Linux, on the WebGPU tier in Playwright's Chromium on the operator's Apple M1 Max on its own adapter (apple, metal-3), each on a test build that admitted it ahead of the release, as What has run, and where records). caldrix doctor prints which lanes take images. It is verified at the desk on the CPU lane (x86-64-v3) by its token gate: greedy tokens of fixture images against the PyTorch reference at f32 and bf16 through the engine, and through the server at f32; at bf16 the server's tokens equal the engine's own (the vision tower runs in f32 at either --dtype; the text model at the --dtype given). On the HIP lane its token gate ran on one AMD Instinct MI300X (gfx942, ROCm 6.4): greedy tokens against the PyTorch reference through the engine in the seven gated f32 cases and in the three scored bf16 cases, and through the server (inferno-serve --backend hip), whose tokens equal the engine's own at f32 and bf16; caldrix run and caldrix serve themselves have not been exercised on the HIP lane. On the Metal lane its token gate ran on one Apple M1 Max (macOS 15.7.9): greedy tokens against the PyTorch reference through the engine in the seven gated f32 cases and in the three scored bf16 cases, and through the server (inferno-serve --backend metal), whose tokens equal the engine's own at f32 and bf16; caldrix run and caldrix serve themselves have not been exercised on the Metal lane. It is not a draft model, and an adapter over it is refused.

AliasHugging Face repoRevision
smollm2HuggingFaceTB/SmolLM2-135M93efa2f097d58c2a74874c7e644dbc9b0cee75a2
smollm2-instructHuggingFaceTB/SmolLM2-135M-Instruct12fd25f77366fa6b3b4b768ec3050bf629380bac
llama-8bdeepseek-ai/DeepSeek-R1-Distill-Llama-8B6a6f4aa4197940add57724a7707d069478df56b1
qwen3-0.6bQwen/Qwen3-0.6Bc1899de289a04d12100db370d81485cdf75e47ca
qwen3-8bQwen/Qwen3-8Bb968826d9c46dd6066d109eabc6255188de91218
qwen3-30b-a3bQwen/Qwen3-30B-A3Bad44e777bcd18fa416d9da3bd8f70d33ebb85d39
decider-0.8bMapika/decider-0.8ba0a01d6f8135298f400a8c856b355793012ae971
smolvlm-256mHuggingFaceTB/SmolVLM-256M-Instruct7e3e67edbbed1bf9888184d9df282b700a323964
flux2-klein-4bblack-forest-labs/FLUX.2-klein-4Be7b7dc27f91deacad38e78976d1f2b499d76a294

Image pipelines

flux2-klein-4b (FLUX.2 klein 4B, black-forest-labs/FLUX.2-klein-4B, licensed Apache-2.0 per its model card) is an image pipeline: a text encoder, a denoiser and an autoencoder in one diffusers repo, with model_index.json at its top. caldrix run makes one PNG from a prompt with it (run.md) and caldrix serve serves it (serve.md); a directory holding model_index.json is used as it is, by caldrix run and caldrix serve (serve.md). It runs on the CPU and Metal lanes: --backend auto takes the CPU lane on Linux and the Metal lane on a Mac where the Metal lane is usable (doctor.md). caldrix refuses it by name on hip, and the browser build refuses the alias by name and does not list it. It is verified at the desk on the CPU lane (x86-64-v3): a 256×256 image in bf16 against the PyTorch reference, step by step, and a 512×512 image with no reference. On the Metal lane, on one Apple M1 Max, caldrix run made a 256×256 image, the same step-by-step comparison with the PyTorch reference held at 256×256, and a 512×512 image was made outside caldrix run with no reference; on that Mac caldrix run has also made a 512×512 and a default 1024×1024 image, each once, with no reference at those sizes, so neither was compared with anything, and caldrix serve's image endpoint answered one request at 256×256, once, with an image byte for byte the one caldrix run wrote. It has not been run on another Apple chip or on a Mac with less memory than that one, and on the CPU lane the default 1024×1024 has not been run end to end. Nothing about image quality or speed is claimed.

A Hugging Face repo id is an image pipeline when its file list holds model_index.json at its top, and by nothing else: caldrix run <owner/name> -p PROMPT -o OUT.png looks the repo up once and runs it at the commit that list named (run.md), and caldrix serve <owner/name> serves it (serve.md); any other repo id is a text model. The files fetched are a fixed list, at the resolved commit: model_index.json, the four components' configuration files (scheduler/scheduler_config.json, text_encoder/config.json, transformer/config.json, vae/config.json), the tokenizer's files (tokenizer/tokenizer.json, tokenizer/tokenizer_config.json, tokenizer/vocab.json, tokenizer/merges.txt, tokenizer/added_tokens.json and the chat template tokenizer/chat_template.jinja, whichever the repo has), vae/diffusion_pytorch_model.safetensors, and the weight files of text_encoder/ and transformer/: the ones its index file (model.safetensors.index.json, diffusion_pytorch_model.safetensors.index.json) names, or, with no index file, the directory's one .safetensors file. A directory with no index that holds more than one, such as a variant (*.fp16.safetensors) beside the single file, is refused. No other file in the repo is fetched. On caldrix serve <owner/name>, a repo the model index does not hold is first described as any repo is (its file list, its configuration files and the first bytes of its weight files), so no whole weight file is downloaded before it is judged. A repo whose file list names more than 4096 files, or a path that is not a plain relative path, is refused whole, before anything is fetched. The five configuration files come first, each at most 64 KiB, with the index files, each at most 16 MiB, and each tokenizer file is held to its own limit by its listed size; an index that is not valid JSON or names a file that is not a plain .safetensors name in its own directory refuses the repo by name. The configuration files must pass the import's checks, with the memory and disk the run needs ("needs at least": the memory figure is a lower bound), before any weight or tokenizer file is fetched.

A GGUF denoiser (--denoiser-weights, serve.md) is read in Black Forest Labs' layout and widened to f32 as it loads; a file holding Q5_K tensors (unsloth's Q4_K_M) is refused by name, and there is no quantized pipeline alias.

Ollama tags

An Ollama model is named ollama:<name>[:<tag>], or ollama:<namespace>/<name>[:<tag>] outside the library. caldrix downloads its GGUF from the Ollama registry.

caldrix run ollama:smollm2:135m-instruct-q8_0 -p "What is the capital of France?" --backend metal

A Q4_K_M, Q8_0 or Q6_K tag is read and sized before any download. It runs at an f32 plan, the default when --dtype is not given; an explicit --dtype bf16 and --weight-budget are refused by name.

  • metal: on one Apple M1 Max, smollm2:135m-instruct-q4_K_M, smollm2:135m-instruct-q8_0, qwen2.5:0.5b-instruct-q4_K_M and deepseek-r1:8b-llama-distill-q4_K_M were token-exact in f32, and caldrix run of deepseek-r1:8b-llama-distill-q4_K_M completed.
  • cpu: at x86-64-v3, smollm2:135m-instruct-q4_K_M, smollm2:135m-instruct-q8_0, qwen2.5:0.5b-instruct-q4_K_M and qwen2.5:0.5b-instruct-q8_0 were token-exact in f32 at the desk on one machine — a desk reading, not a run.
  • hip: the lane compiles quantized tags and holds a quantized model to one request at a time (--max-batch lowers from 8 to 1 with a startup line, and an explicit --max-batch 8 is refused by name). On one MI300X, smollm2:135m-instruct-q4_K_M, smollm2:135m-instruct-q8_0, qwen2.5:0.5b-instruct-q4_K_M, qwen2.5:0.5b-instruct-q8_0 and deepseek-r1:8b-llama-distill-q4_K_M were token-exact in f32 by their token gates (eight greedy tokens of one prompt each).

Quantized safetensors checkpoints are covered in Quantized safetensors checkpoints.

Quantized safetensors checkpoints

caldrix doctor's model support block says what is admitted, on which lane, and what ran:

  • GPTQ, AWQ, compressed-tensors int and bitsandbytes nf4 checkpoints are admitted. On the cpu lane each is kept compressed where a cpu record holds its blocks (the cpu lane has desk readings of one checkpoint of each format, not runs); on the metal, hip and nvidia lanes it is expanded in memory at load. Those lanes admit them and have run none.
  • Jlama Q4 checkpoints are admitted and expanded in memory at load on every lane; the cpu lane has a desk reading of one checkpoint, not a run.
  • MLX checkpoints are kept compressed on the cpu lane where a cpu record holds their variant, and expanded in memory at load otherwise; the cpu lane has desk readings, not runs, and no other lane has run one. Affine 8-bit group 32 with f16 scales joined the recorded variants on the Gemma 4 E2B checkpoint JANGQ-AI/gemma-4-E2B-it-qat-JANG_4M (its attention projections); the variant is admitted for every model the cpu lane's MLX rule covers, though only Gemma 4's linear layers have run it, and no MLX embedding in it has. Affine 6-bit group 64 with f16 scales joined them on the Qwen3.5 checkpoint JANGQ-AI/Qwen3.5-4B-JANG_4S (32 of its modules; the rest, its embedding among them, are 4-bit); it too is admitted for every model the cpu lane's MLX rule covers, though only Qwen3.5's linear layers have run it, and no MLX embedding in it has. Some MLX checkpoints with a mixture of experts are refused before any download; the model support block names which.
  • A JANG conversion of Qwen3.5 (an MLX checkpoint of the dense model with jang_config.json beside its config.json) runs on the cpu lane alone; every other lane, and the browser, refuse it by name before any weight file is read or downloaded. Each module's bits and group are read from its tensors where config.json's per-module entries disagree with them, and the stale top-level rope_parameters copy in its config.json is not read; a line at load says so for each. JANGQ-AI/Qwen3.5-4B-JANG_4S is the one recorded, a desk reading and not a hardware run: kept compressed at x86-64-v3, the engine gave the 16 greedy tokens of transformers' Qwen3.5 class at f32 over its dequantized weights on one prompt, and caldrix run --backend cpu and one caldrix serve chat request gave the same 16. Its expanded route has not run, nor has any other size of the family: the 9B and the others are admitted by their variants and have not run.
  • FP8 checkpoints and every other quantization method are refused by name, before any weight file is downloaded. The one exception is Raon-1-mini's mxfp8 routed experts, read in place on the cpu lane (What the import refuses).

GGUF files of a Hugging Face repo

One GGUF file of a Hugging Face repo is named owner/name[@revision]:<quant>, the quant as the file's name ends (Q6_K, any case), or owner/name[@revision]:<file>.gguf, the file's exact name. Without @revision it is main.

caldrix run unsloth/Qwen3.5-0.8B-GGUF:Q6_K -p "Counting to ten: one, two, three," --backend cpu

caldrix lists the repo at the commit the revision names and takes the one top-level .gguf file whose name carries that quant. When two files carry it (model-Q4_K_M.gguf and model-UD-Q4_K_M.gguf), or none does, the run is refused with every file it could be; name the file then. One part of a split file (-00001-of-00003.gguf, or a header that says split.count above 1) and a multimodal projector (mmproj-*.gguf) are refused by name. There is no default quant.

caldrix admits GGUF files of F32, F16, BF16, Q8_0, Q4_K_M and Q6_K, from a Hugging Face repo or an Ollama tag alike; any other quant is refused by name. Before any byte past the file's header it checks the quant, the header (architecture and every tensor's type), the lane and the fit, as for an Ollama tag. The file is downloaded into the Hugging Face cache (blobs/<sha256>, linked from snapshots/<commit>/<file>), where other Hugging Face tools find it too, and is used only when its SHA-256 equals the one the Hub publishes for it; an interrupted download resumes. Quantized files run at an f32 plan, as an Ollama tag's do. What has run on which lane is in Ollama tags and caldrix doctor; a file is admitted by its header, and that a repo's file is admitted does not mean it has run.

A GGUF file on this machine

A path to one GGUF file is a model too: caldrix run ./model.gguf, and the same for caldrix serve. The argument is taken as a file when it starts with ./, ../ or /, or ends in .gguf and has no : in it, and the file exists. So owner/name:<file>.gguf is always the Hub's file; put ./ in front to name a local file with a colon in its path.

caldrix run ./my-model.Q4_K_M.gguf -p "Hello"

Before anything is loaded the file's header is checked as an Ollama tag's is: the architecture, every tensor's type, the lane and the fit. The file's name is not read for a quant: the tensors' own types decide. Nothing is downloaded and nothing is written beside the file. The file is your own, so there is no published SHA-256 to hold it to and none is checked. One part of a split GGUF file is refused, and so is --draft-model with a file. A file is admitted by its header, and that it is admitted does not mean a file like it has run on that lane.

The CPU lane reads more kinds of file than the other lanes: the ternary kinds TQ1_0 and TQ2_0, Q1_0, Q2_K, Q4_1, Q5_K, IQ4_XS, the IQ1, IQ2 and IQ3 kinds, MXFP4 and NVFP4, and BitNet b1.58 files. Run one with --backend cpu; any other lane refuses such a file by name before loading it, and its message says --backend cpu. These kinds run from a file on this machine only: a Hub reference or an Ollama tag with one of these quant labels is still refused. The files of these kinds that have run did so on one x86-64-v3 CPU only; the x86-64-v4, x86-64-v2 and Arm Neon paths for these kinds have been compiled but not run.

caldrix run ./bitnet-2b-tq2_0.gguf --backend cpu -p "Hello"

caldrix models

caldrix models asks the downloaded model index, and the Hugging Face Hub for one repo the index lacks.

caldrix models search <text>... [--json]
caldrix models info <repo> [--json]
caldrix models drafts <repo> [--json]
caldrix models related <repo> [--finetunes|--quantizations|--twins] [--json]
caldrix models supported [--all] [--json]
caldrix models update
caldrix models config <dir> [--json]

caldrix models drafts lists the draft candidates the index knows for a repo. caldrix speculates with the first candidate that passes its checks on this machine; declared speculator heads, MoE and quantized checkpoints are not drafts in this release. When an earlier run on this machine settled a candidate, a line last run on this machine: <draft> was turned off or <draft> stayed on follows, with no figure (run.md).

--json prints the result as JSON. A fractional number the index stores at 32-bit precision, such as an adapter's lora_alpha in caldrix models info --json's entry, is printed as the shortest decimal that reads back to that 32-bit value (0.1, not 0.10000000149011612). caldrix models update asks for the index again, even after a failed update.

caldrix models config <dir> reads <dir>/config.json and nothing else, with no index and no request, and prints config admitted or config refused: <why>: whether this build reads that config, by the rules caldrix run applies to a config before it downloads any weight. It exits 0 on either answer and 1 when the file could not be read. With --json the answer is {"admitted": true|false, "refusal": <why>|null}. It does not judge the weights, the tokenizer, the lane or whether the model fits.

Repo ids and revisions

Any other Hugging Face model is named owner/name, or owner/name@revision for a branch, a tag or a commit. Without @revision the revision is main.

caldrix run Qwen/Qwen3-0.6B@main -p "What is the capital of France?"

The revision is resolved to its commit first, and every file is fetched at that commit. A directory holding config.json, a supported tokenizer (listed below) and *.safetensors is used as it is, with nothing downloaded.

What is downloaded

From the top level of the repo, at the resolved commit:

  • config.json, first, alone. It must pass the import's checks (below) before anything else is fetched, so a refused model costs one small download.
  • tokenizer.json, and tokenizer_config.json and generation_config.json when the repo has them. generation_config.json is read for one thing: its eos_token_id joins the ids a generation stops on, beside the tokenizer's and config.json's. chat_template.json is fetched too when the repo has it, and read for the chat template when there is no chat_template.jinja. A repo without tokenizer.json needs a SentencePiece tokenizer.model instead, or else both vocab.json and merges.txt: right after config.json they are fetched (with added_tokens.json and tokenizer_config.json when the repo has them) and checked before any weights. inferno converts them only when it supports that kind; otherwise the refusal says why, and nothing else is downloaded. A repo with tokenizer.json never downloads its tokenizer.model or the pair; one with tokenizer.model never downloads the pair.
  • preprocessor_config.json and processor_config.json when the repo has them: they say how a vision model (smolvlm-256m's architecture) resizes an image and cuts it into tiles. A vision model must have both, each within its size cap, before any weight file is fetched; on a lane that does not run it, the model is refused after config.json alone.
  • The weight files, chosen the way the transformers library chooses them: model.safetensors alone when the repo has it; otherwise the files named in model.safetensors.index.json; otherwise every *.safetensors file. Any other .safetensors file in the repo is not downloaded and not named. When a local directory or an already-downloaded copy holds .safetensors files the rule leaves out, or the repo ships an adapter beside a model, caldrix prints a note naming the files it does not read: caldrix: reads model.safetensors (as transformers loads it); not read: ….

A repo without config.json, a supported tokenizer (tokenizer.json, a SentencePiece tokenizer.model, or both vocab.json and merges.txt) or any *.safetensors file is refused; .bin and other weight formats are not supported. A repo that holds GGUF files and no *.safetensors is refused with the way to choose one, owner/name:<quant>, and every file it could be (GGUF files of a Hugging Face repo). Before downloading, caldrix prints the number of files and their total size, then each file. Files already in the cache are kept, so an interrupted download resumes at the first missing file.

With a Llama tokenizer (LlamaTokenizer), a character the vocabulary has no token for, not even a byte token, is left out of the prompt, as transformers leaves it out. With a CodeLlama tokenizer (CodeLlamaTokenizer), a prompt containing <FILL_ME> is rewritten for fill-in-the-middle, as transformers does.

Some repos ship full weights beside an adapter_config.json. caldrix asks the Hub for the checksums of the repo's weight files and of the adapter's base model. If they are the same files, the repo is refused as an adapter over that base. If they differ, the shipped model is run and the adapter files are listed as not read. If the two cannot be compared, the shipped model is run with a note saying why. In the browser, caldrix.js makes the same comparison from the two repos' file listings, fetching no weight bytes for it: when every weight file it would read is the base's, unchanged, the load is refused naming both repos; otherwise the model runs and doctor().notRead names the adapter files it does not read, ending with why the base could not be compared when it could not.

Downloads are not checked against a content digest: integrity rests on TLS and on the import's validation of every file.

The cache

Models go where Python's huggingface_hub puts them, so a model either tool downloaded is shared:

  1. HF_HUB_CACHE, when set;
  2. else HF_HOME/hub, where HF_HOME defaults to $XDG_CACHE_HOME/huggingface, else ~/.cache/huggingface.

A commit's files are in models--<owner>--<name>/snapshots/<commit>/ under the cache. To free the space, delete a model's models--<owner>--<name> directory.

Environment

VariableEffect
HF_TOKENthe Hugging Face token, for gated or private repos (else the token file under HF_HOME)
HF_HUB_OFFLINE1, on, yes or true: no network request; the model must already be complete in the cache
CALDRIX_OFFLINEthe same values; covers every network edge caldrix has (the Hub, the model index and the Ollama registry)
HF_ENDPOINTthe Hub's base URL, for a mirror
HF_HUB_CACHE, HF_HOMEwhere the cache is (above)

With HF_HUB_OFFLINE, a commit is looked up as given, and a branch or tag (main included) through the commit the cache recorded for it when it was downloaded; a model that is not complete there is refused.

A gated repo needs its terms accepted on the Hub with your account, then HF_TOKEN set.

What the import refuses

config.json must declare exactly one architecture, one of LlamaForCausalLM, MistralForCausalLM, Qwen2ForCausalLM, Qwen3ForCausalLM, Qwen3MoeForCausalLM, Qwen3_5ForCausalLM, Qwen3_5ForConditionalGeneration (text only), Idefics3ForConditionalGeneration (the CPU lane only), NemotronHForCausalLM (below), Raon1NanoForCausalLM (below), Raon1MiniForCausalLM (below), Gemma4ForConditionalGeneration (text only, below), Gemma4ForCausalLM (below), GPT2LMHeadModel (below) and Phi3ForCausalLM (below) (MistralForCausalLM is accepted, not verified on hardware). Every other architecture is refused by name. Within those, the import refuses:

  • a torch_dtype other than bf16, f32 or f16, and any tensor stored as a type other than f32, f16 or bf16, which covers quantized checkpoints;
  • in a Qwen3 mixture-of-experts checkpoint, expert weights stored as anything but bf16;
  • any tensor the architecture does not use, since the compiler would ignore it (Qwen3.5's multi-token-prediction tensors, mtp.*, and the vision tower, model.visual.*, are skipped by name and never read);
  • an activation other than SiLU, an attention or MLP bias (except Qwen2's own q/k/v bias, and a Llama's attention_bias or mlp_bias), interleaved RoPE, and any rope_scaling other than Llama 3's, linear and dynamic (a dynamic model runs up to its own max_position_embeddings, where its RoPE table is the unscaled one, and a wider context is refused by name; Llama 3's is applied to the RoPE table in code, and a line says so at load; the Metal lane has read a scaled table on hardware, token-exact with the scaling taken from a config.json and from a GGUF's rope_freqs.weight, in a run on an Apple M1 Max, the AMD lane likewise in a run on an MI300X, and the CPU lane at the desk on the 1B — a desk reading, not a run; the verification files say what has run);
  • dimensions out of bounds or inconsistent with each other;
  • an lm_head.weight beside a tied embedding whose shape or type differs from the embedding's;
  • for Qwen3.5, any config.json key outside the set it reads, and an active sliding window;
  • for dense Qwen3.5, a jang_config.json beside config.json that is not a regular file once links are followed, is over 64 KiB, gives both or neither of its two forms' keys (version and format), holds a value out of its bounds, or disagrees with config.json or with the bits the quantized modules' tensors store; and, with a valid one, any lane but cpu;
  • a multi-head latent attention conversion (a config.json with an mha2mla block) other than a Qwen3's uniform selection from start point 0 and two 2-norm conversions of a Qwen2 (OpenMOSS-Team/qwen2-0_5B-rope8-d_kv_16-refactor and OpenMOSS-Team/qwen2.5-0_5B-rope8-d_kv_32-refactor, recognised by their weights, not their names). A 2-norm repository does not ship the table that says which rotary frequencies each head keeps; inferno carries it for those two, the first from the table the conversion's authors published and the second inferred from the weights and not confirmed by them, and refuses every other 2-norm model. All three run on the cpu lane, desk readings and not hardware runs (16 greedy tokens equal to a torch forward written from a reading of the conversion's code, at f32; the Qwen3 also at bf16). The browser (caldrix.js, both tiers) loads the same forms by repo id, a conversion read whole and a 2-norm model's weights checked against the carried fingerprints once its weight file is in: in headless Chromium a tiny random-weight uniform model gave its reference's tokens on the WebAssembly tier and on the WebGPU tier on a software adapter, a CPU, and that is all a browser has run — no published conversion has been loaded in a browser and no device has run one. Every other lane, quantizing them, an adapter over them and speculative decoding refuse them by name;
  • NemotronH (NemotronHForCausalLM) anywhere but the cpu lane, the metal lane in the forms below and the browser's two tiers: it runs on the cpu lane from a dense checkpoint at the f32 plan, a desk reading and not a hardware run (caldrix run --backend cpu gave the reference's 16 greedy tokens on one prompt for Nemotron-3.5-Lightning-0.9B-A0.8B-small, which has experts, and for NVIDIA-Nemotron-3-Nano-4B-BF16). An MLX checkpoint of it runs there too, kept compressed where a cpu record holds its variant and expanded in memory at load otherwise: the records are the 0.9B converted to affine 4-bit (group 64) and to mxfp4, and mlx-community's 4-, 6- and 8-bit Nano-4B conversions, each 16 greedy tokens equal to the reference over its dequantized weights through caldrix run; the expanded route has run on the two 0.9B conversions alone. On the compressed route a checkpoint with experts keeps its expert stacks in their stored kind, and it is kept compressed only where a cpu record has run its stacks' variant that way: affine 4-bit (group 64) and mxfp4, the 0.9B conversions' records, where caldrix run gave the reference's 16 greedy tokens with the stacks in kind; any other stack variant expands. Elastic-12B's mxfp4 conversion is kept compressed by its variant and has no run of its own. A NemotronH checkpoint quantized by any method but MLX (GPTQ, AWQ, compressed-tensors, bitsandbytes, FP8 or another) is refused by name on every lane, before any weight file is downloaded (and at import for a local directory); an MLX one with an nvfp4 global scale in one of two recognised forms (a direct multiplier declared at the top of its quantization block with its scope, or MLX's own per-module form on the expert stacks) is expanded in memory at load, on the evidence of Inferno's tests over two tiny generated checkpoints alone (no real checkpoint with a global scale has run), and one with a global scale in any other form is refused by name, before any weight file is downloaded when its quantization block declares it or the Hub's safetensors headers carry it, and at load from a local directory. A GGUF NemotronH file (architecture nemotron_h or nemotron_h_moe) is read on the cpu lane at the f32 plan, with a dt floor of 0.001 (a GGUF file carries none), its expert stacks served as stored, in their kind. It stops on the file's end-of-sequence token alone (id 11), where a safetensors checkpoint stops on ids 2 and 11, and it honours the file's add_bos_token, so the Nano-4B GGUF files prepend <s>. caldrix's fit counts the stacks at their stored size and refuses a file too large for the machine before any download; the engine loaded on its own, without caldrix, does not size the machine. It runs only in the kinds a NemotronH GGUF record holds at each place: Q8_0, Q4_K, Q5_0, Q5_K, Q6_K and Q4_1 at the matmuls and Q8_0, Q5_0 and Q4_1 at the embedding. Those are the kinds of the Nano-4B's published Q8_0, Q4_K_M and Q4_1 files and of the 0.9B converted to Q8_0, on whose records the engine and caldrix run --backend cpu gave the reference's 16 greedy tokens over the file's dequantized weights; no published file with experts has run. Its expert stacks run compressed on the cpu lane only in a kind a NemotronH GGUF record has run them in: Q8_0, Q4_0, Q4_1, Q5_0, Q5_1 and MXFP4, on the records of the 0.9B converted to Q8_0 and of five copies of it whose stacks alone were re-quantized at the desk to each other kind (the engine and caldrix run --backend cpu gave the reference's 16 greedy tokens with the stacks in kind). Admission is by kind and place, not by model: Lightning-30B's published Q4_0 file (Q8_0 matmuls and embedding, Q4_0 stacks) is admitted by its kinds and has no run of its own (from the Hub its Q4_0 label is refused, below), and Elastic-12B's Q2_K file is refused by kind. An expert stack in any other kind is refused by kind, as is every other quantized kind at a matmul or the embedding, by name, before any download, and an all-F32 file is accepted on the cpu lane with no real-model record, on Inferno's tests over tiny generated files alone. The Hub's and Ollama's quant-label gates are unchanged (F32, F16, BF16, Q8_0, Q4_K_M and Q6_K), so the Nano-4B's Q4_1 file runs as a local file only: from the Hub it is refused by its label, before any download. A GGUF NemotronH file off the cpu and metal lanes, with an F16 or BF16 matmul, embedding or expert stack (NemotronH plans at f32 and no record holds one), with a per-tensor scale (the NVFP4 GGUFs), latent expert tensors, grouped routing without its used count, a multi-token-prediction block or a tied head is refused by name at its header, before any download. --dtype bf16 is refused by name before any download where caldrix's precheck judges the model (a local directory, a GGUF file's header, or a Hub repository the index describes) and at load otherwise, and --weight-budget (a streamed load, which NemotronH does not take in any format) by name before any load or download. Every other lane and quantizing it refuse it by name, whatever its format, and a Hub download for another lane stops before any weight file. In the browser (caldrix.js) it runs from a GGUF file on both tiers, at the f32 plan: its matmuls in their stored kind where the tier reads it, its expert stacks decoded to f32 as they fill. The wasm tier reads expert stacks in any of Q8_0, Q5_0, Q4_K, Q6_K, Q5_1, Q5_K, IQ4_NL, Q3_K, Q4_0, Q4_1 and MXFP4. The WebGPU tier admits a file whose every tensor but the F32 ones is Q8_0, Q4_K, Q5_0, Q5_K or Q6_K, an expert stack Q8_0 only. A matmul or embedding in any other kind is refused by name at the header, before any weight byte, as is a file past the tier's memory; on WebGPU that covers F16 and BF16 tensors and an all-F32 file too, and backend: "auto" then answers with the wasm tier where that tier reads the file. The wasm tier also refuses an all-F32 file. Both tiers refuse a safetensors or MLX checkpoint by name (it would be expanded whole to f32, past the memory of every real one). Two files have run on both tiers: Nemotron-3.5-Lightning-0.9B-A0.8B-small converted to Q8_0 at the desk and NVIDIA-Nemotron-3-Nano-4B's published Q4_K_M file, each giving the reference's 16 greedy tokens in headless Chromium on a CPU (wasm tier, and WebGPU on software adapters, where a weight past the adapter's binding limit is cut into pieces) and a follow-up turn a fresh load's tokens. One GPU has run the WebGPU tier, an Apple M1 Max in headless Chromium, where both files again gave the reference's 16 greedy tokens; no other file, device or browser has run it. The metal lane runs NemotronH resident, one sequence at a time, at the f32 plan, from a dense checkpoint or a GGUF file whose every quantized tensor is Q8_0 (its expert stacks expanded to f32 at load, which caldrix's fit counts), its decode running NemotronH's matrix products through the general matrix-multiply path rather than the decode path other models take. One Apple M1 Max ran it: the engine gave the cpu records' 16 greedy tokens for Nemotron-3.5-Lightning-0.9B-A0.8B-small, NVIDIA-Nemotron-3-Nano-4B-BF16 and the desk's Lightning-0.9B converted to Q8_0, and the five tiny generated models their recorded tokens. No Mac has run the command-line entry as it stands, and no speed is claimed. An MLX checkpoint, a GGUF file with a quantized tensor in any other kind or an F16 or BF16 tensor at a matmul, the embedding or an expert stack, an all-F32 GGUF file, --dtype bf16, --weight-budget and the batched engine are refused there by name.
  • Raon-1-nano (Raon1NanoForCausalLM) anywhere but the cpu lane: it runs there resident, from a dense checkpoint at the f32 plan, its per-layer embedding table held at its stored size (which caldrix's fit counts, though a repository looked up on the Hub before download gets no needed figure), a desk reading and not a hardware run: on KRAFTON/Raon-1-nano the engine gave the 16 greedy tokens of KRAFTON's reference class at f32 on one prompt, and caldrix run --backend cpu and one caldrix serve request gave its first 11 and stopped at its 12th, the model's stop token <|im_end|>. No error bound is claimed for it: two premises of the bounds derived for its operations do not hold on its weights. Every other lane (the browser's two tiers included), --dtype bf16 and --weight-budget are refused by name.
  • Raon-1-mini (Raon1MiniForCausalLM) anywhere but the cpu lane: it runs there resident at the f32 plan from its published checkpoint, the one exception to the stored-type rule above: its 128 routed experts are read in place, as stored (mxfp8 codes and their scales), from the checkpoint's mapped files, so the page cache holds what fits of their 26.5 GB and the process does not copy them. caldrix's fit counts them on a line of their own, outside needed (a repository looked up on the Hub before download gets no needed figure); on the desk's runs, needed (13.0 GiB at a 2048-token context) was 0.26 to 0.30 GiB under the measured peak, so leave more room than it states. A desk reading and not a hardware run: on KRAFTON/Raon-1-mini the engine gave the 16 greedy tokens of KRAFTON's reference at f32 on one prompt at both of its reasoning-effort steering strengths, and caldrix run --backend cpu and one caldrix serve request gave the same 16 at the default strength, the strength caldrix run, /v1/completions and /v1/chat/completions apply. Thinking cannot be turned off through those: /v1/chat/completions accepts chat_template_kwargs and does not read it, so a request carrying enable_thinking: false is rendered with thinking on, and reasoning_effort is refused unless absent or null (api.md). /v1/systemone, without a decider configured, renders each question with thinking off and runs it at the thinking-off strength; that path has not been run on this model. No error bound is claimed for it: the bounds derived for its operations were not read against the reference on its weights. Every other lane (the browser's two tiers included), --dtype bf16 and --weight-budget are refused by name, and so is any other checkpoint with mxfp8 or FP8 weights.
  • Gemma 4 (Gemma4ForConditionalGeneration, read as text only, and Gemma4ForCausalLM) anywhere but the cpu lane, and at any size but E2B's: E4B, 12B (gemma4_unified), 31B and 26B-A4B are refused as not in this release, and any other shape as one no record holds, from config.json before any weight file is downloaded. E2B runs there resident at the f32 plan, its per-layer embedding table held as stored (which caldrix's fit of a local directory counts); its media towers are dropped unread, and a request carrying an image or audio is refused by name. A desk reading and not a hardware run: on google/gemma-4-E2B-it, google/gemma-4-E2B-it-qat-q4_0-unquantized and the MLX checkpoint JANGQ-AI/gemma-4-E2B-it-qat-JANG_4M (kept compressed: attention projections affine 8-bit, the MLP and per-layer projections affine 4-bit, group 32, f16 scales) the engine gave the 16 greedy tokens of transformers' own Gemma 4 class at f32 on one prompt, and caldrix run --backend cpu and one caldrix serve chat request on each gave its first 8 and stopped at its 9th, the model's end-of-turn token; those runs were from local directories. Looked up on the Hub before download, a repository is sized from what the model index records of its safetensors headers (the per-layer table as stored and the weights the import keeps), which gives the same figure as the directory of those files (tested on the recorded headers, not run from the Hub); an MLX one whose table the index does not record is refused as one whose size caldrix cannot judge and is not listed as runnable. Another MLX conversion of E2B with a variant no cpu record holds is expanded in memory at load, provided its token embedding, per-layer embedding table and per-layer gate matrices are stored dense (one that quantizes them is refused by name, below); none has run. No error bound and no speed are claimed for it. Every other lane (the browser's two tiers included), --dtype bf16, --weight-budget, batched serving, speculative decoding and a GGUF file of it are refused by name.
  • in an MLX conversion of Gemma 4, .scales stored beside the token embedding (the tied head), the per-layer embedding table or a layer's per-layer gate matrices (per_layer_input_gate, per_layer_projection): inferno reads those rows dense, as stored, on both routes, and the refusal names the tensor.
  • GPT-2 (GPT2LMHeadModel, such as openai-community/gpt2 and distilbert/distilgpt2) anywhere but the cpu lane and the browser's two tiers: it runs there at the f32 plan from a safetensors checkpoint stored in f32 or f16 (f16 widened exactly), and it is a completion model (it ships no chat template, so caldrix run completes the prompt and caldrix serve's chat route refuses it). Its context is capped at its n_positions (1024 for openai-community/gpt2), which is also its default context; a prompt plus --max-tokens past it is refused by name, never slid or cut. A desk reading and not a hardware run: on openai-community/gpt2 the cpu lane gave transformers' 16 greedy tokens at f32 on two prompts, and the browser gave the same 16 on the WebAssembly tier and on the WebGPU tier on software adapters only (no GPU has run it in a browser). --backend metal is admitted for it, built and not yet run on a Mac, and --backend auto never picks it. The hip and nvidia lanes, --dtype bf16, a bf16 checkpoint, a GPT-2 GGUF file, and converting or quantizing it to a GGUF file are refused by name.
  • Phi-3 (Phi3ForCausalLM, such as microsoft/Phi-3-mini-4k-instruct) anywhere but the cpu lane, or in a shape other than the one admitted: a dense safetensors checkpoint with no rope scaling (default only), a partial_rotary_factor of 1, hidden_act silu and no attention_bias or mlp_bias. That shape covers Phi-3-mini-4k, which has run, and Phi-3-medium-4k and phi-4, which are admitted by it and have not run. Its sliding_window (2047 on the mini) is lowered on the cpu lane, so a context past it runs. A desk reading and not a hardware run: on microsoft/Phi-3-mini-4k-instruct the cpu lane gave transformers' 16 greedy tokens at f32 on one chat prompt and on one prompt of 2040 tokens whose steps cross the window, and caldrix run and one caldrix serve request gave the same tokens up to the model's end-of-turn token. --backend metal is admitted for it, built and not yet run on a Mac, and --backend auto never picks it. The hip and nvidia lanes, the browser, longrope (and its su and yarn spellings, as Phi-3-mini-128k, Phi-3.5-mini and Phi-4-mini set), a partial_rotary_factor other than 1, the biases, an activation other than silu, a quantized Phi-3 checkpoint, --weight-budget, a Phi-3 GGUF file, and converting or quantizing it to a GGUF file are refused by name.
  • a top-level partial_rotary_factor other than 1 in config.json: refused on Phi-3, and on LlamaForCausalLM, MistralForCausalLM, Qwen2ForCausalLM, Qwen3ForCausalLM and Qwen3MoeForCausalLM under a linear, dynamic, yarn or llama3 rope scaling (where it would rotate only part of each head); under the default rope those classes ignore it, as transformers does.

A checkpoint whose config.json ties the output head to the embedding but which ships a different lm_head.weight runs with the shipped head, as transformers does; the command line says so at load (the browser build prints no note).

Each refusal names the field and the value. For a model from the Hub, the refusal comes after config.json alone and says nothing else was downloaded — except the tied-head check above, which has to read the weights and so comes after the download.

A model with an active sliding window (a Mistral model with sliding_window set, or a Qwen model with use_sliding_window: true) runs at a context no wider than its window: within the window the window changes nothing, and a wider --ctx is refused with the window's size. The exceptions apply the window and run at any context: a Mistral or Qwen model on --backend cpu, and a Mistral model in the browser (caldrix.js, both tiers). --backend metal applies the window too; on one M1 Max it matched the reference's 48 tokens for TinyMistral-248M past its window. --backend nvidia is built to apply the window as well, but no NVIDIA card has run it yet, so --backend auto does not pick the card for a model with an active window; --backend hip keeps the context limit. A Qwen2 or Qwen3 model windows only the layers its config.json marks (layer_types, full and windowed layers in any order, or the layers from max_window_layers on), as transformers does.