Skip to content

docker: give unsloth/unsloth-rocm a Hub page and keep it in sync - #11059

Merged
danielhanchen merged 7 commits into
mainfrom
docker/rocm-hub-readme
Sep 16, 2026
Merged

danielhanchen merged 7 commits into
mainfrom
docker/rocm-hub-readme

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

The first ROCm image published on 2026-09-15 (unsloth/unsloth-rocm:latest, digest sha256: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/kfd and /dev/dri rather 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.
  • A hub-readme job in docker-publish-rocm.yml that mirrors the one already in docker-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. needs lists prepare as well as tag because the condition reads needs.prepare.outputs.stable, and a job absent from needs is 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_gfx input.

Verification

  • The page is already live: PATCHed to the Hub and read back, 4546 characters matching the file byte for byte.
  • actionlint reports the same single pre-existing finding on this branch as on main (the unknown amd-gpu self-hosted label).
  • tests/studio -k "workflow or merge_bursts or arch_table": 306 passed, 35 skipped.
  • The "not included" list was checked against the image rather than assumed: jupyterlab, notebook, ipykernel, llama-cli, llama-server, whisper-cli, vllm and xformers are all absent from it.

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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-16T08:27:47.994554Z 25535e4 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

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.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex security review

chatgpt-codex-connector[bot]

This comment was marked as resolved.

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.
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 16, 2026
chatgpt-codex-connector[bot]

This comment was marked as resolved.

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.
chatgpt-codex-connector[bot]

This comment was marked as resolved.

…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.
chatgpt-codex-connector[bot]

This comment was marked as resolved.

…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.
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 16, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 16, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 16, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 16, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 16, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 16, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 16, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 16, 2026
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 25535e48a6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@danielhanchen
danielhanchen merged commit c5faa7f into main Sep 16, 2026
15 of 16 checks passed
@danielhanchen
danielhanchen deleted the docker/rocm-hub-readme branch September 16, 2026 08:55
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant