Skip to content

[Bug] MiniMax-H3 video generation fails: qwen3vl prepare graph weights failed (sd-cli exited -6) #8666

Closed

Description

@luoei

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

  1. Launch Unsloth Desktop (v0.1.701-beta) on Ubuntu 24.04.
  2. Select a MiniMax-H3 GGUF model (the issue occurs with multiple quantizations, including UD-Q2_K_XL, Q6_K, etc.).
  3. 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.cpp engine version reported is b10360-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) and Ref2VA (References) model variants.
  • This appears similar to issues previously reported with vLLM where qwen3vl weight 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

  1. Is there a specific llama.cpp / stable-diffusion.cpp engine version that is confirmed to work with MiniMax-H3?
  2. Are there any specific model variants from Hugging Face that are known to be compatible (e.g., molbal/MiniMax-H3-GGUF vs joeygambino/MiniMax-H3-GGUF)?
  3. Is there a temporary workaround (e.g., environment variable to bypass Qwen3VL loading) while waiting for a proper fix?

Activity

  1. ancaglon1 commented on Aug 13, 2026

    @ancaglon1

    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.

  2. danielhanchen commented on Sep 15, 2026

    @danielhanchen
    Member

    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's docker exec <container> unsloth-studio-update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions