Skip to content

chore: bump apache-tvm-ffi 0.1.9 -> 0.1.11 - #47

Merged
Fridge003 merged 1 commit into
sgl-project:devfrom
MartinHua:chore/bump-tvm-ffi-0.1.9-to-0.1.11
Jun 18, 2026
Merged

Fridge003 merged 1 commit into
sgl-project:devfrom
MartinHua:chore/bump-tvm-ffi-0.1.9-to-0.1.11

Conversation

@MartinHua

@MartinHua MartinHua commented Jun 17, 2026 •

Copy link
Copy Markdown

What

Bump the apache-tvm-ffi pin 0.1.9 → 0.1.11 in the two (only) places it appears in this repo:

  • sgl_deep_gemm/pyproject.toml — runtime dependency of the published sgl-deep-gemm wheel
  • setup.py — install_requires of the legacy deep_gemm source build

Why 0.1.11 (and not the latest 0.1.12)

0.1.12 has a duplicate __ffi_repr__ import-abort regression (tile-ai/tilelang#2367). 0.1.11 is the known-good target. Both are on PyPI.

Verification

Built the wheel against tvm-ffi 0.1.11 and validated on both architectures.

Hopper (H100):

  • _C.so compiles clean (sm90); sgl_deep_gemm/run_tests.sh single-GPU suite passes (test_bf16, test_einsum, test_fp8_fp4, test_hyperconnection, test_layout, test_attention).
  • test_mega_moe_hopper.py --num-processes 8 passes on an 8×H100 SXM (NVLink) node (~805 TFLOPS).
  • test_mega_moe_hopper.py --accuracy: 28/28 scenarios, diff=0.0006 (tol 0.07).

Blackwell (B300, sm103):

  • _C.so compiles clean (sm103, auto-detected — no arch override needed).
  • Built into SGLang and served deepseek-ai/DeepSeek-V4-Flash (TP=4, fp4 MoE); GSM8K accuracy 0.93–0.96, 0 invalid across two runs.

🤖 Generated with Claude Code

Bump the apache-tvm-ffi pin in both the sgl-deep-gemm wheel
(sgl_deep_gemm/pyproject.toml) and the legacy deep_gemm source build
(setup.py). 0.1.11 is the known-good target (0.1.12 has the duplicate
__ffi_repr__ import-abort regression, tile-ai/tilelang#2367).

Note: a consistent released wheel also requires bumping TVM_FFI_VER in
sglang's docker/sgl-deep-gemm.Dockerfile (the build-time ABI used to
compile _C.so) in lockstep — tracked as a separate SGLang PR.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@MartinHua
MartinHua marked this pull request as ready for review June 17, 2026 00:27
MartinHua added a commit to MartinHua/sglang that referenced this pull request Jun 17, 2026
Bump TVM_FFI_VER (the build-time apache-tvm-ffi the release-whl-deepgemm.yml
workflow installs to compile the sgl-deep-gemm wheel's _C.so) from 0.1.9 to
0.1.11, to match the wheel's runtime pin moving to 0.1.11 in
sgl-project/DeepGEMM#47. Build-time and runtime tvm-ffi must agree for an
ABI-consistent wheel. 0.1.11 (not 0.1.12) avoids the __ffi_repr__ import-abort
regression (tile-ai/tilelang#2367).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
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