Repository navigation
Description
Summary
Reported by users in the Unsloth Discord, on 2x RTX 3090 (24 GB each). DiffusionGemma (unsloth/diffusiongemma-26B-A4B-it) has two separate gaps in Studio:
- Inference: runs on a single GPU only. A model too big for one card (the BF16 GGUF at ~50 GB) overflows it and never finishes loading.
- Training: currently fails to load at all on the bundled
transformers==4.57.6, so the multi-GPU training path can't even be reached.
Inference (single-GPU runner)
DiffusionGemma is served by a dedicated single-GPU runner (unsloth_zoo.diffusion_studio.shim -> llama-diffusion-gemma-visual-server), launched with --gpu 0 and CUDA_VISIBLE_DEVICES masked to a single device. It does not go through llama-server, so the normal chat-inference multi-GPU split does not apply, and the Tensor Parallelism toggle cannot reach it (#6321 makes Studio correctly report TP as disabled for DiffusionGemma).
How we would add it: the visual-server is a llama.cpp fork, so it already has llama.cpp's split machinery. The capacity fix is a layer split (--split-mode layer) across both cards so the ~50 GB BF16 weights fit on 2x24 GB, plus stop masking the child process to a single GPU in the shim/engine. This is sharding-to-fit, not a speedup, and it depends on the visual-server build honoring a multi-device load.
Repro: the runner launches on GPU 0 only and puts all weights on CUDA0, nothing on CUDA1, then stalls at the worst-case graph reservation and never completes:
--gpu 0 --maxtok 0
load_tensors: offloaded 31/31 layers to GPU
load_tensors: CUDA0 model buffer size = 48184.41 MiB
llama_context: n_ctx = 65536
graph_reserve: reserving a graph for ubatch with n_tokens = 65536, ...
The model does not fit one 24 GB card, so on Windows it spills into shared system memory and presents as a hang rather than a clean out-of-memory error.
Training (currently blocked on transformers version)
Training DiffusionGemma in Studio fails immediately at model load. This is not VRAM or multi-GPU, it is a version gate:
`unsloth/diffusiongemma-26B-A4B-it` is not supported yet in `transformers==4.57.6`.
Please update transformers via `pip install --upgrade transformers` and try again.
Raised by FastLanguageModel.from_pretrained (unsloth/models/loader.py) when the installed transformers does not register the DiffusionGemma architecture. Studio's training environment is on transformers 4.57.6, which predates DiffusionGemma support, so the model can't be loaded for training at all and the run errors at 0% with no VRAM use.
Once a transformers build that ships DiffusionGemma is in place, the multi-GPU training path should work through the existing device_map="balanced" sharding (FastDiffusionModel.from_pretrained accepts a device_map). Caveat for 2x24 GB specifically: the 26B is ~48 GB even in 4-bit, because bitsandbytes skips the MoE experts (they stay bf16), so it likely will not fit two 3090s for training regardless.
Desired behavior
- DiffusionGemma inference loads across multiple GPUs (layer split) so large GGUFs fit instead of overflowing a single card.
- Studio's training environment ships a transformers new enough to load DiffusionGemma, so training can be run (and reach the multi-GPU sharding path) at all.
Environment
- Windows 10/11, 2x RTX 3090 24 GB, Unsloth Studio
- Inference model:
unsloth/diffusiongemma-26B-A4B-it-GGUF(BF16 and Q4) - Training model:
unsloth/diffusiongemma-26B-A4B-it, QLoRA
Workaround
- Inference: use a quant that fits in 24 GB, e.g. Q4_K_M (16.8 GB) or Q5_K_M (19.2 GB). Q8_0 (26.9 GB) and BF16 (50.5 GB) will not fit one card.
- Training: blocked until the transformers version is bumped; no current workaround inside Studio.
Related
- [Studio] DiffusionGemma GGUF does not appear to use Tensor Parallelism on dual GPUs #6319 [Studio] DiffusionGemma GGUF does not appear to use Tensor Parallelism on dual GPUs
- Fix GPU selection for DiffusionGemma Studio loads #6321 Fix GPU selection for DiffusionGemma Studio loads
Activity
[-][Studio] Add multi-GPU loading for DiffusionGemma so large GGUFs can run across multiple cards[/-][+][Studio] Multi-GPU support for DiffusionGemma inference (parity with training)[/+][-][Studio] Multi-GPU support for DiffusionGemma inference (parity with training)[/-][+][Studio] Multi-GPU support for DiffusionGemma inference[/+][-][Studio] Multi-GPU support for DiffusionGemma inference[/-][+][Studio] DiffusionGemma multi-GPU inference + training blocked on transformers 4.57.6[/+][-][Studio] DiffusionGemma multi-GPU inference + training blocked on transformers 4.57.6[/-][+][Bug] DiffusionGemma multi-GPU inference + training blocked on transformers 4.57.6[/+][-][Bug] DiffusionGemma multi-GPU inference + training blocked on transformers 4.57.6[/-][+][Bug] DiffusionGemma: multi-GPU inference + training blocked on transformers 4.57.6[/+]danielhanchen commentedon Oct 12, 2026
Fixed! Sorry on the delay. DiffusionGemma's runner crashed on the first message whenever the model was split across more than one GPU, so Studio always kept it on a single card and large GGUFs like BF16 or Q8_0 never loaded on 2x 24 GB. The runner fix is in unslothai/llama.cpp#262 and the Studio side, which spreads a GGUF that does not fit one GPU across your GPUs, is in #13291; it will be fixed in the next llama.cpp prebuilt release, which
unsloth studio update(ordocker exec <container> unsloth-llama-updatefor Docker) will pick up. Training DiffusionGemma in Studio is a separate item and is not covered by this fix.Reopen if it still happens.