Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/_run-ci-rocm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,14 @@ jobs:
pip install -e . --no-deps --break-system-packages
fi
cd $GITHUB_WORKSPACE && pip install -e . --no-deps --break-system-packages
pip install polars zstandard xxhash blake3 "numba==0.65.1" --break-system-packages
pip install polars zstandard xxhash blake3 "numba==0.65.1" "deepseek-recipe==0.2.0" --break-system-packages

- name: Install (miles only)
if: ${{ inputs.skip_dependency_install }}
shell: bash
run: |
cd $GITHUB_WORKSPACE && pip install -e . --no-deps --break-system-packages
pip install polars zstandard xxhash blake3 "numba==0.65.1" --break-system-packages
pip install polars zstandard xxhash blake3 "numba==0.65.1" "deepseek-recipe==0.2.0" --break-system-packages

- name: Install Megatron Bridge override
if: ${{ github.event.inputs.ci_megatron_bridge_pr != '' || contains(github.event.pull_request.body, 'ci-megatron-bridge-pr:') }}
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ default_language_version:

# The vendored upstream module stays byte-diffable against its source; keep
# formatters and linters away so upstream-tracking diffs remain minimal.
exclude: '^miles/utils/chat_template_utils/templates/encoding_dsv(32|4|41)\.py$'
exclude: '^miles/utils/chat_template_utils/templates/encoding_dsv32\.py$'

ci:
autofix_prs: true
Expand Down
5 changes: 3 additions & 2 deletions docker/Dockerfile.rocm
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,9 @@ RUN cd /sgl-workspace/sglang && \
pip install -e radix_transfer_plugins --no-deps && \
python3 -c "import radix_transfer_plugins.stashes.token_output"

# SGLang is installed without dependencies, but its Inkling multimodal processor imports numba.
RUN pip install "numba==0.65.1"
# SGLang is installed without dependencies, but its Inkling multimodal processor imports numba and its
# DeepSeek-V4 / V4.1 renderer imports deepseek-recipe, which the v0.5.22 ROCm base predates.
RUN pip install "numba==0.65.1" "deepseek-recipe==0.2.0"

RUN pip install uv

Expand Down
2 changes: 1 addition & 1 deletion docs/developer/ci/02-docker-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ The CUDA 13 defaults use `lmsysorg/sglang:v0.5.22` and the stable branch `sglang

**Output** — one `radixark/miles` image for the platform buildx targets: the SGLang base, then the Python dependencies declared in `requirements.txt`, Megatron-LM at its branch default or caller-pinned commit, Miles, and the prebuilt wheels (`sgl-router` among them). It also carries `kubectl`, `helm` and `tmux`, which the k8s-native launch path drives the cluster with. A multi-arch build is one `buildx` run executed once per platform — `TARGETARCH` differs each time, so each arch installs its own wheels — and buildx pushes the two as a single manifest.

`docker/Dockerfile.rocm` is the ROCm counterpart (build-args `GPU_ARCH`, a ROCm `SGLANG_IMAGE_TAG`, and a `WHEELS_TAG_ROCM` release from `XinyuJiangCMU/miles-wheels-rocm`). All ROCm variants build on the `lmsysorg/sglang` v0.5.22 ROCm releases pinned in `docker/build.py`, so `docker/Dockerfile.rocm` fetches the matching stable branch `sglang-miles`. `rocm724-mi35x` uses the Python 3.12 base and ROCm 7.2.4 wheels from the `rocm724-gfx950-v0.5.20` release. It sets `APPLY_ROCR_VMMFIX=1` to install the point-release-matched ROCr VMM-pause fix; ROCm 10 has the fix upstream. The MI300X / MI325X (`gfx942`) variant `rocm10-mi30x` uses the `rocm10-gfx942-v0.5.20` release. That release holds Transformer Engine, flash-attn and apex built for `gfx942` from the same sources as the `gfx950` shelf, so the variant installs every wheel prebuilt, like `rocm10-mi35x`. It also sets `AITER_PREBUILD_JIT=1`. `docker/amd/prebuild_aiter_jit.py` then builds the bf16 aiter attention kernels that sglang otherwise JIT-compiles on first use: the `mha_batch_prefill` extend modules, and `pa_ragged` decode for GQA ratios 1–16, head sizes 64 and 128, and contexts up to 64K. It builds them for `GPU_ARCH`, because the build host has no GPU.
`docker/Dockerfile.rocm` is the ROCm counterpart (build-args `GPU_ARCH`, a ROCm `SGLANG_IMAGE_TAG`, and a `WHEELS_TAG_ROCM` release from `XinyuJiangCMU/miles-wheels-rocm`). All ROCm variants build on the `lmsysorg/sglang` v0.5.22 ROCm releases pinned in `docker/build.py`, and `docker/Dockerfile.rocm` fetches the stable branch `sglang-miles` over them. It installs SGLang without dependencies, so it adds the Python packages that branch imports and the base lacks (`numba`, `deepseek-recipe`). `rocm724-mi35x` uses the Python 3.12 base and ROCm 7.2.4 wheels from the `rocm724-gfx950-v0.5.20` release. It sets `APPLY_ROCR_VMMFIX=1` to install the point-release-matched ROCr VMM-pause fix; ROCm 10 has the fix upstream. The MI300X / MI325X (`gfx942`) variant `rocm10-mi30x` uses the `rocm10-gfx942-v0.5.20` release. That release holds Transformer Engine, flash-attn and apex built for `gfx942` from the same sources as the `gfx950` shelf, so the variant installs every wheel prebuilt, like `rocm10-mi35x`. It also sets `AITER_PREBUILD_JIT=1`. `docker/amd/prebuild_aiter_jit.py` then builds the bf16 aiter attention kernels that sglang otherwise JIT-compiles on first use: the `mha_batch_prefill` extend modules, and `pa_ragged` decode for GQA ratios 1–16, head sizes 64 and 128, and contexts up to 64K. It builds them for `GPU_ARCH`, because the build host has no GPU.

### `docker/install-kube-tools.sh`

Expand Down
Loading
Loading