[build] Add A100 support: patch set, offline-friendly conda build, and examples#1832
Open
jason9693 wants to merge 6 commits intoTHUDM:mainfrom
Open
[build] Add A100 support: patch set, offline-friendly conda build, and examples#1832jason9693 wants to merge 6 commits intoTHUDM:mainfrom
jason9693 wants to merge 6 commits intoTHUDM:mainfrom
Conversation
Introduce PATCH_VERSION selector in build_conda.sh supporting v0.5.9 (default) and v0.5.9.a100, which additionally builds DeepEP without SM90/NVSHMEM features and applies deep_ep, transformer_engine, and slime patches. Make the script offline-friendly via optional pip/mamba caches, add Dockerfile.a100, SLURM build script, custom proxy helpers, and document the new flow in the quick start guides. Co-Authored-By: Kevin-Yang <ykcha9@gmail.com>
Pin DEEPEP_COMMIT to 1d3963d in build_conda.sh and Dockerfile.a100, hardcode mamba prefix to /root to match the prior Docker layout, apply sglang/megatron/slime/deep_ep/transformer_engine patches with --reject so non-conflicting hunks still land, bump the SLURM build job memory to 512G, and add a final import-check layer to Dockerfile.a100. Co-Authored-By: Kevin-Yang <ykcha9@gmail.com>
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.
Summary
Add patch set, build scripts, Docker image, and examples to build and run slime on A100 environments.
Offline Build Flow
The offline build allows installing slime on air-gapped nodes without internet access by pre-downloading all dependencies on a networked machine.
Changes
Build System
build_conda.a100.sh: Add A100-specific conda build script with offline pip/mamba cache supportbuild_conda.sh: IntroducePATCH_VERSIONselector (v0.5.9,v0.5.9.a100), pin DeepEP commit (1d3963d), apply patches with--rejectto land non-conflicting hunksdocker/Dockerfile.a100: Add A100 Docker image build file (DeepEP built without SM90/NVSHMEM, includes import-check layer).gitignore: Add build artifact pathsPatches (
docker/patch/v0.5.9.a100/)deep_ep.patch: DeepEP A100 compatibility patchmegatron.patch: Megatron A100 compatibility patchsglang.patch: SGLang A100 compatibility patch (~4,700 lines)slime.patch: Slime A100 compatibility patchtransformer_engine.patch: Transformer Engine A100 compatibility patchExamples
examples/dapo_math/a100.sh: DAPO math run script for A100examples/dapo_math/kanana2-30b-a3b.sh: Kanana2-30B-A3B model config (same architecture as DeepSeek V3)examples/dapo_math/run_kanana2-30b-a3b.a100.sh: Kanana2-30B-A3B A100 run script (same architecture as DeepSeek V3)Infra / Helpers
custom_proxy_net.sh: Pre-download conda/pip packages on a networked machinecustom_proxy.sh: Restore pre-downloaded packages on air-gapped target node.downloads/mamba_install.sh: Offline micromamba installerDocs
docs/en/get_started/quick_start.md,docs/zh/get_started/quick_start.md: Document the new A100 build flowCommit History (6 commits)
5a4f297e6eb70d168ab0c1be055d530de4bb7fa04f75ee60Stats