Repository navigation
Mila v0.20.0 - First Production Release #29
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.
Mila's first production release: validated, packaged and documented. Mila is pre-1.0, and
breaking changes are expected between releases.
Local LLMs at the metal — a C++23 and CUDA library you can read, on a GPU you already own.
Inference and training, built from explicit neural-network components. No execution engine:
when you call
forward(), you know exactly what runs.A 27B model runs on a 16 GB card — and you can open it and read every step it took.
What you can run
Gemma, Llama and GPT-2 are validated token-for-token against HuggingFace; Qwen 3.8 by
hidden-state parity, one decoder block at a time. GPT-2 is the training reference — the MNIST
and Bard samples train against the current API.
Getting it
docker run --rm --gpus all -v mila-store:/models toddthomson/mila-llm:0.20.0-runtime chat --model Llama-3.2-3B-Instruct-fp4pip install mila-llm(3.12 and 3.13, Windows and Linux; no CUDA toolkit needed, just a driver)FetchContentwithGIT_TAG v0.20.0, pinned rather than tracking a branch; see Mila/Samples/QuickStart/Cpptoddthomson/mila-llm:0.20.0-develEvery one of those is indexed at mila.toddt.me.
lateston Docker Hub starts existing with this release and tracks0.20.0-runtime.Breaking changes since beta.3
Pre-1.0, so "production" means validated and polished, not API-frozen.
Loading a model.
fromPretrained/savePretrainedare nowload/saveon every model,and
from_pretrainedisloadin Python.PretrainedModelReader,PretrainedMetadataandgetPretrainedMetadataareWeightsReader,WeightsMetadataandgetWeightsMetadata; themodule
Serialization.PretrainedReaderisSerialization.WeightsReader.GptTransformer's staticfromPretrainedfactory is removed.Memory reporting.
Model::getScratchHighWaterBytes()andIExecutionContext::getScratchHighWaterBytes()are removed;MemoryStats::totalDeviceBytes()now includes scratch.IExecutionContextgainsreleaseLoadStaging()andreserveScratch().PrefillChunking::fits_activation_budgetisfits_available_memoryandisBudgetConstrained()isisMemoryConstrained().DevicegainsgetAllocationGranularity().The model store.
ModelStore::prune()isclean()andPruneOptionsisCleanOptions;clean()no longer deletes blobs, andRemovalReportgainsunreadable_records.Removed.
GemmaModel::profilePrefillandLlamaModel::profilePrefill— drive a promptthrough
generate()withmax_new_tokens = 1instead.QwenGqaWorkspaceandmakeQwenGqaWorkspace— useGqaWorkspaceandmakeGqaWorkspace.Hardware. The library's default CUDA architecture list is
80;86;89;90;120, matching thepublished binaries. Turing is gone from it: the runtime already refused those cards, since the
FP4 GEMM and both GQA flash prefill paths require SM 8.0 or newer. A FetchContent consumer
targeting Turing now gets no cubin rather than a build that cannot run.
Chat.
mila-chatruns instruct models only and no longer loads GPT-2, which remains afirst-class Mila model for training and reference.
Tooling. The
milaCLI builds to<build>/bin/milarather than the build root.publish_model.pyrequires--repoand a package directory.Also in this release
Memory planning got most of the work: the prefill chunk is now chosen against the memory
actually free on your device rather than a fixed per-family budget, RoPE tables are sized to the
context you built rather than the model's trained maximum, and a CUDA allocation that cannot be
satisfied fails cleanly instead of aborting the process. Removing a model from the store deletes
that model's files and nothing else. A mistyped model name says so, and says what to type.
CUTLASS is gone from the build, and third-party licence texts now travel inside the wheels and
the images.
Earlier in the v0.20 line
This release closes a line that ran through
beta.1,
beta.2 and
beta.3 — each has its own
notes, and together they cover model distribution, observability, and the Qwen 3.8 work.
ROADMAP.md has what comes next.
Full Changelog: v0.20.0-beta.3...v0.20.0
This discussion was created from the release Mila v0.20.0 - First Production Release.
All reactions