mirror of
https://github.com/p-e-w/heretic.git
synced 2026-12-03 18:42:57 +07:00
[GH-ISSUE #527] Qwen3-VL-30B-A3B bnb_4bit loading: CPU/disk dispatch error on RTX 3060 12GB #223
Labels
No labels
bug
enhancement
enhancement
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
p-e-w/heretic#223
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kbuwel on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/527
Problem
Loading a local Qwen3-VL-30B-A3B model with bitsandbytes 4-bit quantization fails with “Some modules are dispatched on the CPU or the disk”, followed by the generic dtype-exhaustion exception.
Observed command
Run from
D:\hereticin a Windows Anaconda environment:text_encoderis the local model argument actually shown in the log. The model was identified as Qwen3-VL-30B-A3B; the exact upstream checkpoint/variant and local config are not available. No explicit device-map override appears in the command. This concerns automatic placement/offload; the effective configuration and generated device map have not been captured.Environment (from the original screenshots)
2.0.0.dev0(source checkout; commit unknown)13.0, driver617.42Observed errors
Both the
autoandfloat16attempts visibly fail with:The final traceback ends at
src/heretic/model.py:208:A separate warning says Triton was not found and FLOP counting will not work for Triton kernels.
Question / requested improvement
Is CPU offload supported for this 4-bit loading path, and if so, what Heretic configuration is supported? If it is unsupported, could Heretic report that limitation and actionable memory/device-map guidance instead of ending with only the generic dtype-exhaustion exception?
Insufficient VRAM is a plausible explanation, not a confirmed Heretic defect. I have not verified that the upstream error's suggested offload flag alone is sufficient or compatible with Heretic's later processing.
Duplicate check
Searched open and closed issues for Qwen3/VL, 30B, bnb_4bit, offload, and the dispatched-modules error. Related: #18 (VL AutoModel support), #84 (VL intermediate-size error), #179 (blockwise loading/offload discussion), #123 (later-stage VRAM use). None found describes this specific loading failure.
@p-e-w commented on GitHub (Oct 26, 2026):
Yes and no.
bitsandbytes does support it, but only if you pass additional arguments to
BitsAndBytesConfig, which we currently don't do. So Heretic can't actually do this.However, there is also very little point in doing so, as CPU offload with Transformers is simply unusably slow. Transformers is not llama.cpp; it doesn't have highly optimized CPU kernels, optimized memory transfer paths etc. A CPU offload can easily be 100 times slower than a GPU load with Transformers. We're talking 1-5 tokens/s for small models, when we want at least hundreds, better thousands, of tokens/s.
Perhaps my knowledge is outdated here as both Transformers and bnb have pushed several interesting updates recently, but CPU Heretic isn't something I ever really think about as even with models < 1B, a full run can take hours.