Dev/update readme pip install#766
Open
wenxie-amd wants to merge 12 commits into
Open
Conversation
Reorganize the Setup & Deployment section around the AMD published training Docker images and split the walkthrough into two options. - Quick Start Option 1: git clone the repo and run training in a container (now recommended), with release-branch checkout and submodule init steps - Quick Start Option 2: install the Primus wheel into a venv and run training in a container (or directly on a host) - add the MaxText (rocm/jax-training) image alongside rocm/primus - remove the older git+pip / deps-sync install walkthrough
Provide documentation and tooling to reproduce the training Docker
image's software stack directly on a host machine, for users who
cannot run containers.
- docs/install-on-host.md: step-by-step host install derived from the
training Dockerfile (ROCm via pip rocm-sdk-devel so no system ROCm or
sudo, source-built kernel libs, optional multi-node UCX/OpenMPI/
rocSHMEM, verification, and operational notes)
- tools/installation/{setup.sh,env.sh,README.md}: staged, re-runnable
venv installer with automatic GPU arch detection (gfx942/gfx950),
fail-fast error handling, and host-specific fixes (mamba via pip,
apache-tvm-ffi/z3-solver pins, Megatron helpers_cpp build)
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a no-docker/no-sudo host installation path for reproducing the Primus training environment via a Python venv, and updates top-level setup guidance to emphasize running training in AMD-published Docker images (with an alternative wheel/CLI path).
Changes:
- Added staged installer scripts under
tools/installation/to build a full ROCm + PyTorch + kernel-lib stack inside a venv. - Added a WIP guide for installing the full training stack on bare metal (no Docker), including references to the new scripts.
- Updated the root
README.mdto focus on Docker-based training workflows and add a wheel/CLI container-launch option.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/installation/setup.sh | New staged installer script to reproduce the training environment in a venv. |
| tools/installation/env.sh | New activation script exporting ROCm/toolchain/runtime environment variables and auto-detecting GPU arch. |
| tools/installation/README.md | New README explaining how to use the venv installer scripts and what’s skipped. |
| README.md | Updated setup/deployment guidance and quickstart flows (Docker + CLI, wheel install). |
| docs/install-on-host.md | New WIP guide for host installation; references and partially duplicates scripted flow. |
Comment on lines
+28
to
+29
| - `**setup.sh**` — runs the install in re-runnable **stages**. It sources | ||
| `env.sh` automatically. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Collaborator
|
Add one testing point here. I tested the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.