Skip to content

Vulkan: H3 AV DGL graphs fail at DiT segment 42/54 weight prep on RADV UMA (upstream example reproduces) #2439

Done

Description

@unico123

Environment

  • Ryzen AI 9 HX 470 (Strix Halo): Radeon 890M (RADV STRIX1, UMA) + RX 5700 XT (RADV NAVI10)
  • mesa/RADV 26.0.8, kernel 7.0.0-44-generic, Ubuntu
  • stable-diffusion.cpp master (e637c7b / 7c78b56 both tested), ggml pinned eeda9ec ("sync: update ggml to 1.0.0")
  • build: -DSD_VULKAN=ON, Release

Repro

./bin/sd-cli -M dgl --script docs/dgl/minimax_h3/minimax-h3-text-to-av.dgl --max-vram 16

(upstream example verbatim, only model paths/size adjusted: 512x320, 32 frames, Q8 GGUF)

Fails during the first sampling pass at DiT segment 42/54 (minimax_h3.blocks.38) weight
preparation
:

[E] minimax_h3 segment 42/54 (minimax_h3.blocks.38) failed during weight preparation
execution engine cannot make enough memory available on Vulkan0:
  need 950.26 MB device / 481.41 MB budget, available 773.01 MB device / 15639.09 MB budget

On the 8 GB RX 5700 XT the same graph dies with radv/amdgpu: Not enough memory for command submission → vk::DeviceLostError, independent of resolution.

Observations

  • Failure point is resolution-, --max-vram (6/16)-, device-count- and params-backend-independent;
    segment 42 is always the first failure, suggesting a cumulative allocation/state limit around
    ~4k Vulkan memory allocations (RADV maxMemoryAllocationCount) rather than a real capacity
    shortfall — the UMA pool has ~16 GB free when it trips.
  • The same checkpoint runs fine on an older vendor tree with the previous ggml, so this looks
    like a regression in the new ggml/DGL memory path on RADV, not a hardware capacity issue.
  • On NAVI10 (5700 XT) with ggml 1.0.0, the conv2d/conv3d direct auto-probes also fail
    ("probe output check failed"); the older ggml passes these probes.
  • Workaround that gets past prompt encoding on the 890M: load the text encoder with
    backend = "cpu" in the DGL script.
  • Full logs available on request.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions