Repository navigation
Mila v0.20.0-beta.2 #24
ToddThomson
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The second beta of the v0.20 line — 48 commits since
v0.20.0-beta.1. The library staysfeature-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/modelsas first-classverbs 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 and3.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_MODELname 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_tcanonicalized as the type of every tensor axis, with one checked narrowing point atthe kernel launch site. The
/W4warning burn-down closed at 252 → 1, which surfaced realdefects rather than lint — including an archive
close()that reported a truncatedcheckpoint 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()returnsContextOverflowin 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
This discussion was created from the release Mila v0.20.0-beta.2.
All reactions