H2O-Lightning-4B on a Mac: a calibrated decision model that knows when it isn't sure
Paris Michalas, Partner, NetProjects (Internet Projects Ltd)
Many sites need a model that answers one narrow question and says how sure it is. Is this claim supported by the evidence? Which priority is this ticket? Does this record match? A chat model can answer those questions, but its stated confidence is rarely something you can rely on. H2O.ai's H2O-Lightning-4B is built for exactly this job. It reads a short record and a question, and returns a probability for each possible answer in a single pass.
Its official deployment runs on vLLM, which needs an NVIDIA GPU. We wanted it on a laptop, so we ported the serving layer to Apple Silicon with MLX. The official shim runs unchanged. We replaced only the part that needed NVIDIA. When we checked Hugging Face on 12 October 2026, this was the first public MLX build we could find.
Update, 12 October 2026: H2O.ai now links these MLX builds from the official H2O-Lightning-4B model card, under Other runtimes. Model card: https://huggingface.co/h2oai/h2o-lightning-4b
Last change, 29 October 2026: our builds now follow H2O-Lightning-4B v1.4.2. The weights are unchanged since v1.4.1; the serving files are new.
Always up to date. We keep these builds and the engine that runs them current on Hugging Face and GitHub. When H2O.ai releases a new version of H2O-Lightning-4B, we rebuild, re-test and publish it there, so the links on this page always point to the latest version. The numbers in this article were measured on the version named in each section; the README on GitHub and the model card on Hugging Face carry the current figures and a dated change log.
- Hugging Face: https://huggingface.co/netprojects
- GitHub: https://github.com/internet-projects
- NetProjects MLX builds collection: https://huggingface.co/collections/netprojects/netprojects-mlx-builds
What we built
- An MLX serving facade. It answers the five vLLM calls the official shim makes, using one MLX forward pass per question. Nothing is sampled. The hidden state at the answer position goes through the output head in float32, as the model's configuration requires.
- Two-way and one-way reading from one engine. Two-way reading, which H2O recommends as the default, lets the full-attention layers see the whole prompt in both directions. Each request chooses its mode, and H2O's shim checks the engine against H2O's recorded answers before the first two-way answer.
- An optional front door. A small server adds an API key and a simple single-question route, for applications that send one question at a time.
- Quantised builds. An 8-bit build (5.1 GB on disk) and a 4-bit build (3.0 GB on disk), each with a model card.
What it can do now
Box questions. Since v1.4.0 a request can ask for a bounding box on an image, and the answer comes with a confidence. The image is sent once under assets and referred to by name in the state. The question looks like this:
{"type": "box", "instructions": "the total amount line in IMG_1"}The answer gives the box as fractions of the image, a confidence, and whether the object is visible at all. On H2O's receipt example the 8-bit build draws the box across the total line, the same box as the bf16 weights.
Long inputs never fail for length. Since 28 October an over-long record is trimmed to fit the 40,960-token context by a BM25 selector, instead of being refused.
Yes/no answers now keep their raw probability by default. If you want H2O's Decision Index profile, with its 0.801 floor, start the server with PROFILE=di ./serve.sh instead.
Images up to 1,638,400 pixels are read whole, as they are on vLLM.
Does the port match the original?
We tested on the public JevBench set (231 items, JevBench v1.2.1) on a MacBook Pro M5 Max. Two-way and one-way are the two ways the model can read the prompt.
Measured on H2O-Lightning-4B v1.4.2, 29 October 2026.
| Build | Two-way | One-way | Size |
|---|---|---|---|
| H2O's own (vLLM, from H2O's card) | 206 / 231 | 202 / 231 | 9.3 GB |
| bf16 on MLX | 205 / 231 | 201 / 231 | 9.3 GB |
| 8-bit (recommended) | 205 / 231 | 201 / 231 | 5.1 GB |
| 4-bit | Not supported two-way | 205 / 231 | 3.0 GB |
H2O's start-up check refuses the 4-bit build for two-way reading (probe drift 0.090 against a 0.05 tolerance), so use the 8-bit build for two-way. The 8-bit build gives the same answer as bf16 on 231 of 231 items.
How fast is it?
Measured on H2O-Lightning-4B v1.4.1, 27 October 2026, MacBook Pro M5 Max.
| Case | 8-bit two-way | 8-bit one-way | 4-bit one-way |
|---|---|---|---|
| Per JevBench item | 63 ms | 63 ms | 59 ms |
| About 2,000-token record | 456 ms | 388 ms | 356 ms |
| 4K tokens | 0.95 s | 0.81 s | 0.76 s |
| 32K tokens | 14.3 s | 7.8 s | 7.4 s |
Peak memory at 4K and 32K tokens: 8-bit two-way 8.2 GB and 55.0 GB, 8-bit one-way 7.7 GB and 8.9 GB, 4-bit one-way 5.7 GB and 6.8 GB. Two-way reading needs much more memory on long inputs, so on smaller Macs use one-way for those.
Is the confidence worth relying on?
Accuracy is only half of the story for a decision model. The useful signal is the confidence. We checked all three MLX builds on 400 items from the public VitaminC test split, measured on v1.2.3 (200 supported, 133 refuted, 67 not enough info), with the evidence sentence buried in about 650 words of other text.
Measured on H2O-Lightning-4B v1.2.3, as published on 12 October 2026.
- bf16: 81.2% accuracy, Brier score 0.135, calibration error (ECE) 0.057, AUROC 0.891.
- 8-bit: 81.2% accuracy, Brier score 0.134, calibration error (ECE) 0.055, AUROC 0.892.
- 4-bit: 82.8% accuracy, Brier score 0.134, calibration error (ECE) 0.068, AUROC 0.888.
Lower is better for the Brier score and calibration error. The accuracy differences are within noise (about ±4 points at 400 items). The calibration is good and holds across builds, with the 4-bit build a little looser. With the 8-bit build, accepting only answers at confidence 0.9 or higher covered 58% of the items at 90% accuracy, so the confidence tells you which answers to double-check.
We also looked at H2O (8-bit) on our own set of 512 claims from a travel-content site we run. It is our own set, one site, not a public benchmark, and it leans towards hard, low-confidence claims. When H2O's confidence was 0.80 or higher, it was right 90.8% of the time (262 claims); below that, it was right 54.0% of the time (250 claims).
“A decision model is only useful if its confidence means something. H2O's does: when it was confident it was right about nine times in ten, and when it wasn't sure, it said so.”
Try it
The code is at https://github.com/internet-projects/h2o-lightning-mlx. Its setup script downloads the official H2O repository, runs the shim's own start-up checks and converts the weights to 8-bit. Then start the server:
./setup.sh q8
MODEL=mlx-q8 ./serve.shThe README has the full benchmark commands, so you can reproduce the public benchmark numbers above. Earlier releases stay available on Hugging Face as revisions (see the model card).
Always up to date. We keep these builds and the engine that runs them current on Hugging Face and GitHub. When H2O.ai releases a new version of H2O-Lightning-4B, we rebuild, re-test and publish it there, so the links on this page always point to the latest version. The numbers in this article were measured on the version named in each section; the README on GitHub and the model card on Hugging Face carry the current figures and a dated change log.
- Hugging Face: https://huggingface.co/netprojects
- GitHub: https://github.com/internet-projects
- NetProjects MLX builds collection: https://huggingface.co/collections/netprojects/netprojects-mlx-builds
What we are releasing, and what stays private
Public: the serving code, the model cards, and the benchmark scripts. Private: our product harness, our prompts and our data.
- Code: https://github.com/internet-projects/h2o-lightning-mlx
- 8-bit build: https://huggingface.co/netprojects/h2o-lightning-4b-mlx-q8
- 4-bit build: https://huggingface.co/netprojects/h2o-lightning-4b-mlx-q4
- More decision models on a Mac: JEV-35B and AutoTrust-JEV-27B v1.1: https://netprojects.com/insights/autotrust-jev-decision-models-on-apple-silicon-mlx
- More decision models on a Mac: IBM Granite Switch 4.1: https://netprojects.com/insights/granite-switch-4-1-on-apple-silicon-mlx
- More decision models on a Mac: Fastino GLiDE: https://netprojects.com/insights/fastino-glide-decision-model-on-apple-silicon-mlx
- H2O.ai's original: https://huggingface.co/h2oai/h2o-lightning-4b
- More from us: Two AI judges, one laptop: https://netprojects.com/insights/two-ai-judges-one-laptop
On 12 October 2026 Paris also shared the build in the H2O.ai community discussion for the model and with the MLX Community on Hugging Face:
- H2O.ai community: https://huggingface.co/h2oai/h2o-lightning-4b/discussions/2
- MLX Community: https://huggingface.co/spaces/mlx-community/README/discussions/44
Credits
H2O-Lightning-4B is by H2O.ai (Apache-2.0), built on Qwen3.5-4B by the Qwen team (Apache-2.0). The MLX port is by NetProjects (Internet Projects Ltd) and is Apache-2.0 licensed. MLX port by Paris Michalas, Partner at NetProjects (Internet Projects Ltd). NetProjects: https://netprojects.com. NetProjects is not affiliated with H2O.ai. Thanks also to the MLX and mlx-vlm projects, and to JevBench.
Paris Michalas is a partner at NetProjects, the trading name of Internet Projects Ltd. This article was drafted with AI assistance, then edited and approved by people on our team. You can read more about how we use AI at https://netprojects.com/standards/ai.