Repository navigation
release, install: a GB10 (DGX Spark) installs a prebuilt linux-aarch64-cuda-sm121a archive - #878
Conversation
…a-sm121a, sm_121a PTX and host code for GB10's cores, checked for its ELF machine, glibc floor, libraries and PTX
…the GB10 archive; another aarch64 GPU is refused by name, and the choice has a self-test
…ore the x86-64 .sha256
There was a problem hiding this comment.
Verdict: CLEAN: no failure path survived; the archive choice, the build checks and the publish flow hold on the inputs I built.
Non-blocking
⚠ The tap refusal comes after the upload: tools/release/publish.sh:174. When BLOOMERY_GB10_BOX is unset and the formula already names a GB10 url, the script uploads the release in step 4 and only then exits in step 5. The release is live and the tap is not bumped. The inputs for the check (GB10_BOX and the formula text) are known before step 4, so a check before the upload would fail with nothing published. A re-run is safe (--clobber), so this is not a must-fix.
⚠ One BLOOMERY_REMOTE for two machines: tools/release/publish.sh:49. linux_archive uses $REMOTE/target/release-dist on the x86-64 box and on the GB10. The GB10 build runs in the contributor's own tree (BLOOMERY_BOX_LOCAL=1), which may sit at another path than ~/repo/<name>. If the paths differ, cd fails and the error names the box, not the path. Question to the author: is the GB10 tree always at the same path? If not, the doc line in tools/release/README.release.md or the script header should say so.
⚠ install.sh usage text: tools/release/install.sh:25. The unknown-argument message lists --version and --prefix and not --self-test.
Checked
- Duplicates: 6 new items checked (
platform(),self_test(),linux_archive,bump, theBLOOMERY_GB10_BOXrow, the platformcaseinbuild.sh), none duplicated. The x86-64 verify block becamelinux_archive, so the diff removes the copy it would have added. dryer: 0 pairs. - Complexity: crapper flagged nothing.
platform()grew by one branch (aarch64) and holds the whole choice, one owner. - Silent failure: 7 sites followed (missing
nvidia-smi, failed read, empty read, non-12.1 GPU, unknownuname -m, ELF machine mismatch, formula with a GB10 url and no GB10 archive). Each ends in a named error and a non-zero exit. The$(…) || failand|| exit 1forms keep the exit code; no pipe hides one. - Tests:
--self-testhas 12 cases. Mutants checked in words:[ "$c" = 12.1 ]dropped, so9.0turns the case red; the loop cut to the first GPU, so"12.1 9.0"turns red; the empty-read guard dropped, so the""case turns red. The self-test matches the exit code as well as the text. - Gates: no pin moved.
GLIBC_FLOOR=2.39is for a new archive, not a relaxed gate; the x86-64 floor stays 2.34. - Hot path: none (release scripts and docs). One registry row in
crates/levers. - Escape catalog: C1 to C4 checked, none matched (no
$?after a substitution, no heredoc written with backticks, nopgreporpkill, no function named after its command).
Notes
- Evidence in the PR body: the GB10 build, install and serve runs and the
nvidia-smilines are present. Nojust gate-*run is in it, and the PR touches no gate.publish.shwas not run end to end; the body says so. - The PR body says
cargo fmtandcargo clippywere not run on the registry row. CI covers both.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
|
The review is done and the contribution check passed, so I'm merging this. |
DGX Spark(GB10)에서 설치 스크립트 한 줄로 미리 빌드된 release 파일을 받아
bloomery-serve -m <폴더>로 바로 띄울 수 있게 합니다. x86-64와 macOS의 설치 경로는 그대로입니다.Part of #565.
What and why
A DGX Spark (GB10, Linux aarch64) builds bloomery from source today. This adds a release archive for it,
bloomery-<v>-linux-aarch64-cuda-sm121a.tar.gz, and teaches the installer to pick it. Afterinstall.sh,bloomery-serve -m <folder>serves an FP4-Local checkpoint with no flags.tools/release/build.shpicks the archive fromuname -m. On aarch64 it builds sm_121a PTX (the archtools/arch.shalready picks on a GB10) with-C target-cpu=gb10, and checks the ELF machine, the glibc floor, the needed libraries and the PTX. The glibc floor is 2.39 for this archive (DGX OS 7); the x86-64 archive keeps 2.34, its name, its sm_86 PTX and its checks.tools/release/install.shtakes the GB10 archive on Linux aarch64 only whennvidia-smilists at least one GPU and every GPU reports compute capability 12.1. A missingnvidia-smi, a failed or empty read and any other GPU are each refused by name, before the download. A release without the archive fails by name.--self-testcovers the choice, including the exit code of each refusal, andtools/check-recipes.shruns it.tools/release/publish.shverifies the GB10 archive on the GB10 that built it over plainssh, the way it verifies the x86-64 one, then uploads it before the x86-64.sha256. The Homebrew formula changes only if it already has a GB10 URL, and a URL with no GB10 archive in the release is refused.BLOOMERY_GB10_BOXnames that GB10 and has a registry row.README.md,docs/serving.md(Limits),docs/contrib/dgx-spark.md, thejustfilecomment andtools/release/README.release.mdsay where the GB10 archive applies.To make the GB10 archive for a tag, run
BLOOMERY_BOX_LOCAL=1 just release-build 0.3.10on the GB10, thenBLOOMERY_GB10_BOX=<gb10 host> tools/release/publish.sh 0.3.10.Release notes: Added: a DGX Spark (GB10) installs a prebuilt
linux-aarch64-cuda-sm121aarchive with the release installer.Code shape
publish.shbecamelinux_archive, which x86-64 and the GB10 archive share.install.shhas oneplatform()for the choice. The release feature list inbuild.shis still one line.uname -m, another aarch64 GPU, a missing, failing or emptynvidia-smi, a release without the archive, a formula URL without an archive.cargo fmtandcargo clippyon what I touched: the only Rust change is one registry row incrates/levers. I did not runcargo fmtorcargo clippyon this head.Duplication found or removed (
path:line): none. The duplicate scan reported no candidates.What I ran
Head
d0e0ab221155e32e3adecafa3be6980465bc0e98, basea87b49d963cf0ea8c6e4788106d25d7507e49f47. No gate that needs a GPU is touched; this change builds, installs and checks a binary, so the runs below are the evidence. The GB10 runs used the head before the last test-only edit (install.sh --self-testnow matches the success case exactly); the archive selection code is the same.On the GB10, build the archive:
The archive is
bloomery-0.3.10-linux-aarch64-cuda-sm121a.tar.gz, 17609618 bytes, sha2567428f4fa09ba6742ae0a63802586e8e4283b50c2f47f412a88ef48bf3884a048, and its binary reportsbloomery-serve 0.3.10 (commit 31ad470e83ab). The only symbols above glibc 2.34 are pidfd_getpid and pidfd_spawnp, both GLIBC_2.39, from the Rust standard library's process code.The installer's self-test, run on the GB10:
The publish verification, run from a non-root account on the GB10 with
sshandscpreplaced by local stubs (the realpublish.shneeds a published release, so I did not run it end to end):Install the archive in a shell with no toolchain (
cargo,rustc,nvcc,llcandptxasall absent), under/bin/sh(dash), with an emptyHOMEand the realnvidia-smi. The only stub is acurlwrapper that maps the GitHub download URL to the local release folder, so the checksum check is the installer's own:Serve with the installed binary and no flags beyond the model, host and port:
bloomery-serve -m <folder> --host 127.0.0.1 --port 18741. The model isnvidia/Qwen3.8-Flash-Next-FP4-Localat revisionb9ce18a6887e18c089fdea8509a33e63429a3300. Two/completionrequests (n_predict64,temperature0) answered. A source build of the same head (SOURCE-BUILD rc=0 seconds=504) gave the same text for both requests:The x86-64 path, on an RTX 5090 machine (Linux x86_64, glibc 2.43), at an earlier head of this branch. Between that head and this one,
install.shchanged only in the aarch64 choice, the self-test and the guidance printed after an install;build.shdid not change, and the x86-64 lines of the choice are the same. I built the archive on base and on that head with the same command, then installed each archive with each side'sinstall.sh:Both sides make
bloomery-0.3.10-linux-x86_64-cuda-sm86.tar.gzwith the same file list and the same checks. All four installs exit 0.Not run:
publish.shend to end (it needs a published release and the GB10 over SSH), a macOS install (the macOS branches ofinstall.share unchanged apart from the sharedplatform()), andcargo fmtandcargo clippyon this head.Hardware
Card for the x86-64 comparison:
AI help
AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.