Skip to content

unsloth: repin DiffusionGemma onto c9b81be (multi-GPU visual server) - #262

Merged
danielhanchen merged 1 commit into
masterfrom
repin-24423-multi-gpu
Oct 12, 2026
Merged

danielhanchen merged 1 commit into
masterfrom
repin-24423-multi-gpu

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Repins ggml-org#24423 (DiffusionGemma) from 6431891 to c9b81be, so the visual server Studio uses for DiffusionGemma can serve a model split over more than one GPU. Needed for unslothai/unsloth#13291 (unslothai/unsloth#6347).

ggml-org#24423 (DiffusionGemma): onto c9b81be

With more than one GPU the visual server turns the single-device prompt-KV store off. That path flagged every [prompt|canvas] row for logits while the server caps n_outputs_max at the 256-token canvas, so the first request aborted in output_reserve with GGML_ASSERT(n_outputs_max <= cparams.n_outputs_max). Studio always masked the runner to one GPU, so nobody hit it. c9b81be flags only the canvas rows and reads them from the first canvas row via llama_get_logits_ith; the visual server also answers --capabilities with multi_gpu_split so Studio only splits with a fixed build. Two files, +11/-6, examples only (no ggml or src change).

Verification

  • Numeric gate (llama_pinset.py gate --model diffusiongemma, fixed seed): A=6431891, B=c9b81be, C=c9b81be+master (259d7be), each twice: all identical to A.
  • Single GPU, llama-diffusion-cli base vs patched, twice each: byte-identical text with the default path, with --diffusion-kv-cache on --diffusion-gpu-sampling off, and with --diffusion-kv-cache off --diffusion-gpu-sampling off (the path the visual server takes on more than one GPU).
  • 2x T4 (Kaggle), DiffusionGemma Q4_K_M (16.8 GB) split 11.9 GB / 9.0 GB through unsloth_zoo's VisualServer: 6431891 aborts on the first request; c9b81be answers a short prompt (4), a 1007-token prompt over 4 blocks (1024 tokens, 34 steps) and a second turn (12). The shipped b11541-mix-2500203 prebuilt aborts the same way as 6431891.
  • Merge loop, pin_contract.py and merge_checks.py with this pin set: all 15 pins merge, intact and clean on b11558 and b11559. audit --pr-set: 15/15 clean, feature-checks coverage ok.
  • verify --tag b11558 --cuda: CPU gate, feature_matrix CPU (7/7), full CUDA build, test-chat, test-backend-ops PAD 37/37 and GET_ROWS 216/216 pass; MUL_MAT passed 2483/2483 on a rerun (2482/2483 on the first pass, not reproduced).
  • test-backend-ops -o MUL_MAT_ID fails on CUDA, pre-existing upstream: ggml-org#29998 (in b11554 and later) added dup=1 cases (duplicate expert ids) and changed only the Vulkan backend. Plain upstream b11558 with no pins fails the same five dup=1 cases (f16 and q8_0, ERR 1.44 to 1.84) and then hits CUDA error: an illegal memory access on a B200, identical to the merged tree.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 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-10-11T23:48:59.677720Z 05b3597 PR opened
ℹ️ 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.

@danielhanchen
danielhanchen merged commit 1cbbdc9 into master Oct 12, 2026
@danielhanchen

Copy link
Copy Markdown
Member Author

verify --tag b11559 --cuda with this pin set: CPU gate, feature_matrix CPU (7/7) and GPU (all 7 features demonstrated on GPU), full CUDA build, test-chat, test-backend-ops MUL_MAT 2483/2483, PAD 37/37 and GET_ROWS 216/216 pass. MUL_MAT_ID fails only on the upstream dup=1 cases from ggml-org#29998, as on b11558 (plain upstream b11558 fails them identically).

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.

1 participant