Skip to content

CUDA: include Thor in Linux release archives - #5053

Merged
ashhart merged 3 commits into
ashhart:mainfrom
IF-YFXJ:feat/thor-multitarget-startup-admission
Nov 26, 2026
Merged

ashhart merged 3 commits into
ashhart:mainfrom
IF-YFXJ:feat/thor-multitarget-startup-admission

Conversation

@IF-YFXJ

@IF-YFXJ IF-YFXJ commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

The Linux release archives embed SM110 SASS. The CUDA server applies the existing Qwen-only Thor admission rules to the device selected at startup. MOSS-Image and LFM2 use their fixed CUDA device zero for this check. Maintainer scope

Checks on this head

  • Head — e722599812367b8fbf40668e0d8d5c60aa521ec7.
  • Host checks — Zig 0.17.0 on Windows x86_64. The targeted host suite passed 46/46 build steps and 31/31 tests with test-device, test-release-cuda-refusal-host, test-qwen35-sm110-host, test-cuda-driver-sm110-host, test-cuda-sm-host, check-native-cuda-host and test-check-release-paths. The device target-list consistency check went from 30/31 to 31/31. The MOSS-Image and fixed-device LFM2 regressions each failed before the startup fix and passed afterward.
  • Formatting and lean — zig fmt --check and git diff --check passed. The branch base and current head each have 164 existing lean findings, with zero added.
  • CI — 10 passed, including all three Zig build jobs that previously reported the target-list mismatch. Two host-nightly jobs were skipped. No-GPU CI · Formatting
  • Not run — macOS packaging and real-checkpoint inference on x86_64 or non-Thor GPUs on this head. The earlier Linux archive and GB10 device checks are recorded below.

Release archive receipt

The paired size comparison uses baseline 9961ca4920848b84a98ec8eea978437662fd0300 and candidate fe8c091a07c7385d7509da697f56b61af8f86149. Both use Zig 0.17.0, nvcc 13.0.88, xgrammar v0.2.8 and the same compiler, privacy checker, package script and gzip settings. The local Linux harness excluded macOS for both builds. The test archives use the 1.3.5 version label.

Linux archive Baseline bytes Candidate bytes Delta bytes Delta
AArch64 59,852,616 70,090,282 +10,237,666 +17.10%
x86_64 60,463,017 70,698,199 +10,235,182 +16.93%

The baseline and candidate each compiled 150 input fatbins. Both retain SASS targets 80,86,89,120,121, including SM89 as found in the published v1.3.5 binary. The candidate adds SM110. For existing targets, 740 of 750 stored SASS payloads were byte-identical. The remaining ten from glm_glue and glm_index matched on full per-target cuobjdump disassembly. Both paired dist-smoke builds passed 30/30 steps. Feeding the baseline fatbins to the candidate dist exited 1 with has no sm_110 image and produced no archive.

The AArch64 archive rebuilt on e7225998 is 70,090,580 bytes, SHA-256 8b2f5cecf374a57ad9be26daa609ae17e20a338043b4830ac265e2e2e6bfbdae. The ARM64-only validation harness used dist-smoke test-dist-package and passed 22/22 build steps. The CUDA kernel inputs were unchanged and all 150 qualified input fatbins matched their existing checksum manifest. The shipped ELF contains 150 fatbins with all six SASS targets. The outer archive and its contents passed checksum verification, and the extracted binary passed version and help checks from a clean working directory.

The earlier paired AArch64 builds passed installed-package smoke on Thor and GB10. Thor reported no SM110 coverage on the baseline and CUDA support on the candidate. GB10 reported SM121 CUDA support on both. The paired x86_64 archives passed the installed-package smoke on Ubuntu WSL.

Thor runtime receipt on the rebuilt archive

Single NVIDIA Thor, sm_110, Linux AArch64, driver 595.78. Both model runs used the packaged binary, CUDA device 0, BF16 KV, context 8192, parallel 2, snapshots disabled and DFlash2 with 4-bit drafter weights. We verified the local files against the pinned revisions before starting each run.

  • TensorFold/Qwen3.8-27B-MLX-4bit@22d8d538154e0e5b6f8dcb1fcc74a60a0798104c
  • nvidia/Qwen3.8-27B-NVFP4@482ca0f3832238542f8f5295dde86b5f22711d80
  • z-lab/Qwen3.8-27B-DFlash2@50307d4c4cde6860d4eee73e2547cd786fe8e8a4

tools/conformance.py --stream --gates drafted,concurrent,resumed,cancel, with greedy and seeded sampling, passed 4/4 gates on each checkpoint. The fresh reference used a 0 GiB prompt cache and the cached server used 1 GiB. The startup log for each server named CUDA sm_110 device 0 and DFlash2.

Checkpoint Drafted/plain token equality Accepted drafts in those pairs Concurrent/solo equality Resumed/fresh equality Cancel/recover
MLX 4-bit 10/10 439/2,534 (17.32%) 28/28 6/6 4/4
NVFP4 10/10 445/2,642 (16.84%) 28/28 6/6 4/4

Plain controls drafted zero tokens. The four later turns per checkpoint each resumed 4,096 cached tokens. All four cancellations per checkpoint cut the stream mid-reply, were counted as disconnects, and returned the server to two free lanes with a healthy response. All token comparisons above were verified.

On the same archive, a MOSS-Image fixture containing its model index and tokenizer files, with no weights present, exited 1 and printed sm_110 product: MOSS-Image is not qualified; serve Qwen3.8-27B. This exercises the named startup refusal before the weights loader.

  • Main against branch, decode and cold TTFT — The general baseline archive cannot serve on Thor. This receipt covers runtime admission and correctness. The separate 8K/C8 prefill investigation is tracked in the issue discussion.
  • New switches or weight licences — n/a. The build and checks use existing flags, checkpoints and drafter.

Checklist

  • Title and description match the code and identify the base and head.
  • Startup regression tests fail before the fix and pass afterward.
  • Source comments and documentation describe the behavior.
  • The source diff contains no internal hosts, local paths or private operational details.
  • Candidate AArch64 archive inference and named MOSS-Image refusal verified on Thor.
  • ATC rerun and follow-up merge checks recorded with coverage limits.

@IF-YFXJ
IF-YFXJ marked this pull request as ready for review November 26, 2026 02:31
IF-YFXJ and others added 3 commits November 26, 2026 23:19
Keep the device support fallback aligned with release_sms so the No GPU test-device checks see the same CUDA target set.
@ashhart
ashhart force-pushed the feat/thor-multitarget-startup-admission branch from e722599 to 23be713 Compare November 26, 2026 23:19
@ashhart
ashhart merged commit 7bca941 into ashhart:main Nov 26, 2026
3 of 12 checks passed
@ashhart

ashhart commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Thank you @IF-YFXJ. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

ashhart added a commit to BlivionIaG/TensorFold that referenced this pull request Nov 26, 2026
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