HUB
Sign inSign up
primus logo

rocm/primus

Verified Publisher

By AMD

โ€ขUpdated about 17 hours ago

Image
4

50K+

rocm/primus repository overview

โ Primus

Primus/Primus-LM is a flexible and high-performance training framework designed for large-scale foundation model training and inference on AMD GPUs. It supports pretraining, post-training, and reinforcement learning workflows with multiple backends including Megatron-LMโ , TorchTitanโ  alongside ROCm-optimized components.

Please refer to ROCm documentation hereโ  for more details.

โ Release Notes

โ v26.9.1

  • Updated the Megatron-LM backend to Megatron Core 0.19.2 and adapted the associated training paths.
  • Added Flux.1 Schnell launch recipes for 1, 4, and 8 MI355X nodes, and a recommendation backend for DLRMv4.
  • Refreshed MLPerf training recipes and launchers for Llama 3.1 8B, GPT-OSS, and Llama 2 70B LoRA.
  • Improved checkpoint conversion and loading; corrected unpacked SFT loss masking and diffusion loss handling.
  • Routed diffusion benchmarks through primus-cli and improved MI325X benchmark support.
  • Llama 3.1 8B MLPerf launchers retain the image's bundled RCCL by default; the experimental rebuilt copy-engine ReduceScatter path was found to corrupt gradients.
  • Full v26.9.1 changelogโ .

โ v26.9

  • Updated the training stack to the ROCm 10.2 nightly (10.2.0a20261020), PyTorch 2.16 pre-release, and Transformer Engine 2.20 development build.
  • Added GLM-5.3-Flash support, ZAYA1-8B FP8 recipes, and HunyuanWorld-Mirror post-training. GLM training validation covers an 8-layer proxy; the full model was checked forward-only.
  • Added convergence testing and improved unattended batch benchmarks, including timeouts, failure reporting, and baseline comparisons.
  • Enabled Triton fused AdamW by default in TorchTitan; added optional Turbo cross-entropy and GPT-OSS kernel fusions.
  • Fixed fused MoE parameter-gather synchronization and several DeepEP, FP8, and TorchTitan issues.
  • Compatibility notes:
    • Mock-data benchmarks now use each model's actual vocabulary size; throughput and memory results are not directly comparable with earlier releases.
    • Some fusion environment variables became configuration keys. Review the migration notes before reusing custom launch scripts.
  • Detailed release notes and component versionsโ .

โ v26.8

  • Updated to ROCm 10.1.0, PyTorch 2.14, Transformer Engine 2.17.1, and Flash Attention 2.8.4.
  • Added ZAYA1-8B Megatron pretraining recipes and MiniMax-M3 text-backbone support; MiniMax performance validation uses an 8-layer proxy.
  • Added fused FP8/FP4 grouped MLP operations, MXFP4 gradient accumulation, and new MI355X MXFP4 and LoRA-SFT recipes.
  • Added TorchTitan support to Primus Projection and a batch performance runner for single-node and Slurm workflows.
  • Fixed gradient corruption associated with Triton buffer operations, GPT-OSS router initialization, and hybrid-model stability issues.
  • Migration notes:
    • Use ./primus-cli in place of the retired examples/run_* launchers.
    • Hybrid configuration names return from hylo_* to zebra_*; update scripts that reference the old names.
  • Detailed release notes and component versionsโ .

โ v26.7

  • Moved to ROCm 10.0.0 with matching PyTorch 2.12 and Transformer Engine 2.17 builds.
  • Added long-context DeepSeek-V4 training on gfx942 and packed-sequence SFT, plus DLRM-v4 performance projection support.
  • Added optional fused SwiGLU/linear execution and improved cross-entropy memory use; tuned MI355X GDN/KDA, Llama, and GPT-OSS recipes.
  • Fixed Turbo gradient accumulation, DeepSeek-V4 attention indexing, KDA numerical stability, and short-batch pipeline warmup.
  • Improved GPU detection and network-interface handling.
  • Compatibility notes: ROCm wheel indexes changed, and the TorchTitan Turbo grouped-GEMM configuration key was renamed. Consult the detailed notes when migrating a bare-metal installation or custom configuration.
  • Detailed release notes and component versionsโ .

โ v26.6

  • Updated the ROCm 7.15 nightly stack with PyTorch 2.12, Transformer Engine 2.17, and Primus-Turbo 0.4.1 development builds.
  • Added Gated Delta Net (GDN) and Kimi Delta Attention (KDA) support, a fused MegaMoE path, and additional FP4/MXFP8 training capabilities.
  • Added Flux FP8 and native Transformer Engine MXFP4 training paths, plus Hugging Face-to-Megatron checkpoint converters.
  • Improved MXFP4 convergence with weight de-oscillation and expanded MLPerf launch/logging support.
  • Fixed the TorchTitan DeepSeek-V3-16B performance regression on MI355X and updated model recipes.
  • Image component versionsโ  ยท Primus v26.6.0 changelogโ .

โ v26.5.1

  • Fixed MoE performance regression on MI35X
  • Fixed RocProf issue

โ v26.5

  • Upgrade to ROCm 7.15 nightly
  • Upgrade Transformer Engine to 2.15
  • Upgrade Torchtitan to 0.2.2
  • MLPerf Training 6.0 reproducer in Primus
  • Llama 3.1 8B, Llama 2 70B LoRA, GPT-OSS 20B
  • Introduce Primus Skills
  • Designed for agentic Primus features porting to custom forks of backend frameworks (Megatron-LM/Torchtitan/MaxText)
  • Introduce Primus native diffusion model support
  • Added DeepSeekV4 Flash support
  • Primus documentation restructured and updated
  • Known issues:
    • Performance regression of DeepSeekV3-16B in torchtitian
    • HIPBLASLT Error for Mamba 370M on MI355X

โ v26.4

  • Update ROCm to 7.14 (TheRock based build)

  • Upgrade PyTorch to 2.12

  • Enabled release wheels for pip install

  • Introduce FP4 training example

  • Introduce MXFP8 training examples with Primus Turbo enhanced kernels

  • Introduce Primus native SFT and LoRA trainer

  • Introduce tuning agent - agent based scaling strategy explore and suggestion based on Primus Projection tool

  • Release version aligned between docker images and Primus repo release tags

  • Known issues:

    • Segfault during process teardown with Megatron-Bridge based workload
    • MI355X Llama-3.1-70B BF16 (TorchTitan) performance regression ~8% due to updated checkpoint recompute behavior of PyTorch
    • Performance regression of zebra-llama-1b model

โ v26.3

  • HipblasLT regression of v26.2 fully fixed on MI355X (Thanks to HIPBLASLt team for the collaobrative support!)
  • Upgrade Megatron-LM backend to more recent upstream
  • Primus Turbo update to more recent version
    • GEMM/Grouped GEMM Triton backend.
    • AITER asm mxfp4 GEMM integration.
  • MoE Package 2.0 enabled, more tuned recipes for large scale MoE training
  • Performance highlights:
    • MoE performance improved with MoE Package 2.0 (4-13% improvement on MoE models)
    • Performance optimization on Mamba models and showing close to 2x performance comparing to v26.2
  • Known issues:
    • Memory usage increased on legacy LLama models

โ v26.2

  • Upgrade to ROCm 7.2
  • Primus
    • Primus Perf Projection Modeling Toolkit
    • Added Primus Finetuning support w/ Megatron-Bridge (functional supporting, performance optimization on-going)
    • Added Hybrid Model Support with Primus (functional supporting, performance optimization on-going)
  • Reduced docker size by 50+% for lighter weight deployments

โ v26.1

  • Added default AINIC support
  • Primus update
    • Introducing CLI interface
  • Updated libraries
    • Transformer Engine
    • HipBlasLT

โ v25.11

โ v25.10

  • Merge MI300X and MI355X docker
  • Primus TorchTitan backend upgrade to recent version
  • Primus Megatron backend upgrade to recent version
  • Primus v0.4.0
    • Support MLFlow
    • Improved Megatron-LM profiling
    • MoE Package Feature available:
      • MoE CPU Sync-free
      • 1f1b MoE overlapping
      • Zero-bubble
      • Router Fusion
    • Tools
      • Model based memory projection/modeling tool
  • Primus-Turbo v0.2.0
    • FP8 GEMM
    • Grouped GEMM
    • DeepEP support
  • Added Primus Torchtitan MoE support with matching performance of PyTorch Conference presentation
    • DeepSeekV3
  • Diffusion Benchmark with Video Gen models
    • Hunyuan Video
    • Wan2.1-I2V
    • Mochi-1
  • Performance update
    • Torchtitan avg 2.6% uplift
    • Torchtune avg 1.6% uplift
    • Megatron mi300/325 0.42% drop, mi355 4% uplift

โ v25.9

  • ROCm 7.0 support
  • Combined PyTorch Docker supports
    • Primus with Megatron-LM and Torchtitan backend - v0.3.0
    • Primus Turbo - v0.1.1
    • Finetuning
      • HF PEFT
      • Torchtune
  • Added/updated Diffusion Benchmark support for following models
    • Flux with smaller testing dataset
    • SDXL
  • Support MI300X, MI325X, MI350X, MI355X
  • Known Issue:
    • Separate images for MI300X/MI325X and MI350X/MI355X due to cross architecture compatibility issues, to be fixed in v25.10 release

Tag summary

Content type

Image

Digest

sha256:74f3095afโ€ฆ

Size

15.8 GB

Last updated

about 17 hours ago

docker pull rocm/primus