mirror of
https://github.com/vladmandic/automatic
synced 2026-09-17 16:24:33 +02:00
5257b5cba9
The prompt-enhancer grafts an lm_head onto the shared Qwen3-VL body, so its forward needs a device guard the stock forward lacks. Applying that patch globally at load left it active for the whole process, including unrelated Qwen3-VL users such as the VQA captioner. Apply the hijack around the enhancer generate call and restore the stock forward in a finally, so the patch affects only the ideogram enhancer.