Skip to content

Fix use case for video model - #11214

Merged
mudler merged 1 commit into
mudler:masterfrom
jimmykarily:fix/wan-gallery-video-usecase
Jul 30, 2026
Merged

Fix use case for video model#11214
mudler merged 1 commit into
mudler:masterfrom
jimmykarily:fix/wan-gallery-video-usecase

Conversation

@jimmykarily

Copy link
Copy Markdown
Contributor

gallery/wan-ggml.yaml never set known_usecases, so the four WAN 2.1 GGML entries sharing it fell back to GuessUsecases, which reads the backend name only. imageBackends carries stablediffusion-ggml, videoBackends does not, so WAN checkpoints came out FLAG_IMAGE and never FLAG_VIDEO.

So /video rejected them and the WebUI listed them under image generation. Picking one there ran a video architecture through generate_image() with no frame count, and stable-diffusion.cpp divided by the resulting zero:

[INFO ] stable-diffusion.cpp:5133 - generating image: 1/1 - seed 1872578027
SIGFPE: floating-point exception

The backend process dies, the request 500s.

Fixed the same way gallery/ltx-ggml.yaml already does it for LTX-Video.

Notes for Reviewers

  • Shared base config, so this covers all four WAN entries. None override known_usecases; nothing else references the file.
  • Does not fully close the crash: HasUsecases is additive, so FLAG_IMAGE still falls through to GuessUsecases. These gain /video but stay in the
    image picker. A real gate needs stablediffusion-ggml handled in the GuessUsecases image/video split, or a guard in the backend. Happy to follow up if you have a preference.

Signed commits

  • Yes, I signed my commits.
  • Documentation updated, or not applicable

Co-Authored-With: Claude AI

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
@mudler
mudler merged commit d27c5e8 into mudler:master Jul 30, 2026
1 check passed
@localai-bot localai-bot added the bug Something isn't working label Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants