Release notes#

AMD publishes two families of Primus training Docker image:

Image

Backends

Documented in

rocm/primus:<version>

Megatron-LM, TorchTitan, Megatron Bridge

Megatron-LM, TorchTitan

rocm/jax-training:maxtext-<version>

MaxText (JAX)

JAX MaxText

The two families share a version number but are not built in lockstep — the same vNN.N tag can be weeks apart between families, and the MaxText family also ships patch releases (v26.3.1, v26.3.2) with no rocm/primus counterpart. Always read the section for the exact tag you are running.

This page is the single source of truth for image contents. Other pages link here instead of repeating version tables, so there is exactly one place to update per release. If you add a page that names an image tag, link to the relevant section below rather than restating the stack.

Every version below was read out of the published image itself. From v26.4 on, the values were additionally cross-checked against the release Dockerfiles in .github/workflows/docker-release/; earlier releases predate those files and are image-derived only. See Verifying the stack in an image to reproduce any table.


Highlights for v26.10#

Both images are now on ROCm 10.3 nightlies. rocm/primus moves from a ROCm 10.2 nightly to a 10.3 one (10.3.0a20261111), with a PyTorch 2.16 pre-release built for it and a Transformer Engine 2.21 development build, still built from source. On the Primus side it moves Megatron-LM to core_v0.19.2 and adds DLRMv4 on a new recommendation backend, the AMDiffusionBenchmark workloads on Primus’s own diffusion backend, and the Inkling model. It also adds MiniMax-M3.1-Flash recipes for MI355X and new WAN and AutoModel diffusion training paths, which this release’s QA did not cover. rocm/jax-training:maxtext stays on JAX 0.12.0 and the ROCm 10.3 nightly line, rebuilt on a newer nightly (10.3.0a20261109) with a Transformer Engine 2.21 development build tagged for that same nightly. It moves MaxText to release/v26.10 and adds Primus-Turbo for JAX, which together make dropless MoE recipes the default for Qwen3-30B-A3B, DeepSeek-V2-16B, and Gemma4-26B. The two images were built from different commits on release/v26.10, b66e63e1 and 31128a29—see Primus source for v26.10.

Both families#

  • The tools/perf runners no longer need privileged containers. Containers start without --privileged and CAP_SYS_ADMIN, so the runners work on clusters whose docker refuses both. Note the behavior change: perf runs use tools/perf/primus-cli.yaml and no longer load ~/.primus.yaml; set PRIMUS_CLI_CONFIG=~/.primus.yaml to keep using it (#1442).

  • The pretrain prepare step honors DATA_PATH. It used ./data/ unless --data_path was passed, ignoring the DATA_PATH environment variable that the docs use; --data_path still takes precedence, and a relative value resolves against the launch directory (#1414).

rocm/primus — Megatron-LM and TorchTitan#

Changes you might need to act on#

  • Megatron-LM moves to core_v0.19.2, with Primus ported to it (#1321, #1370). Three keys in trainer_base.yaml take Megatron 0.19’s names (use_gloo_process_groups, fp4_param_gather, muon_nesterov), scatter_gather_tensors_in_pipeline and tiktoken_special_tokens are gone, and Muon on this Megatron needs Emerging-Optimizers v0.3.1, which the Muon install hook now installs, replacing an older copy (#1388). Update local configs that set the old keys.

  • Megatron uses a Triton fused AdamW by default (use_triton_fused_adam: true). It falls back to Transformer Engine’s FusedAdam for every path it does not implement and keeps the same checkpoint state layout; set the flag to false to keep FusedAdam (#1190).

  • The GPT-OSS presets match the published architecture. gpt_oss_20B and gpt_oss_120B no longer add a shared expert that GPT-OSS does not have, and take the MLPerf GPT-OSS recipe’s RoPE base and router settings (no load-balancing loss). Every GPT-OSS example now trains a different model than in v26.9, and its reported TFLOP/s per GPU drops because the shared expert’s FLOPs are no longer counted; compare with older runs by tokens/s (#1381).

  • Native Hugging Face → Megatron conversion writes torch_dist by default, so one conversion loads at any TP, PP, or EP; experiments that set ckpt_format: torch still get the legacy layout. The default output directory now names the format, so the first run after upgrading converts once more (#1406).

  • The AutoModel backend is renamed automodel (from nemo_automodel, which still works with a deprecation warning), and the newer AutoModel it pins renames config keys: optim.learning_rate is now optimizer.lr, optim.optimizer.* is optimizer.*, and step_scheduler.log_every is step_scheduler.log_remote_every_steps. AutoModel rejects the old keys at startup, so update out-of-tree configs (#1314).

New features#

  • DLRMv4 on a new recommendation backend (framework: recommendation): the HSTU ranker of MLPerf Training dlrmv4, trained on Yambda-5b, with MI355X MLPerf recipes for 1, 2, and 4 nodes (#1435). A synthetic_data: true option trains on generated data in the real dataset’s layout, with no dataset download, and BF16 configs for MI300X, MI325X, and MI355X plus an FP8 config for MI355X go into the tools/perf catalog (#1499). See the DLRMv4 guide.

  • The AMDiffusionBenchmark workloads run on Primus’s diffusion backend: FLUX.1-dev, SDXL, Mochi-1, HunyuanVideo, and Wan 2.1 image-to-video, each with benchmark_*-posttrain.yaml recipes for MI300X, MI325X, and MI355X (#1341, #1344, #1379, #1391). The recipes skip the final model save, which nothing reads; set SAVE_STRATEGY=dit_only to keep it (#1459).

  • Inkling (model_type: inkling), the text backbone of Thinking Machines’ Inkling-Small and Inkling, on the Megatron backend (#1256), with Primus-Turbo grouped GEMM, GEMM, DeepEP, and RMSNorm and BF16 and FP8 recipes for the 6-layer Large proxy on MI355X (#1388). Inkling now saves, resumes, and converts torch_dist checkpoints; tensor parallelism is rejected at startup (#1487). Multi-node recipes run the full Inkling-Small on 4 nodes and the full 66-layer Inkling on 16 nodes, each in BF16 and FP8 (#1485); they are not covered by this release’s QA, which ran the 6-layer proxy.

  • MiniMax-M3.1-Flash on MI355X: BF16 and FP8 recipes for the new minimax_m3.1_flash preset, which keeps MiniMax-M3’s shapes and runs MiniMax Sparse Attention in all 60 layers, plus an 8-layer single-node BF16 proxy (#1418). Not covered by this release’s QA.

  • WAN 2.1 / 2.2 video DiT training on Megatron-Core: the WAN video diffusion transformer on the Megatron backend, trained from pre-encoded latents, with three MI355X WAN 2.1 text-to-video 1.3B recipes (Transformer Engine, Primus-Turbo local spec, and MXFP4 backward) and a Hugging Face → Primus checkpoint converter. Tensor, pipeline, and context parallelism are fixed at 1, and WAN 2.2 A14B trains as one job per expert (#1132). Not covered by this release’s QA.

  • AutoModel diffusion training paths: FLUX.1 (dev and schnell) and Wan 2.2 training with synthetic-data presets (#1322); Ideogram-4 text-to-image training with var-len attention, an encoded-data cache, ZeRO-1, and context parallelism (#1324); Megatron-FSDP for the diffusion recipe (#1401); and opt-in Primus-Turbo attention and FP8 / MXFP4 linear swaps (#1323), with Turbo attention now also under context parallelism (#1420). MI355X examples are under examples/automodel/configs/MI355X/diffusion/. Not covered by this release’s QA.

  • Turbo grouped-GEMM MoE checkpoints reshard. Every MoE model with use_turbo_grouped_gemm now writes its experts to torch_dist checkpoints in Transformer Engine’s per-expert layout, so a run can resume at a different PP or EP with a fully reshardable optimizer state, and checkpoints load in either direction between Turbo and Transformer Engine experts (#1487).

  • SpecForge online training on a single node (specforge_online.single_node), with capture now through SGLang’s capture plugin (#1421, #1392).

  • Opt-in QK-Norm on MLA’s rotary component (mla_rope_qk_norm), which stops a divergence seen in KDA/MLA hybrids; it adds no parameters, so existing checkpoints resume unchanged (#1176).

Performance#

  • ZAYA1-8B runs faster. New kernel paths (flash attention and compiled convolutions for CCA, compiled norm and MoE chains, sort-based dispatch, and Primus-Turbo grouped-GEMM experts) are off by default and turned on in the MI355X and MI325X BF16 and FP8 recipes (#1500, #1501). The MI325X GPT-OSS-20B recipes take the MI300X tuning (#1354).

  • Shorter Megatron launches. The patch step no longer builds apex extensions a run does not use, and the filelock debug lines are gone from the logs (#1273).

  • No graph break in RowParallelLinear under torch.compile, from a deprecation warning Dynamo could not trace; set PRIMUS_TP_GROUP_TRACE_FIX=0 to restore it (#1169).

  • Opt-in MoE and MXFP4 work: moe_router_grad_merge folds the router’s input gradient into the experts’ in one kernel (#1372), and de-oscillation state views align with the MXFP4 quantization tiles (#1371).

Bug fixes#

  • Supervised fine-tuning without sequence packing now trains on the response tokens. The loss mask was one position off: the first response token was never a target, and the token after the response was, so models with a dedicated pad token learned to emit it after every answer. The unpacked path now also appends a supervised EOS, so every tokenizer learns to stop (#1404).

  • Megatron Bridge: with transformers 5.x, models such as Qwen3 were built with the configuration class’s default RoPE base instead of the checkpoint’s; they now use the checkpoint’s (#1297). Packed SFT of text-only models with pad_to_max_length: false no longer fails at the first step (#1298).

  • fp8_recipe: delayed runs no longer crash early. Prefetched batches could be overwritten while still in use, which faulted in the first backward pass (#1281), and middle pipeline stages failed at iteration 1 with TP 1 and PP 3 or more (#1336).

  • Muon with Primus-Turbo grouped-GEMM experts is rejected at startup. Muon only orthogonalizes 2-D weights, so the stacked expert weights were silently trained with Adam (#1388).

  • Flux sensitive layers stay out of FP8 and MXFP4. sensitive_layers_enabled did not keep the first and last layers in bf16 on the Transformer Engine spec, nor under FP8 on the local spec. Configs it cannot honor on the Transformer Engine spec are now rejected (#1204).

  • Smaller fixes: Megatron and Megatron Bridge import on PyTorch builds that no longer export torch.jit.script (#1457); the MI355X Zebra-Llama MLA recipes run MLA attention through Transformer Engine (#1470); the masked flow-matching loss is averaged over elements (#1200); Primus imports newer Primus-Turbo builds from a TURBO_DIR checkout (#1382); and the Zebra-Llama Hugging Face converter wrapper points at a KDA checkpoint (#1262).

rocm/jax-training:maxtext — MaxText#

  • Dropless MoE recipes are the default for Qwen3-30B-A3B, DeepSeek-V2-16B, and Gemma4-26B on MI300X, MI325X, and MI355X. They drop no tokens and run the expert matmuls on the Primus-Turbo grouped GEMM: hipBLASLt on MI300X and MI325X, FlyDSL on MI355X, where the FP8 recipes quantize the grouped GEMM to per-tensor FP8. They are faster than the token-dropping recipes they replace, which stay available as <model>-bf16-token_dropping-pretrain.yaml (and <model>-fp8-token_dropping-pretrain.yaml on MI355X). The Mixtral and nanoo_fp8 recipes are unchanged. Scripts that name <model>-bf16-pretrain.yaml now run the dropless recipe, so results are not comparable with v26.9 runs of the same file name (#1450).

  • The dropless recipes raise XLA’s first-collective timeout. They set --xla_gpu_first_collective_call_terminate_timeout_seconds=900, because on the current XLA the first collective of a run can start more than 40 s late on one GPU and the default limit then aborts the run. Keep the flag in configs derived from them (#1450).

  • MaxText moves to release/v26.10 (2fb48f50): 12 ROCm commits on the same upstream base as v26.9, adding the Primus-Turbo grouped GEMM path for MoE (CK, hipBLASLt, and FlyDSL backends, optional per-tensor FP8), ring-of-experts support for it, and saving the router’s top-k ids across rematerialization. The new config keys use_turbo_grouped_gemm (default false), turbo_grouped_gemm_backend (default ck), and turbo_grouped_gemm_quant (default bf16) are additive; no key is removed or renamed (#1443).

  • The MI325X Llama-2 7B and 70B nanoo_fp8 recipes no longer run out of memory at the first training step: their per-device batch sizes drop from 18 to 17 and from 22 to 20 (#1453).


v26.10 (current)#

Both v26.10 images are now released. rocm/jax-training:maxtext-v26.10 came first and rocm/primus:v26.10 followed; they were built from different commits on release/v26.10—see Primus source for v26.10.

rocm/primus:v26.10#

Megatron-LM, TorchTitan, and Megatron Bridge backends.

Image ID

3a39815f485e

Built

2026-11-23

Size

61 GB

Manifest

a1bf6505efa1eab3b7b6ab3334bd12d31b0c44e6

Dockerfile

Dockerfile.primus-v26.10

Software component

Version

ROCm

10.3.0a20261111

Python

3.12.3

PyTorch

2.16.0a0+rocm10.3.0a20261111

Transformer Engine

2.21.0.dev0+b5c00f432

Flash Attention

2.8.4

hipBLASLt

1.5.0-2d3b6e98

Triton

3.9.0+gitb7ddcf86.rocm10.3.0a20261111

RCCL

2.32.3

torchvision

0.30.0a0+rocm10.3.0a20261111

torchaudio

2.11.0a0+rocm10.3.0a20261111

APEX

1.16.0a0+rocm10.3.0a20261123

AITER

0.1.29

Primus-Turbo

0.6.1.dev27

torchao

0.15.0+gite9c7bead9

FBGEMM

2026.11.23

mamba-ssm / causal-conv1d / grouped_gemm

2.3.1 / 1.5.0.post8 / 1.1.4

transformers / datasets

5.10.0 / 5.0.1

NumPy

2.5.5

Both images are now on ROCm 10.3 nightlies, and not the same one. rocm/primus:v26.10 takes ROCm 10.3.0a20261111 from nightly.repo.amd.com, where v26.9 used the 10.2 nightly 10.2.0a20261020; PyTorch, torchvision, torchaudio, and Triton are the matching pre-release builds from the nightly PyTorch index, on the same base versions as in v26.9 (Triton from a different commit). rocm/jax-training:maxtext-v26.10 takes ROCm 10.3.0a20261109. hipBLASLt differs between the two images as a result; RCCL is 2.32.3 in both.

Transformer Engine is still built from source, now a 2.21 development build. It comes from ROCm/TransformerEngine at b5c00f43 (it reports 2.21.0.dev0+b5c00f432). Flash Attention is the same ROCm/flash-attention fork commit as in v26.9 (tag v2.8.4.1-cktile, reported as 2.8.4), rebuilt for ROCm 10.3.

The MI355X Zebra-Llama MLA recipes run MLA attention through Transformer Engine. On gfx950, the backward pass of this image’s Flash Attention build is much slower for those layers than v26.9’s, so zebra_llama_mamba_1B, zebra_llama_mamba_3B, zebra_llama_mamba_8B, and zebra_llama_kda_1B on MI355X set PRIMUS_FLA_MLA_ATTN: "0" in their env: block, which overrides the image’s PRIMUS_FLA_MLA_ATTN=1 (#1470). MI300X and MI325X are not affected. Keep the setting in configs derived from those recipes. Likewise, SDXL runs its unmasked bf16 attention on PyTorch SDPA instead of aiter, whose attention backward in this image is slow for SDXL’s shapes on gfx950 (#1477).

The APEX row reads ahead of the image’s ROCm. The Dockerfile installs apex unpinned from the nightly PyTorch index, which resolved to 1.16.0a0+rocm10.3.0a20261123, a build against a later ROCm 10.3 nightly than the image’s 10.3.0a20261111.

/workspace/AMDiffusionBenchmark is no longer in the image. The five AMDiffusionBenchmark workloads (FLUX.1-dev, SDXL, Mochi-1, HunyuanVideo, Wan 2.1 I2V) now run on Primus’s own diffusion backend from the examples/diffusion/configs/<GPU>/benchmark_*-posttrain.yaml recipes. /workspace/DLRMBenchmark is still there.

The image carries Primus at its build commit. /workspace/Primus is at b66e63e1 and /workspace/Primus-Turbo at 9ad9d38d. A release/v26.10 checkout is still the recommended way to run it—see Primus source for v26.10.

rocm/jax-training:maxtext-v26.10#

MaxText (JAX) backend.

Image ID

cba61cee9442

Built

2026-11-16

Size

56.2 GB

Manifest

1e84cb0e419c65707cf7fca5454161ccf8fa4b07

Dockerfile

Dockerfile.jax-v26.10

Software component

Version

ROCm

10.3.0a20261109

Python

3.12.3

JAX / jaxlib

0.12.0

jax-rocm10-pjrt / jax-rocm10-plugin

0.12.0+rocm10.3.0a20261109

Transformer Engine

2.21.0.dev0+rocm10.3.0a20261109.4c7ed18

hipBLASLt

1.5.0-60b43a5a

RCCL

2.32.3

Flax

0.12.10

TensorFlow

2.21.0

Optax / Orbax / Grain / tensorstore

0.2.9 / 0.12.11 / 0.2.18 / 0.1.86

MaxText

2fb48f50

transformers / datasets

4.57.3 / 5.0.1

NumPy

2.5.5

A newer build of the same ROCm nightly line, and Transformer Engine now matches it. The image takes ROCm 10.3.0a20261109, where v26.9 used 10.3.0a20261026; the JAX plugin pair is rebuilt for it and JAX stays at 0.12.0. Transformer Engine moves to a 2.21 development build from the ROCm frameworks staging index, tagged for the image’s own nightly (rocm10.3.0a20261109), where v26.9’s 2.19 build was tagged for an older 10.2 nightly.

rocm/jax-training:maxtext-v26.10 adds Primus-Turbo for JAX. /workspace/Primus-Turbo (fe9229ef) is built for gfx942 and gfx950 with its grouped GEMM backends: hipBLASLt on MI300X and MI325X (with CK as the fallback), and FlyDSL or hipBLASLt on MI355X, with FlyDSL 0.3.4.1 installed for it. With MaxText release/v26.10 this is what the new default dropless MoE recipes need. It is installed from source and reports its version as 0.0.0.

The image carries Primus at its build commit. /workspace/Primus is at 31128a29, next to MaxText at /workspace/maxtext (2fb48f50, release/v26.10, also set as MAXTEXT_PATH) and MaxDiffusion at /workspace/maxdiffusion (68e06965, as in v26.9). A release/v26.10 checkout is still the recommended way to run it—see Primus source for v26.10.

Note: transformers is 4.57.3 in the MaxText image because the published tag includes the MaxDiffusion stage, which pins transformers back to 4.x for Flax CLIP / T5. The build-time manifest records 5.17.0, captured before that stage runs; 4.57.3 is what you actually get (huggingface-hub 0.36.2 and tokenizers 0.22.2 move back with it). The same stage pins datasets to 5.0.1, a release that still accepts that huggingface-hub; the manifest records 4.8.5.

Primus enables Shardy by default (shardy: true in its MaxText module config). Leave it on. See the Shardy guide for JAX users.

Primus source for v26.10#

Use the release/v26.10 branch for both images:

git clone --recurse-submodules https://github.com/AMD-AGI/Primus.git
cd Primus
git checkout release/v26.10
git submodule update --init --recursive

Build commit

b66e63e1 (2026-11-19) for rocm/primus:v26.10, 31128a29 (2026-11-16) for rocm/jax-training:maxtext-v26.10, both on release/v26.10

Branch tip

582f042d (2026-11-20)

Megatron-LM

4b4acac9

TorchTitan

73a0e697

Megatron Bridge

9577b128

MaxText

2fb48f50

Emerging-Optimizers

1f29ffd2

HummingbirdXT

ed7b7bd0

HunyuanWorld-Mirror

c61300e4

The pins are the same at both build commits. Since v26.9, MaxText moved to release/v26.10 (#1443), Megatron-LM to core_v0.19.2 (#1321), Emerging-Optimizers to v0.3.1, which Muon needs on that Megatron-LM (#1388), and AutoModel (third_party/Automodel, now d7ada67a) to a newer commit; TorchTitan, Megatron Bridge, HummingbirdXT, and HunyuanWorld-Mirror are on the same commits.

Use a release/v26.10 checkout rather than the copy baked into either image.

  • rocm/primus:v26.10 was built from b66e63e1 and rocm/jax-training:maxtext-v26.10 from 31128a29; each carries its own build commit at /workspace/Primus.

  • The commits between 31128a29 and b66e63e1 are PyTorch-family changes only: among them Inkling multi-node recipes and checkpointing, MLA attention through Transformer Engine in the MI355X Zebra-Llama recipes, SDPA attention for SDXL, the ZAYA1-8B speedups, and the DLRMv4 synthetic-data benchmarks.

  • release/v26.10 has moved since the PyTorch build: it is now at 582f042d (2026-11-20), which adds a fix to the tools/perf runner: batch sizes written as ${VAR:default} are resolved, and log names stay filename-safe (#1510). The branch checkout includes it; the in-image copies do not.

  • The MaxText recipes were validated on rocm/jax-training:maxtext-v26.10 from a release/v26.10 checkout at bc8ffa4b, which differs from that image’s build commit only in PyTorch-family changes.

  • The MaxText image’s /workspace/maxtext (2fb48f50) matches the branch’s third_party/maxtext.

Changes since v26.9#

rocm/primus:

Component

v26.9

v26.10

ROCm

10.2.0a20261020

10.3.0a20261111

PyTorch

2.16.0a0+rocm10.2.0a20261020

2.16.0a0+rocm10.3.0a20261111

Transformer Engine

2.20.0.dev0+023639b51

2.21.0.dev0+b5c00f432

hipBLASLt

1.5.0-cb261897

1.5.0-2d3b6e98

Triton

3.9.0+gitfc8d31a5.rocm10.2.0a20261020

3.9.0+gitb7ddcf86.rocm10.3.0a20261111

torchvision

0.30.0a0+rocm10.2.0a20261020

0.30.0a0+rocm10.3.0a20261111

torchaudio

2.11.0a0+rocm10.2.0a20261020

2.11.0a0+rocm10.3.0a20261111

APEX

1.16.0a0+rocm10.3.0a20261029

1.16.0a0+rocm10.3.0a20261123

AITER

0.1.27

0.1.29

Primus-Turbo

0.6.1.dev4

0.6.1.dev27

FBGEMM

2026.10.30

2026.11.23

NumPy

2.5.4

2.5.5

Image size

60.5 GB

61 GB

rocm/jax-training:maxtext:

Component

v26.9

v26.10

ROCm

10.3.0a20261026

10.3.0a20261109

jax-rocm10-pjrt / jax-rocm10-plugin

0.12.0+rocm10.3.0a20261026

0.12.0+rocm10.3.0a20261109

Transformer Engine

2.19.0.dev0+rocm10.2.0a20261002.bfe94fb

2.21.0.dev0+rocm10.3.0a20261109.4c7ed18

hipBLASLt

1.5.0-565c4c74

1.5.0-60b43a5a

Optax / Orbax / Grain / tensorstore

0.2.8 / 0.12.8 / 0.2.18 / 0.1.86

0.2.9 / 0.12.11 / 0.2.18 / 0.1.86

MaxText

8d1d43c0

2fb48f50

transformers / datasets

4.57.3 / 4.8.5

4.57.3 / 5.0.1

NumPy

2.5.4

2.5.5

Image size

50.0 GB

56.2 GB


v26.9#

Highlights for v26.9#

Both families move to ROCm nightlies. rocm/primus moves from the ROCm 10.1.0 release to a ROCm 10.2 nightly (10.2.0a20261020), with a PyTorch 2.16 pre-release and a Transformer Engine 2.20 development build, still built from source. rocm/jax-training:maxtext moves to a ROCm 10.3 nightly (10.3.0a20261026) with JAX 0.12.0, a Transformer Engine 2.19 development build, and MaxText release/v26.9, and ships a copy of Primus again. Both images were built from the same Primus commit, db1a4160 on release/v26.9—see Primus source for v26.9.

Both families#

  • A convergence test for Megatron and MaxText. tools/convergence_test/ builds a dataset from a real corpus, lints the config for settings that silently spoil a convergence run (mock or synthetic data, forced load balancing, vocab mismatches), trains through the normal primus-cli path, plots the loss, and gates it against a previous release’s baseline (#1229). It ships Llama-3.2-1B, Llama-2-7B, and Mixtral-8x7B recipes for both backends, plus a MaxText Llama-2-7B FP8 recipe for MI355X (#1261).

  • The tools/perf batch runner is ready for unattended runs. Each run is bounded by MAX_RUN_SECONDS (default 1 h) and MAX_IDLE_SECONDS (default 20 min); busy GPUs and bad network interfaces are refused up front; failures are classified with the log line that shows them; every result records the image, host, and platform it came from; diffusion and DLRM benchmarks join the batch; and results go into an Excel report that can compare against a baseline (#1260, #1266, #1299). Two misreported throughput values are fixed: TorchTitan values printed with a thousands separator, and Megatron-Bridge’s post-training estimate. Note the behavior changes: single-node runs now time out, output files have fixed names, and the runners exit non-zero when any run fails.

  • Release benchmark suites in the auto-benchmark menu. One choice detects the GPU and runs the whole Primus suite (Megatron, Megatron Bridge, TorchTitan) or JAX suite (MaxText, MaxDiffusion), recording the image digest, Primus commit, and submodule pins with every result (#1251).

  • A preset HIP_VISIBLE_DEVICES is kept. The runner used to overwrite it with 0..GPUS_PER_NODE-1, so on a shared node a job could land on another user’s GPU; it now keeps your selection and warns when its count differs from GPUS_PER_NODE (#1237).

rocm/primus: Megatron-LM and TorchTitan#

Changes you might need to act on#
  • Mock-data runs use the model’s real vocabulary. Megatron mock data used to size every model for a 131,072-token vocabulary; each model config now sets its real vocab_size, so embeddings, output layer, and logits have their true size. Mock-data throughput and memory are therefore not comparable with earlier releases (#1249).

  • Megatron-only example material moved under examples/megatron/. For example examples/deepseek-v4/ is now examples/megatron/models/deepseek-v4/, and examples/moe_package/ is now examples/megatron/guides/moe_package/; examples/mlperf/ and examples/hardware_configs/ stay where they were. Update scripts that name the old paths (#1130).

  • Some environment switches are now config keys, and the old variables do nothing. PRIMUS_FUSED_QK_RMSNORM_ROPE is replaced by use_turbo_fused_qk_rmsnorm_rope (#1247); PRIMUS_TURBO_CROSS_ENTROPY and PRIMUS_TURBO_CE_OVERWRITE_INPUT by use_turbo_cross_entropy and turbo_ce_overwrite_input (#1245); the MoE gather-quantization variables by moe_permute_quant_fusion, moe_backward_permute_quant_fusion, and moe_skip_identity_sort (#1241).

  • Transformer Engine fused cross entropy reuses the logits buffer by default (te_ce_overwrite_input: true), so after the loss backward the logits tensor holds its gradient. Set it to false when the same logits feed anything else in the step, such as a distillation or auxiliary loss, metrics, or hooks (#1287).

  • TorchTitan uses a Triton fused AdamW by default (optimizer.use_triton_fused_adam: true). Checkpoints stay interchangeable with torch.optim.AdamW; set the flag to false to go back to it. Reading optimizer.state directly between steps now shows stale step values (#1233).

  • Turbo grouped GEMM expects expandable segments. Primus warns when use_turbo_grouped_gemm is on without expandable_segments:True, and a runner hook stops the launch when expandable_segments:True is requested but not in effect on the PyTorch build (#1257).

New features#
  • GLM-5.3-Flash (model_type: glm5_next): KDA linear attention, DSA sparse attention, and manifold-constrained hyper-connections with a 288-expert MoE, an MI355X BF16 recipe, and online loading of the released Hugging Face checkpoint for any TP / EP / PP layout (#1230). Packed sequences now run under context parallelism (#1265) and text-only checkpoint exports load (#1254). Training was validated on an 8-layer proxy; the full 45-layer model was checked forward-only against SGLang, and its DSA indexer is frozen.

  • ZAYA1-8B FP8 recipes for MI300X, MI325X, and MI355X (fp8: hybrid, tensorwise scaling, accurate from a cold start) and an MI325X BF16 recipe (#1269); the MI355X micro-batch sizes now fill that GPU’s memory (#1279).

  • HunyuanWorld-Mirror post-training, stage 1 (geometry heads) and stage 2 (Gaussian head), with MI355X configs launched through train posttrain. The upstream trainer is the new third_party/HunyuanWorld-Mirror-rocm submodule; Primus applies ROCm fixes at runtime (#1242).

  • MiniMax-M3 on MegaMoE. The fused MegaMoE expert layer accepts MiniMax-M3’s swigluoai activation and matches the DeepEP path’s loss (#1243).

  • Opt-in fusions: Primus-Turbo fused cross entropy for TP1 training (#1245); FlyDSL Q/K RMSNorm + RoPE and residual RMSNorm + MXFP4 QKV fusions for GPT-OSS (#1208), with the fused Q/K RMSNorm + RoPE now also covering head dimension 128 (#1247); and gradient reduce-scatter on the GPU’s copy engines (MEGATRON_GRAD_REDUCE_BACKEND=rccl_sdma, which needs an RCCL build with CE ReduceScatter) (#1207).

  • gfx1250 FP8 hybrid LoRA SFT proxies for Llama-2-70B, Qwen2.5-72B, and Qwen3-235B-A22B on one GPU (#1248).

Performance#
  • Optimizer and MoE kernel work, opt-in: gradient clipping and BF16 Adam moments fused into the Adam update (#1219), fused MXFP4 weight de-oscillation (#1222), BF16 router backward GEMMs (moe_router_bwd_bf16, #1240), and MoE gathers folded into Primus-Turbo MXFP4 quantization (#1241).

  • Qwen3-30B-A3B FP8 on MI355X moves to Primus-Turbo tensorwise FP8 with the Turbo grouped-MLP, activation, and permute fusions (#1247).

  • Tuned configs: MI355X GPT-OSS-20B, DeepSeek-V2-Lite, Llama 70B, Qwen, Mixtral, and TorchTitan Llama recipes (#1218, #1252, #1349); MI300X GPT-OSS-20B and Llama 70B (#1307, #1332, #1304); MI325X Llama 70B and ZAYA1-8B (#1318). Two of these change more than speed: MI355X DeepSeek-V2-Lite BF16 now uses MLA, the model’s real attention, and MI355X GPT-OSS-20B FP8 trains with global batch 96 instead of 80 (#1252).

Bug fixes#
  • Stale expert weights with the fused grouped MLP. With turbo_fused_grouped_gemm and overlap_param_gather, the fused op skipped the hooks that wait for the expert-weight all-gather, so whenever expert data parallelism exceeded one it read partly stale weights: no error and no NaN, just a drifting loss (#1252).

  • Forced “even” routing under DeepEP. With DeepEP on, most routed slots received weight 0 and the MoE output collapsed toward the shared expert; the router now does the remap itself (#1243).

  • MoE recipes no longer force the DeepEP cheap fence. v26.8 recipes set PRIMUS_TURBO_DEEPEP_DISABLE_CHEAP_FENCE=0, which could corrupt DeepEP dispatch-backward rows; the variable is removed from the 13 MI355X and MI325X recipes that set it (#1236).

  • MoE models no longer hang on hosts with an amdgpu DRM interface older than 3.64. A runner hook detects such hosts and keeps HIP memory pools off virtual-memory mappings (#1302).

  • DeepSeek-V4 hyper-connections contract on the same axis as the inference kernels; the old convention drifted from SGLang by more with every layer (#1040).

  • TorchTitan: DeepSeek blocks are compiled inside their activation-checkpoint wrappers, so with full checkpointing the MoE block no longer runs eagerly (#1320); and the Primus-Turbo attention converter applies only when both enable_primus_turbo and use_turbo_attention are on, fixing a TypeError on the first forward otherwise (#1234).

  • Smaller fixes: the Turbo FP8 weight cache is stored in the operator’s padded layout (#1333), and enable_turbo_attention_float8 no longer fails on its first call (#1247).

rocm/jax-training:maxtext: MaxText#

  • The image ships Primus again. /workspace/Primus is at db1a4160, the commit the image was built from; a release/v26.9 checkout is still recommended—see Primus source for v26.9.

  • MaxText moves to release/v26.9 (8d1d43c0), carrying the same ROCm patches as v26.8 on newer upstream. Upstream drops the retry_when_tokens_dropped config key, so remove it from any local config, and renames the cosmos3-*-reasoner model configs to weaver-max / weaver-mini (#1316).

  • XLA autotuning defaults to level 3. At Primus’s previous default, level 4, the autotuner’s correctness checks intermittently aborted compilation of the train step on GPU 0; level 3 keeps autotuning and drops only those checks. Set XLA_GPU_AUTOTUNE_LEVEL=4 to restore the old default (#1316).

  • Transformer Engine’s per-call return_max_logit warning is silenced. It was printed on every backward attention call, per layer, per GPU, and per step; Primus now passes the same fallback value TE was using, so numerics are unchanged (#1316).

  • MaxText runs on real data no longer stop before the first step. Grain data-loader workers read absl flags that Primus had left unparsed, and MaxText reported the error as a graceful stop: zero steps trained, exit status 0. Synthetic-data runs, including the benchmark configs, were not affected (#1229).

  • Recipe fixes: the MI300X Wan2.1-1.3B and MI355X Mixtral-8x7B FP8 out-of-memory errors are fixed, and FLUX.1-dev is retuned on MI300X and MI355X (#1338, #1349).

  • Primus Projection gains a MaxText/JAX backend (#1232). Its benchmark path has so far been verified on CPU only.

rocm/primus:v26.9#

Megatron-LM, TorchTitan, and Megatron Bridge backends.

Image ID

cd678296ff5b

Built

2026-10-30

Size

60.5 GB

Manifest

8c8b5b3d977cfd4f746ba6cdd96731a894995bc0

Dockerfile

Dockerfile.primus-v26.9

Software component

Version

ROCm

10.2.0a20261020

Python

3.12.3

PyTorch

2.16.0a0+rocm10.2.0a20261020

Transformer Engine

2.20.0.dev0+023639b51

Flash Attention

2.8.4

hipBLASLt

1.5.0-cb261897

Triton

3.9.0+gitfc8d31a5.rocm10.2.0a20261020

RCCL

2.32.3

torchvision

0.30.0a0+rocm10.2.0a20261020

torchaudio

2.11.0a0+rocm10.2.0a20261020

APEX

1.16.0a0+rocm10.3.0a20261029

AITER

0.1.27

Primus-Turbo

0.6.1.dev4

torchao

0.15.0+gite9c7bead9

FBGEMM

2026.10.30

mamba-ssm / causal-conv1d / grouped_gemm

2.3.1 / 1.5.0.post8 / 1.1.4

transformers / datasets

5.10.0 / 5.0.1

NumPy

2.5.4

Both families run on ROCm nightlies this release, and not the same one. rocm/primus:v26.9 takes ROCm 10.2.0a20261020 from nightly.repo.amd.com, where v26.8 used the 10.1.0 release from stable.repo.amd.com; PyTorch, torchvision, and torchaudio are the matching pre-release builds from the nightly PyTorch index. rocm/jax-training:maxtext-v26.9 takes ROCm 10.3.0a20261026. hipBLASLt differs between the two images as a result; RCCL is 2.32.3 in both.

Transformer Engine is still built from source. It comes from ROCm/TransformerEngine at 023639b5 (it reports 2.20.0.dev0+023639b51). Flash Attention is unchanged: the ROCm/flash-attention fork at tag v2.8.4.1-cktile, reported as 2.8.4.

The APEX row reads ahead of the image’s ROCm. The Dockerfile installs apex unpinned from the nightly PyTorch index, which resolved to 1.16.0a0+rocm10.3.0a20261029, a build against a ROCm 10.3 nightly, on this ROCm 10.2 image.

rocm/jax-training:maxtext-v26.9#

MaxText (JAX) backend.

Image ID

2b6f7537faff

Built

2026-10-30

Size

50.0 GB

Manifest

aa44dbf5a9a7edc0fc76694adc624023df6c50e7

Dockerfile

Dockerfile.jax-v26.9

Software component

Version

ROCm

10.3.0a20261026

Python

3.12.3

JAX / jaxlib

0.12.0

jax-rocm10-pjrt / jax-rocm10-plugin

0.12.0+rocm10.3.0a20261026

Transformer Engine

2.19.0.dev0+rocm10.2.0a20261002.bfe94fb

hipBLASLt

1.5.0-565c4c74

RCCL

2.32.3

Flax

0.12.10

TensorFlow

2.21.0

Optax / Orbax / Grain / tensorstore

0.2.8 / 0.12.8 / 0.2.18 / 0.1.86

MaxText

8d1d43c0

transformers / datasets

4.57.3 / 4.8.5

NumPy

2.5.4

rocm/jax-training:maxtext-v26.9 contains Primus again. v26.8 shipped without it; this image has /workspace/Primus at db1a4160, the commit both images were built from, next to MaxText at /workspace/maxtext (8d1d43c0) and MaxDiffusion at /workspace/maxdiffusion (68e06965). A release/v26.9 checkout is still the recommended way to run it—see Primus source for v26.9.

Transformer Engine is a development build against an older nightly. TE 2.19.0.dev0 comes from the ROCm frameworks staging index and is tagged rocm10.2.0a20261002, while the image’s ROCm and its JAX plugin pair are 10.3.0a20261026.

Note: transformers is 4.57.3 in the MaxText image because the published tag includes the MaxDiffusion stage, which pins transformers back to 4.x for Flax CLIP / T5. The build-time manifest records 5.17.0, captured before that stage runs; 4.57.3 is what you actually get (huggingface-hub 0.36.2 and tokenizers 0.22.2 move back with it). The PyTorch image is on 5.10.0.

Primus enables Shardy by default (shardy: true in its MaxText module config). Leave it on. See the Shardy guide for JAX users.

Primus source for v26.9#

Use the release/v26.9 branch for both images:

git clone --recurse-submodules https://github.com/AMD-AGI/Primus.git
cd Primus
git checkout release/v26.9
git submodule update --init --recursive

Build commit

db1a4160 (2026-10-30), on release/v26.9

Branch tip

93dd9201 (2026-10-31)

Megatron-LM

d3528a21

TorchTitan

73a0e697

Megatron Bridge

9577b128

MaxText

8d1d43c0

Emerging-Optimizers

93d9eb3a

HummingbirdXT

ed7b7bd0

HunyuanWorld-Mirror

c61300e4

MaxText moved to release/v26.9 and HunyuanWorld-Mirror (third_party/HunyuanWorld-Mirror-rocm) is new since v26.8; Megatron-LM, TorchTitan, Megatron Bridge, Emerging-Optimizers, and HummingbirdXT are on the same commits.

Use a release/v26.9 checkout rather than anything baked into the images.

  • rocm/primus:v26.9 and rocm/jax-training:maxtext-v26.9 were both built from db1a4160, and both carry that commit at /workspace/Primus.

  • release/v26.9 has moved since the build: it is now at 93dd9201 (2026-10-31), which adds MI325X GPT-OSS-20B and ZAYA1-8B recipe tuning (#1355). The branch checkout includes it; the in-image copy does not.

  • The MaxText image’s /workspace/maxtext (8d1d43c0) matches the branch’s third_party/maxtext.

Changes since v26.8#

rocm/primus:

Component

v26.8

v26.9

ROCm

10.1.0

10.2.0a20261020

PyTorch

2.14.0+rocm10.1.0

2.16.0a0+rocm10.2.0a20261020

Transformer Engine

2.17.1+130099ce4

2.20.0.dev0+023639b51

hipBLASLt

1.4.1-39d8d603

1.5.0-cb261897

Triton

3.8.0+git669b31ac.rocm10.1.0

3.9.0+gitfc8d31a5.rocm10.2.0a20261020

RCCL

2.30.7

2.32.3

torchvision

0.29.0a0+rocm10.1.0

0.30.0a0+rocm10.2.0a20261020

torchaudio

2.11.0+rocm10.1.0

2.11.0a0+rocm10.2.0a20261020

APEX

1.14.0+rocm10.1.0

1.16.0a0+rocm10.3.0a20261029

AITER

0.1.22.post1

0.1.27

Primus-Turbo

0.5.1.dev7

0.6.1.dev4

FBGEMM

2026.10.8

2026.10.30

transformers / datasets

5.10.0 / 3.6.0

5.10.0 / 5.0.1

NumPy

2.5.3

2.5.4

Image size

56.4 GB

60.5 GB

rocm/jax-training:maxtext:

Component

v26.8

v26.9

ROCm

10.2.0a20260923

10.3.0a20261026

JAX / jaxlib

0.11.1

0.12.0

jax-rocm10-pjrt / jax-rocm10-plugin

0.11.1+rocm10.2.0a20260923

0.12.0+rocm10.3.0a20261026

Transformer Engine

2.18.0.dev0+rocm10.2.0a20260929.03afd8f

2.19.0.dev0+rocm10.2.0a20261002.bfe94fb

hipBLASLt

1.5.0-9bb8b541

1.5.0-565c4c74

RCCL

2.31.2

2.32.3

Flax

0.12.9

0.12.10

Optax / Orbax / Grain / tensorstore

0.2.8 / 0.12.6 / 0.2.18 / 0.1.85

0.2.8 / 0.12.8 / 0.2.18 / 0.1.86

MaxText

07c240fa

8d1d43c0

NumPy

2.5.3

2.5.4

Image size

43.9 GB

50.0 GB


v26.8#

Highlights for v26.8#

The two families split on ROCm. rocm/primus moves to the ROCm 10.1.0 release with PyTorch 2.14, and builds Transformer Engine and Flash Attention from source again. rocm/jax-training:maxtext moves to a ROCm 10.2 nightly (10.2.0a20260923) with JAX 0.11.1 and a Transformer Engine 2.18 development build, and no longer ships a copy of Primus: run it with a release/v26.8 checkout, which primus-cli container mounts for you. Bare-metal installs changed accordingly — see Bare-metal installation and the JAX guide.

Both families#

  • The examples/run_* launchers are retired in favour of ./primus-cli (#999). Callers that relied on the EXP / NNODES / DATA_PATH contract can use runner/helpers/launch/slurm_pretrain.sh. The Kubernetes submission client (examples/run_k8s_pretrain.sh) is removed, and the dataset-split seed flag is renamed --split_seed so Megatron’s --seed stays the training RNG.

  • Scientific-notation CLI overrides are parsed as numbers. --lr 1e-5 and similar used to reach the config as a string (#1112).

  • amd-smi is supported alongside the deprecated rocm-smi (#1134).

  • Primus Projection gains a TorchTitan backend (#1202).

  • New tooling: a non-interactive batch benchmark runner and result extractor for every backend, in single-node and Slurm modes (tools/perf, #1173).

rocm/primus: Megatron-LM and TorchTitan#

Changes you might need to act on#
  • Hybrid configs are named zebra_* again. v26.7 shipped them as hylo_*; v26.8 restores the Zebra-Llama name (for example hylo_llama_mamba_8B_BF16-pretrain.yaml is now zebra_llama_mamba_8B_BF16-pretrain.yaml, and the HyloLlama* classes are ZebraLlama*). Update any local config or script that names the old files (#1167).

New features#
  • ZAYA1-8B Megatron pretraining, with MI300X and MI355X mock-data configs. This ships on release/v26.8 from #1199, which is not yet merged to main.

  • MiniMax-M3 (text tower) with MiniMax Sparse Attention, in a reference PyTorch backend and a gfx950 FlyDSL backend. On an 8-layer proxy on 8× MI355X the FlyDSL backend runs at 380 TFLOP/s/GPU, twice as fast as the reference backend with an identical loss curve (#1197).

  • SDMA parameter gather for the Megatron distributed optimizer (#1128), enabled by default in the 1×8 MI355X GPT-OSS MLPerf recipe (#1168).

  • Fused grouped GEMM. turbo_fused_grouped_gemm now replaces the fc1 → GLU → fc2 chain with a single Primus-Turbo FP8/FP4 grouped-MLP call that also owns WGRAD (#1165).

  • Fused MXFP4 weight-gradient accumulation for non-preshuffled MXFP4 (#1174).

  • qk_clip (MuonClip) for hybrid models and the distributed optimizer (#1164), with the per-head max attention logit now exposed on the FLA fused attention path (#1162).

  • GPT-OSS-20B dense QKVO GEMMs run on Turbo FlyDSL in both the FP8 and MXFP4 recipes (#1127), on top of BF16 de-oscillation snapshots and a simplified 20B recipe (#1070).

  • Llama-3.1-8B FP4 building blocks — fused FP4 dense MLP, residual RMSNorm and skip-y — upstreamed from MLPerf, default-off (#1156).

  • New recipes: Qwen3-30B-A3B and Qwen2.5-72B MXFP4 pretraining on MI355X (#1119), Llama-3.1-8B BF16 LoRA-SFT on MI355X (#1113), and native LoRA-SFT proxies for gfx1250 (#1155).

  • SpecForge backend for speculative-decoding draft training, offline (#1139) and online with Mooncake + SGLang (#1191). It runs on its own ROCm runtime image; see the SpecForge guide.

Performance#
  • Fewer gradient-buffer clears and an isolated gradient reduce-scatter. Slices that Primus-Turbo’s expert WGRAD fully overwrites are no longer zeroed first, and the reduce-scatter runs on a dedicated RCCL group (#1186).

  • Cheaper MXFP4 de-oscillation, now quantized on the same scale grid as the forward pass (#1184).

  • Tuned configs: MI355X pretraining (#1218), and MI325X 70B/72B and MoE recipes (#1227).

Bug fixes#
  • Silent gradient corruption from a Triton buffer-store miscompile. Affected kernels are now detected and recompiled with buffer ops disabled, and TorchTitan restores eager precision semantics under torch.compile (#962).

  • DeepSeek-V4 reported TFLOPs 3.63× too high at the V4-Flash shape. Reporting only; training math is unchanged (#1158).

  • DeepSeek-V4 MegaMoE ignored turbo_mega_moe_precision, so mxfp8 runs silently stayed on BF16 experts (#1196).

  • TorchTitan GPT-OSS router bias is initialized after meta-device materialization, fixing non-finite router scores (#1183), and TorchTitan DeepSeek torch.compile is bounded at the routed experts (#1216, on release/v26.8).

  • Zebra-Llama KDA 1B no longer NaNs at iteration 1 on MI355X (#1215), and Zebra-Llama-Mamba 3B no longer OOMs on MI300X (#1209).

  • MI350X gets its own GPU env file, so PRIMUS_GPU_MODEL=MI350X no longer silently skips the gfx950 WarpSpeed setting and NaNs (#1178); the MXFP4 Transformer Engine settings move into the recipes’ env: blocks so primus-cli launches pick them up (#1179); and primus-cli now applies the FLA Triton autotune patch that prevents hybrid-model hangs (#1181). All three were also backported to release/v26.7.

  • Smaller fixes: the Flux validation loss is no longer rescaled in place (#1079), and Transformer Engine’s requantize_data no longer raises UnboundLocalError (#1108).

rocm/jax-training:maxtext: MaxText#

  • The image ships no Primus. Use release/v26.8 — see Primus source for v26.8.

  • MaxText moves to release/v26.8 (07c240fa, about 290 upstream commits). Upstream removed the Linen modules and with them the pure_nnx_decoder config key, which MaxText now rejects; the three MI325X nanoo_fp8 configs that still set it are fixed. Drop the key from any local config (#1228).

  • Three performance regressions on JAX 0.11.1 fixed with Primus-managed defaults: CUB radix sort is disabled for MoE top-k (about 0.8 s/step on DeepSeek-V2-16B), stream priority is honoured again so collectives overlap compute, and dynamic-slice fusion is disabled (about 10% on Llama-2-7B FP8). They need a release/v26.8 checkout, and can be overridden per config (#1228).

  • XLA_FLAGS precedence fixed. A config’s own XLA_FLAGS now beats the managed defaults instead of being silently overridden, and XLA_FLAGS_APPEND adds flags without replacing them (#1054).

rocm/primus:v26.8#

Megatron-LM, TorchTitan, and Megatron Bridge backends.

Image ID

e86c9bb570ec

Built

2026-10-08

Size

56.4 GB

Manifest

6025d2033abe4288c190d2db916bfeb2c9585d06

Dockerfile

Dockerfile.primus-v26.8

Software component

Version

ROCm

10.1.0

Python

3.12.3

PyTorch

2.14.0+rocm10.1.0

Transformer Engine

2.17.1+130099ce4

Flash Attention

2.8.4

hipBLASLt

1.4.1-39d8d603

Triton

3.8.0+git669b31ac.rocm10.1.0

RCCL

2.30.7

torchvision

0.29.0a0+rocm10.1.0

torchaudio

2.11.0+rocm10.1.0

APEX

1.14.0+rocm10.1.0

AITER

0.1.22.post1

Primus-Turbo

0.5.1.dev7

torchao

0.15.0+gite9c7bead9

FBGEMM

2026.10.8

mamba-ssm / causal-conv1d / grouped_gemm

2.3.1 / 1.5.0.post8 / 1.1.4

transformers / datasets

5.10.0 / 3.6.0

NumPy

2.5.3

rocm/jax-training:maxtext-v26.8#

MaxText (JAX) backend.

Image ID

8267d6a4a016

Built

2026-10-01

Size

43.9 GB

Manifest

73710dda449ad7aaf12207a984f986a53d1234e2

Dockerfile

Dockerfile.jax-v26.8

Software component

Version

ROCm

10.2.0a20260923

Python

3.12.3

JAX / jaxlib

0.11.1

jax-rocm10-pjrt / jax-rocm10-plugin

0.11.1+rocm10.2.0a20260923

Transformer Engine

2.18.0.dev0+rocm10.2.0a20260929.03afd8f

hipBLASLt

1.5.0-9bb8b541

RCCL

2.31.2

Flax

0.12.9

TensorFlow

2.21.0

Optax / Orbax / Grain / tensorstore

0.2.8 / 0.12.6 / 0.2.18 / 0.1.85

MaxText

07c240fa

transformers / datasets

4.57.3 / 4.8.5

NumPy

2.5.3

The two families are on different ROCm builds this release. rocm/primus:v26.8 uses the ROCm 10.1.0 release from stable.repo.amd.com. rocm/jax-training:maxtext-v26.8 uses a ROCm 10.2 nightly, 10.2.0a20260923 from nightly.repo.amd.com, and its JAX plugin pair and Transformer Engine are built against that nightly. hipBLASLt and RCCL differ between the two images as a result.

rocm/primus builds Transformer Engine and Flash Attention from source again. Transformer Engine comes from ROCm/TransformerEngine at 130099ce (it reports 2.17.1+130099ce4), replacing the three wheel distributions v26.7 installed; CK fused attention is JIT-compiled at run time from the aiter tree kept at /workspace/deps/te-aiter. Flash Attention is back on the ROCm/flash-attention fork (tag v2.8.4.1-cktile, reported as 2.8.4) instead of PyPI flash-attn 2.8.1. The image also turns on the HIP device-queue path (GPU_USE_DEVICE_QUEUE=1, DEBUG_CLR_AQL_DEV_QUEUE=1).

rocm/jax-training:maxtext-v26.8 no longer contains Primus. There is no /workspace/Primus; run the image with a Primus checkout mounted, which primus-cli container does for you. See Primus source for v26.8. The MaxText checkout at /workspace/maxtext (07c240fa) is still in the image.

Note: transformers is 4.57.3 in the MaxText image because the published tag includes the MaxDiffusion stage, which pins transformers back to 4.x for Flax CLIP / T5. The build-time manifest records 5.16.1, captured before that stage runs; 4.57.3 is what you actually get. The PyTorch image is on 5.10.0.

JAX 0.11.1 uses Shardy, and Primus enables it by default (shardy: true in its MaxText module config). Leave it on. See the Shardy guide for JAX users.

Primus source for v26.8#

Use the release/v26.8 branch for both images:

git clone --recurse-submodules https://github.com/AMD-AGI/Primus.git
cd Primus
git checkout release/v26.8
git submodule update --init --recursive

Branch tip

f487a934 (2026-10-07)

Megatron-LM

d3528a21

TorchTitan

73a0e697

Megatron Bridge

9577b128

MaxText

07c240fa

Emerging-Optimizers

93d9eb3a

HummingbirdXT

ed7b7bd0

Only the MaxText pin moved since v26.7; Megatron-LM, TorchTitan and Megatron Bridge are on the same commits.

Use a release/v26.8 checkout rather than anything baked into the images.

  • rocm/primus:v26.8 was built from f487a934, which is the current release/v26.8 tip, so the in-image /workspace/Primus currently matches, including the MI325X tuning for the 70B/72B and MoE recipes (#1227). Cloning the branch still keeps you current if later commits land on it.

  • rocm/jax-training:maxtext-v26.8 ships no Primus at all. release/v26.8 carries the MaxText environment defaults that restore performance on JAX 0.11.1 (#1228); an older checkout runs without them. Its third_party/maxtext matches the image’s /workspace/maxtext.

Changes since v26.7#

rocm/primus:

Component

v26.7

v26.8

ROCm

10.0.0

10.1.0

PyTorch

2.12.0+rocm10.0.0

2.14.0+rocm10.1.0

Transformer Engine

2.17.0+rocm10.0.0

2.17.1+130099ce4

Flash Attention

2.8.1

2.8.4

hipBLASLt

1.4.1-8d1ae90e

1.4.1-39d8d603

Triton

3.8.0+git4cff872c.rocm10.0.0

3.8.0+git669b31ac.rocm10.1.0

RCCL

2.30.4

2.30.7

torchvision

0.27.0+rocm10.0.0

0.29.0a0+rocm10.1.0

torchaudio

2.11.0+rocm10.0.0

2.11.0+rocm10.1.0

APEX

1.13.0+rocm10.0.0

1.14.0+rocm10.1.0

AITER

0.1.14.post1

0.1.22.post1

Primus-Turbo

0.4.1.dev33

0.5.1.dev7

FBGEMM

2026.9.9

2026.10.8

Image size

53.8 GB

56.4 GB

rocm/jax-training:maxtext:

Component

v26.7

v26.8

ROCm

10.0.0

10.2.0a20260923

JAX / jaxlib

0.11.0

0.11.1

jax-rocm10-pjrt / jax-rocm10-plugin

0.11.0+rocm10.0.0

0.11.1+rocm10.2.0a20260923

Transformer Engine

2.17.0+rocm10.0.0

2.18.0.dev0+rocm10.2.0a20260929.03afd8f

hipBLASLt

1.4.1-8d1ae90e

1.5.0-9bb8b541

RCCL

2.30.4

2.31.2

Flax

0.12.8

0.12.9

Optax / Orbax / Grain / tensorstore

0.2.8 / 0.12.4 / 0.2.18 / 0.1.85

0.2.8 / 0.12.6 / 0.2.18 / 0.1.85

MaxText

b3c53763

07c240fa

Image size

43.7 GB

43.9 GB


Earlier releases#

Headline versions only. Read the in-image manifest for the full stack of any image below — except v26.2 and v26.1, which predate the manifest (use pip list there).

The three MaxText v26.3.x images ship an identical software stack; they differ only in MaxText and Primus content.

Image

Python

ROCm

Framework

Transformer Engine

RCCL

rocm/primus:v26.7

3.12.3

10.0.0

PyTorch 2.12.0+rocm10.0.0

2.17.0+rocm10.0.0

2.30.4

rocm/primus:v26.6

3.12.3

7.15.0

PyTorch 2.12.0+rocm7.15.0a20260727

2.17.0+rocm7.15.0a20260727.e028a6c

2.30.4

rocm/primus:v26.5

3.12.3

7.15.0

PyTorch 2.12.0+rocm7.15.0a20260720

2.15.0.dev0+rocm7.15.0a20260716.a07e607

2.30.4

rocm/primus:v26.4

3.12.3

7.14.0

PyTorch 2.12.0+rocm7.14.0a20260608

2.14.0.dev0+e6ede467

2.29.7

rocm/primus:v26.3

3.12.3

7.2.1

PyTorch 2.10.0+git94c6e04

2.12.0.dev0+40434cf6

2.27.7

rocm/primus:v26.2

3.12.3

7.2.0

PyTorch 2.10.0a0+git449b176

2.8.0.dev0+51f74fa7

2.27.7

rocm/primus:v26.1

3.10.12

7.1.0

PyTorch 2.10.0.dev20251112+rocm7.1

2.6.0.dev0+f141f34b

2.27.7

rocm/jax-training:maxtext-v26.7

3.12.3

10.0.0

JAX 0.11.0

2.17.0+rocm10.0.0

2.30.4

rocm/jax-training:maxtext-v26.6

3.12.3

7.14.0

JAX 0.11.0

2.17.0+rocm7.14.0.50a84ad

2.30.4

rocm/jax-training:maxtext-v26.5

3.12.3

7.14.0

JAX 0.10.0

2.15.0.dev0+rocm7.15.0a20260707.72d01a0

2.30.4

rocm/jax-training:maxtext-v26.4

3.12.3

7.14.0

JAX 0.9.1

2.12.0.dev0+635d7c08

2.28.9

rocm/jax-training:maxtext-v26.3.2

3.12.3

7.2.1

JAX 0.8.2

2.8.0.dev0+9b312832

2.27.7

rocm/jax-training:maxtext-v26.3.1

3.12.3

7.2.1

JAX 0.8.2

2.8.0.dev0+9b312832

2.27.7

rocm/jax-training:maxtext-v26.3

3.12.3

7.2.1

JAX 0.8.2

2.8.0.dev0+9b312832

2.27.7

rocm/jax-training:maxtext-v26.2

3.12.3

7.1.1

JAX 0.8.2

2.8.0.dev0+aec00a7f

2.27.7


Verifying the stack in an image#

Images from v26.3 onward ship a manifest at /workspace/.manifest/ recording exactly what was installed at build time:

File

Contents

requirements.txt

full pip list

dpkg-list.txt

full dpkg -l

env.txt

every environment variable baked into the image

training_docker_version

the build’s commit tag

docker-build-recipe.txt

the Dockerfile the image was built from (named Dockerfile in rocm/primus images before v26.8 and in rocm/jax-training:maxtext images before v26.6)

docker run --rm --entrypoint bash rocm/primus:v26.9 -c 'cat /workspace/.manifest/requirements.txt'

Native library versions are not pip packages; read them from the ROCm headers:

docker run --rm --entrypoint bash rocm/primus:v26.9 -c '
  grep -E "HIPBLASLT_VERSION_(MAJOR|MINOR|PATCH|TWEAK)" $(find $ROCM_PATH /opt/rocm -name hipblaslt-version.h 2>/dev/null | head -1)
  grep -E "define NCCL_(MAJOR|MINOR|PATCH)"              $(find $ROCM_PATH /opt/rocm -name rccl.h            2>/dev/null | head -1)'

Images older than v26.3 predate the manifest; query them with pip list directly.