Skip to content

Mila v0.20.0-beta.2

Pre-release
Pre-release

Choose a tag to compare

@ToddThomson ToddThomson released this 11 Aug 20:17
· 99 commits to master since this release
91f1439

The second beta of the v0.20 line — 48 commits since v0.20.0-beta.1. The library stays
feature-frozen; model distribution was carved into the freeze deliberately, because a
release nobody can get a model for is not an onboarding path.

Before this release you built Mila from source and converted your own weights. Now you
install a published model by name and run it.

Model distribution

Mila retrieves, verifies and manages models itself. A local content-addressed store keyed
by name, a hub behind an interface, and install / pull / rm / models as first-class
verbs in the chat harness. Loading reads only from the local store — nothing downloads
behind your back.

Three models are published, public and ungated at
huggingface.co/mila-llm: Gemma 4 12B Instruct FP4,
Llama 3.2 3B Instruct FP4 and Llama 3.1 8B Instruct FP4. Artifacts are ordinary
safetensors, pre-quantized at export — Gemma 4 12B FP4 is 6.33 GB rather than 23.8 GB, and
loads near-instantly because the packing happened once. Every file is checked against a
published digest as it downloads, and each model's licence and NOTICE travel with the
weights to your disk.

Mila on PyPI

pip install mila-llm — four wheels: Windows and Linux (manylinux_2_38), Python 3.12 and
3.13. No CUDA Toolkit installation required; the CUDA libraries arrive as wheel
dependencies and are bound explicitly rather than picked up from whatever the machine
happens to have. Models load by store name, and the Mila Inference Server now runs on the
same store — one MILA_MODEL name replacing four environment variables.

Know what it costs before you load it

A model reports what building it would allocate without allocating anything, read from
the artifact header — so the question is answerable before a multi-gigabyte download and
for hardware you do not own. Chat states the footprint before every load and, where the
weights fit but the total does not, finds the largest context that would.

Correctness and hardening

dim_t canonicalized as the type of every tensor axis, with one checked narrowing point at
the kernel launch site. The /W4 warning burn-down closed at 252 → 1, which surfaced real
defects rather than lint — including an archive close() that reported a truncated
checkpoint as saved. The five known-red CUDA tests are green (three had been misdiagnosed;
RoPE FP32 backward was arithmetically wrong). The BF16 train-from-scratch path, which could
not initialize, compile, link or converge, now does all four. generate() returns
ContextOverflow in GPT-2 and Llama instead of running past the context length.

Notes

Pre-1.0: breaking changes are expected between releases, and this one carries several —
see the pull request for the consolidated
list. Cross-platform: Windows (MSVC / Visual Studio 2026) and Linux (Clang 21 / GCC 16).
getting-started.md
to build or consume Mila.

Full Changelog: v0.20.0-beta.1...v0.20.0-beta.2