release: v0.4.0

Merged
SA
2d ago
+9012-424

Merging this releases v0.4.0

This is the promotion of development into main. On the push to main, release.yml plans from trnrt.__version__ (0.4.0, no tag yet), creates the tag v0.4.0 on the merge commit and the GitHub release (sdist, wheel, SHA256SUMS), and publishes to PyPI (PUBLISH_PYPI is on). A PyPI version can never be reused or taken back. The container image is not pushed (PUBLISH_IMAGE is unset).

An admin merges it with a merge commit after one approval.

What ships

  • #63 Qwen3.8-27B, GLM-5.3 and DeepSeek-V4.1-Flash on Trainium2, each with its own build (--preset qwen38, glm53, dsv41): Qwen3.8-27B in preview, the other two experimental.
  • #62 every pip install in CI, release.yml and the image that downloads packages reads a hash-locked file (fixes #35).
  • #64 release prep: version 0.4.0, CHANGELOG.md's [0.4.0] - 2026-12-01, the README and its support card naming the three families at their statuses.

Gates

  • CI green on development at 0633bf3, and the required checks on this PR.
  • Reviewed tree: this PR's head is #64's squash commit, and its tree is identical to the head reviewed and approved there (500790b).
  • Version and changelog: 0.4.0, [0.4.0] - 2026-12-01 (#64); tools/release_plan.py --sha HEAD on this tree: "release: v0.4.0 is new: releasing it".
  • Local check of the release tree: pre-commit run --all-files and mypy clean, CPU suite 2,899 passed, 506 skipped, 2 xfailed, 1 failed: tests/test_no_trace.py with the maintainers' private patterns, on two known false positives only (a provider pattern inside the word "unscaled"; #62's public author email in its commit metadata); python -m build --no-isolation and twine check --strict pass.
  • Device check on a trn2.48xlarge (docs/DEVELOPMENT.md, release step 2): not run for this commit.
    • Ran, on #63's code before its review fixes (30 Nov - 1 Dec 2026): every result in docs/RESULTS.md "The model families on Trainium2", and tools/graph_equiv.py against 0.2.0's capture for GLM-5.3-Flash's three builds (EQUAL).
    • Changed after those runs, not run on a device: DeepSeek-V4.1-Flash's indexer selection (its graphs move), same-line edits in trnrt/engine/sampler.py and trnrt/models/gqa.py, and #62's installs (same transformers and tokenizers versions).
    • Owed on this commit: tools/graph_equiv.py against v0.2.0 (the last release checked on a device; v0.3.0 never was), docker/check_image.py --device, the default balanced build served on two engines of TP 32, and DeepSeek-V4.1-Flash's 4-layer check on dsv41. The commands are in #64. The CHANGELOG's 0.4.0 summary and docs/KNOWN_ISSUES.md say the same.

After the merge

release.yml writes the plan to the run summary. If the PyPI step fails, the tag and GitHub release stay; re-run the failed job from the Actions tab.


Summary by cubic

Promotes development to main and releases v0.4.0, adding the first on-device runs of three model families on Trainium2. An admin merges this with a merge commit; the merge creates the tag v0.4.0 and a GitHub release (sdist, wheel, SHA256SUMS) and publishes to PyPI, where a published version can never be reused. The container image is not pushed, and the device check on a trn2.48xlarge was not run for this commit.

Model families

  • Qwen3.8-27B is in preview on Trainium2 (--preset qwen38); GLM-5.3 (glm53) and DeepSeek-V4.1-Flash (dsv41) run experimentally at their first shapes.
  • Each family gets its own build, with device kernels for Qwen3.8-27B (Gated DeltaNet decode, head_dim-256 attention, fp32 output head) and device-driven compile fixes for all three.
  • Plain-decoder models gain prompt logprobs scoring (prompt_logprobs, prompt_logprobs_start).

CI and release

  • Every pip install in CI, release.yml and the image now reads a hash-locked requirements file (fixes #35).
  • Version, changelog, README and support cards update to 0.4.0 and the new model statuses.