Skip to content

Fix/h200 cu130 heyifan - #2014

Open
YifanHe-ailab wants to merge 12 commits into
mainfrom
fix/h200-cu130-heyifan
Open

Fix/h200 cu130 heyifan#2014
YifanHe-ailab wants to merge 12 commits into
mainfrom
fix/h200-cu130-heyifan

Conversation

@YifanHe-ailab

Copy link
Copy Markdown
Collaborator

support cuda13.0

ShilohYu and others added 12 commits July 31, 2026 11:26
Co-authored-by: Cursor <cursoragent@cursor.com>
torch>=2.12 dynamo drops the bound self when a compiled outer forward
calls a method whose class attr is the raw torch.compile object, which
breaks under activation checkpointing. Wrap compiled methods so self is
forwarded explicitly.

Co-authored-by: Cursor <cursoragent@cursor.com>
The mypy hook checks the entire xtuner.v1 package, so unrelated type
errors were preventing commits of otherwise clean changes.

Co-authored-by: Cursor <cursoragent@cursor.com>
Give each rank its own TRITON_CACHE_DIR so concurrent compiles of the
same kernel no longer race on shared cache files (PassManager::run
failed). Mirror production per-submodule FSDP sharding in the toy model
and average the reference gradients (SUM->AVG) so the FSDP test compares
correctly. Seed TestMuonFSDP before build and relax the distributed
tolerance to reflect bf16 Newton-Schulz + reduce-scatter roundoff
(single-GPU still asserts at 1e-6).

Co-authored-by: Cursor <cursoragent@cursor.com>
Bump BASE_IMAGE to NGC pytorch 26.03-py3 (CUDA 13.2.0.046 / cuDNN 9.20 /
NCCL 2.29.7) and torch to 2.12.1 from the cu132 wheel index. Patch
adaptive_gemm's tma_utils.cuh to alias the CUDA 12 PFN_cuTensorMapEncodeTiled
typedef removed in CUDA 13 (guarded by CUDA_VERSION>=13000, self-checked
with grep). Pin tilelang to 0.1.11 to match the validated pt121 stack.

Co-authored-by: Cursor <cursoragent@cursor.com>
Match every pinned version/commit to the glm52-pt121 conda env that the
GLM-5.2 upgrade was validated against:
- flash-attention -> 8a8b2f10 (FA3, matches flash_attn_3 8a8b2f); stop
  building/installing flash_attn 2.x since the env has only flash_attn_3
- GroupedGEMM -> 21c199d (matches grouped_gemm 1.1.4)
- flash-linear-attention -> pin tmp-tensor-cache to commit 72d2a8f
- torchvision==0.27.1, xgrammar==0.2.3, timm==1.0.28

Co-authored-by: Cursor <cursoragent@cursor.com>
Snapshot parametrize namespaces during collection, and give pytest
parent plus each DDP rank isolated Triton/Inductor cache dirs so
full-suite runs no longer hit PassManager corruption.

Co-authored-by: Cursor <cursoragent@cursor.com>
The historical passing SFT run was reproduced on main@731de416 with glm52-pt121, torch 2.12.1+cu132, and transformers 5.14.1. That state used the newer Qwen3.5 MTP loss baselines, while upgrade/torch2.12.1-cu132-main-prep still carried older values from fbc72fa. Restore the baselines to the reproduced passing values.

The upgrade branch is rebased on upstream/main@5c2275c7, which changed DenseDecoderLayer.forward to accept *hidden_states plus keyword-only position_embeddings and seq_ctx for multi-micro-batch execution. The old positional test call now binds the rotary embeddings and SequenceContext as extra hidden states and leaves the required keyword-only arguments unset, causing a TypeError. Call the layer with explicit keywords to match the rebased interface.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants