Repository navigation
Description
When using Unsloth Desktop to generate a video with the MiniMax-H3 model, the generation process consistently fails with an sd-cli exited -6 error.
The error log shows that the Qwen3VL text encoder fails to load its weights, causing hidden_states.empty() assertion failure:
[ERROR] ggml_extend.hpp:1948 - qwen3vl prepare graph weights failed
/home/runner/work/stable-diffusion.cpp/stable-diffusion.cpp/src/src/conditioning/conditioner.hpp:2058: GGML_ASSERT(!hidden_states.empty()) failed
This suggests the underlying stable-diffusion.cpp engine is unable to correctly parse the Qwen3VL weights included with the MiniMax-H3 GGUF model.
Environment
Software:
- Unsloth Desktop version: v0.1.701-beta
- Unsloth package version: 2026.8.15
- llama.cpp version: b10360-mix-87da1a2 (as reported by Unsloth Studio)
- OS: Ubuntu 24.04.4 LTS (Noble Numbat)
- Python: 3.13
Hardware:
- CPU: 16 logical cores / 8 physical cores @ ~830MHz
- RAM: 31.1 GiB total (28.9 GiB available, ~7% used)
- GPU 0: NVIDIA GeForce RTX 5060 Ti (15.9 GiB VRAM total, 15.7 GiB available, ~1% used)
- GPU 1: NVIDIA GeForce RTX 3070 (8 GiB VRAM total, 7.98 GiB available, ~0% used)
- CUDA Version: 13.3
- Driver Version: 610.43.02
- Disk: 1 TB total (617.6 GiB available, ~35% used)
Steps to Reproduce
- Launch Unsloth Desktop (v0.1.701-beta) on Ubuntu 24.04.
- Select a MiniMax-H3 GGUF model (the issue occurs with multiple quantizations, including
UD-Q2_K_XL,Q6_K, etc.). - Enter a text prompt and attempt to generate a video.
Actual Behavior
The generation process crashes with the error above. The issue appears to be triggered during the "prepare graph weights" stage for the Qwen3VL component. At the time of crash, the RTX 5060 Ti shows minimal VRAM usage (~0.24 GiB), indicating the model fails to load properly before consuming significant memory.
Expected Behavior
The video generation should complete successfully, using the Qwen3VL text encoder to process the input text.
What I've Tried (Still Failing)
- ✅ Re-downloading MiniMax-H3 model files (multiple quantizations)
- ✅ Clearing Hugging Face cache (
~/.cache/huggingface/hub/models--MiniMax-H3-*) - ✅ Confirming latest Unsloth version (
v0.1.701-beta/2026.8.15) - ✅ Ensuring sufficient VRAM (16GB should be adequate for quantized models)
Additional Context
- The
llama.cppengine version reported isb10360-mix-87da1a2. Based on community discussions, older versions of the llama.cpp/stable-diffusion.cpp engine lack complete support for the Qwen3VL architecture, leading to this exact error. - The issue occurs on both
FL2VA(Text & frames) andRef2VA(References) model variants. - This appears similar to issues previously reported with vLLM where
qwen3vlweight loading required specific handling for fused QKV projections.
Full Stack Trace
[ERROR] ggml_extend.hpp:1948 - qwen3vl prepare graph weights failed
/home/runner/work/stable-diffusion.cpp/stable-diffusion.cpp/src/src/conditioning/conditioner.hpp:2058: GGML_ASSERT(!hidden_states.empty()) failed
/home/build/.unsloth/stable-diffusion.cpp/sd-master-813-bfbef5b-u13b9d92-bin-Linux-Ubuntu-22.04-x86_64-cuda12/sd-cli(+0x1330c4b)[0x...]
/home/build/.unsloth/stable-diffusion.cpp/sd-master-813-bfbef5b-u13b9d92-bin-Linux-Ubuntu-22.04-x86_64-cuda12/sd-cli(+0x133122f)[0x...]
/home/build/.unsloth/stable-diffusion.cpp/sd-master-813-bfbef5b-u13b9d92-bin-Linux-Ubuntu-22.04-x86_64-cuda12/sd-cli(+0x13313fe)[0x...]
/home/build/.unsloth/stable-diffusion.cpp/sd-master-813-bfbef5b-u13b9d92-bin-Linux-Ubuntu-22.04-x86_64-cuda12/sd-cli(+0x454e1e)[0x...]
/home/build/.unsloth/stable-diffusion.cpp/sd-master-813-bfbef5b-u13b9d92-bin-Linux-Ubuntu-22.04-x86_64-cuda12/sd-cli(+0x455320)[0x...]
/home/build/.unsloth/stable-diffusion.cpp/sd-master-813-bfbef5b-u13b9d92-bin-Linux-Ubuntu-22.04-x86_64-cuda12/sd-cli(+0x27dde4)[0x...]
/home/build/.unsloth/stable-diffusion.cpp/sd-master-813-bfbef5b-u13b9d92-bin-Linux-Ubuntu-22.04-x86_64-cuda12/sd-cli(+0x7227f)[0x...]
/lib/x86_64-linux-gnu/libc.so.6(+0x2a1ca)[0x...]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x8b)[0x...]
/home/build/.unsloth/stable-diffusion.cpp/sd-master-813-bfbef5b-u13b9d92-bin-Linux-Ubuntu-22.04-x86_64-cuda12/sd-cli(+0xdbbd5)[0x...]
Questions / Request for Help
- Is there a specific
llama.cpp/stable-diffusion.cppengine version that is confirmed to work with MiniMax-H3? - Are there any specific model variants from Hugging Face that are known to be compatible (e.g.,
molbal/MiniMax-H3-GGUFvsjoeygambino/MiniMax-H3-GGUF)? - Is there a temporary workaround (e.g., environment variable to bypass Qwen3VL loading) while waiting for a proper fix?
Activity
ancaglon1 commentedon Aug 13, 2026
Same error on a 3090 -- agentic debugging suggested this is trying to load the text encoder, the vision model, the video model and the vae into GPU memory at once -- and that only the text encoder and VAE can be offloaded to CPU.
danielhanchen commentedon Sep 15, 2026
This should be fixed now! It was a Qwen3VL weight-parsing gap in the older stable-diffusion.cpp build, and MiniMax-H3 GGUF with the qwen3vl encoder loads and generates a full video end to end on current builds. Updating Studio refetches that prebuilt, so do that first. If it still fails on your 16 GB card please open a fresh issue with the load log, since that would be memory headroom rather than Qwen3VL support, and reopen here if I have that wrong!
To update: Studio is
unsloth studio update, Unsloth Desktop updates from its update banner, and in Docker it'sdocker exec <container> unsloth-studio-update.