Currently we follow a lightweight release process.
- Update the version number in
assets/version.txtwith a PR. The version numbering should follow https://semver.org/.- E.g. for a pre-release
0.y.z- if major features are added, increment
y - if minor fixes are added, increment
z
- if major features are added, increment
- E.g. for a pre-release
- Create a new release at https://github.com/pytorch/torchtitan/releases/new
- In the tag section, add a new tag for the release. The tag should use the version number with a
vprefix (for example,v0.1.0). Make sure to select themainbranch as the target. - In the release notes
- include proper nightly versions for
torchandtorchao, which can be found in latest CI test log "Run script in container" section. E.g.- "Successfully installed ...
torch-2.8.0.dev20250605+cu126" - "Successfully installed
torchao-0.12.0.dev20250605+cu126"
- "Successfully installed ...
- describe the release at a high level compared to the last release, e.g.
- "added an experiment for multimodal LLM training"
- or simply state "this is a regular release"
- include proper nightly versions for
- For now, choose "Set as a pre-release".
- In the tag section, add a new tag for the release. The tag should use the version number with a
- As we set up the GitHub workflow release.yml, it should trigger a GitHub action to update the torchtitan package on PyPI, which requires approval from one of the maintainers to run.
The general instruction on managing releases can be found here.
Nightly builds are automatically triggered by a nightly GitHub workflow and can be installed by
pip install --pre torchtitan --index-url https://download.pytorch.org/whl/nightly/cu126You can replace cu126 with another version of cuda (e.g. cu128) or an AMD GPU (e.g. rocm6.3).