Repository navigation
docker: give unsloth/unsloth-rocm a Hub page and keep it in sync - #11059
Merged
Merged
Conversation
The ROCm repository on Docker Hub shipped with an empty description, so the first published AMD image had nothing telling a visitor what it is, that AMD GPUs need the kfd and dri device nodes rather than a container toolkit, or that this image has no Studio, llama.cpp, whisper.cpp, vLLM or xformers. docker/DOCKERHUB-ROCM.md is that page, and a hub-readme job mirrors the one in docker-publish.yml: it syncs on the same condition as the stable tags, reads the page back rather than trusting the status code, and fails when the token cannot edit the description instead of warning. The page states what was actually measured on a Radeon 8060S rather than claiming general AMD support, and says which hardware that does not cover.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Without it HF_HOME is in the container's writable layer, so every model is downloaded again after docker rm. This is the same gap issue 10923 reports against the README, measured on the CUDA image: a fresh container cannot resolve a previously downloaded model offline, and can once the cache is mounted.
Three corrections from review. --group-add resolves a NAME inside the container, where the host's video and render groups do not exist, so the manual commands could add the wrong groups and leave /dev/kfd unreadable. docker/run.sh already resolves them numerically and says why; the page now does the same. 'RDNA2 and newer' included gfx1033 (Van Gogh, Steam Deck), which entrypoint-rocm.sh refuses outright because training diverges to NaN there while forward passes look valid. A reader was told the image supports their card immediately before it refuses to run. The licence link was labelled AGPL-3.0 but pointed at the repository's root LICENSE, which is Apache-2.0. The image is labelled 'Apache-2.0 AND AGPL-3.0-only', so both are now named and linked, the AGPL one at studio/LICENSE.AGPL-3.0 where the text actually lives.
Member
Author
|
@codex security review |
A minimal host has no render group, and the unconditional substitution then expanded to an empty --group-add argument that Docker rejects before the container started. docker/run.sh already adds each group only when its lookup returns a gid; the page now does the same.
The smoke test downloads a 1B model and the container is --rm, so without the mount a second attempt refetches it instead of reusing what the quick start already put in the host cache.
…ch wheels a fix Docker refuses to start over a device that is not on the host, so an unconditional --device /dev/dri fails in the daemon on a box that has /dev/kfd alone; docker/run.sh guards the same way and lets the entrypoint explain the incomplete driver. The Strix and RDNA4 note also read as a performance preference, but Dockerfile.rocm and entrypoint-rocm.sh both say the per-arch wheels carry fixes the generic index lacks, the _grouped_mm segfault on gfx1151 among them.
…n the image The page said AGPL-3.0 covers Studio while saying two sections earlier that Studio is not in this image. The AGPL file the image really ships is smoke_test_rocm.py, whose header declares AGPL-3.0-only.
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
shaojun
pushed a commit
to shaojun/unsloth
that referenced
this pull request
Sep 29, 2026
…lothai#11059) unsloth/unsloth-rocm was published with no Docker Hub page, and nothing in the publish workflow writes one, so it would have stayed whatever was set by hand. - docker/DOCKERHUB-ROCM.md is that page: the run command (device nodes and numeric group ids built the way docker/run.sh builds them, so a host without /dev/dri or without a render group still works), the Hugging Face cache mount and why it is not optional, the tags, the supported hardware including the three cases that need care, and what the image does and does not contain. - The measured section reports the gfx1151 Strix Halo numbers from the published digest: 4-bit QLoRA loss 2.8146 to 1.2242, sd-turbo at 118 s and 4.21 GB, text-to-video-ms-1.7b at 279 s and 4.77 GB. - docker-publish-rocm.yml gains a hub-readme job mirroring docker-publish.yml's: it syncs the page whenever :latest moves, reads the result back rather than trusting the PATCH, and fails when the token cannot edit the description. It uses the namespace-scoped Hub route because the legacy /v2/repositories/{owner}/{repo}/ path answers organization access tokens with 403.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The first ROCm image published on 2026-09-15 (
unsloth/unsloth-rocm:latest, digestsha256:9bc04984bdd8), and its Docker Hub repository has an empty description. Nothing on the page says what the image is, that AMD GPUs are reached through/dev/kfdand/dev/drirather than a container toolkit, or that this image deliberately has no Studio, JupyterLab, llama.cpp, whisper.cpp, vLLM or xformers.What this adds
docker/DOCKERHUB-ROCM.md, the page itself.hub-readmejob indocker-publish-rocm.ymlthat mirrors the one already indocker-publish.yml: same namespace-scoped Hub route (the legacy/v2/repositories/{owner}/{repo}/path answers every organization access token with 403), same read-back rather than trusting the status code, same hard failure when the token cannot edit the description.It gates on
github.ref == main && needs.prepare.outputs.stable == 'true', the same condition as the stable tags, so an override build never rewrites the page.needslistsprepareas well astagbecause the condition readsneeds.prepare.outputs.stable, and a job absent fromneedsis absent from the context, which would make the condition silently false.The page content
It states what was measured on hardware rather than claiming general AMD support. On a Radeon 8060S (
gfx1151, Strix Halo), against the published digest: 4-bit QLoRA 5 steps on Llama 3.2 1B with loss 2.8146 to 1.2242; sd-turbo text-to-image 118 s at 4.21 GB peak VRAM; text-to-video-ms-1.7b 8 frames at 279 s and 4.77 GB. It also says plainly that discrete RDNA2, RDNA4 and CDNA are not covered by that testing, and that the APU is roughly 25x to 50x slower than a datacentre card on the diffusion runs.The gfx906 and per-arch wheel cases are documented as build-time options, matching the workflow's
rocm_gfxinput.Verification
actionlintreports the same single pre-existing finding on this branch as onmain(the unknownamd-gpuself-hosted label).tests/studio -k "workflow or merge_bursts or arch_table": 306 passed, 35 skipped.jupyterlab,notebook,ipykernel,llama-cli,llama-server,whisper-cli,vllmandxformersare all absent from it.