vllm - ✅(Solved) Fix [Bug]: Inflight bitsandbytes quanitzation error in GLM-4.6V-Flash [1 pull requests, 3 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vllm-project/vllm#37934Fetched 2026-04-08 01:22:34
View on GitHub
Comments
3
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
commented ×3cross-referenced ×1labeled ×1

Error Message

(Worker_TP1 pid=1277) INFO 03-23 21:44:18 [bitsandbytes_loader.py:786] Loading weights with BitsAndBytes quantization. May take a while ... (Worker_TP0 pid=1276) INFO 03-23 21:44:18 [bitsandbytes_loader.py:786] Loading weights with BitsAndBytes quantization. May take a while ... Loading safetensors checkpoint shards: 0% Completed | 0/4 [00:00<?, ?it/s] Loading safetensors checkpoint shards: 25% Completed | 1/4 [00:01<00:04, 1.46s/it] Loading safetensors checkpoint shards: 50% Completed | 2/4 [00:03<00:03, 1.81s/it] Loading safetensors checkpoint shards: 75% Completed | 3/4 [00:05<00:01, 1.97s/it] (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] WorkerProc failed to start. (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] Traceback (most recent call last): (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 821, in worker_main (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] worker = WorkerProc(*args, **kwargs) (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^^^^^^^ (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] return func(*args, **kwargs) (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^ (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 619, in init (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] self.worker.load_model() (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_worker.py", line 335, in load_model (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] self.model_runner.load_model(load_dummy_weights=dummy_weights) (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] return func(*args, **kwargs) (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^ (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_model_runner.py", line 4497, in load_model (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] self.model = model_loader.load_model( (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^^^^ (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] return func(*args, **kwargs) (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^ (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/base_loader.py", line 62, in load_model (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] self.load_weights(model, model_config) (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/bitsandbytes_loader.py", line 794, in load_weights (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] loaded_weights = model.load_weights(qweight_iterator) (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/glm4_1v.py", line 1708, in load_weights (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] return loader.load_weights(weights, mapper=self.hf_to_vllm_mapper) (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/reload/torchao_decorator.py", line 50, in patched_model_load_weights (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] return original_load_weights(self, weights, *args, **kwargs) (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 348, in load_weights (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] autoloaded_weights = set(self._load_module("", self.module, weights)) (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 295, in _load_module (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] yield from self._load_module( (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 268, in _load_module (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] loaded_params = module_load_weights(weights) (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/glm4_1v.py", line 811, in load_weights (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] weight_loader(param, loaded_weight, shard_id) (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/linear.py", line 855, in weight_loader (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] assert param_data.shape == loaded_weight.shape (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] AssertionError (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] WorkerProc failed to start. (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] Traceback (most recent call last): (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 821, in worker_main (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] worker = WorkerProc(*args, **kwargs) (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^^^^^^^ (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] return func(*args, **kwargs) (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^ (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 619, in init (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] self.worker.load_model() (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_worker.py", line 335, in load_model (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] self.model_runner.load_model(load_dummy_weights=dummy_weights) (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] return func(*args, **kwargs) (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^ (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_model_runner.py", line 4497, in load_model (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] self.model = model_loader.load_model( (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^^^^ (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] return func(*args, **kwargs) (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^ (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/base_loader.py", line 62, in load_model (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] self.load_weights(model, model_config) (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/bitsandbytes_loader.py", line 794, in load_weights (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] loaded_weights = model.load_weights(qweight_iterator) (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/glm4_1v.py", line 1708, in load_weights (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] return loader.load_weights(weights, mapper=self.hf_to_vllm_mapper) (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/reload/torchao_decorator.py", line 50, in patched_model_load_weights (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] return original_load_weights(self, weights, *args, **kwargs) (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 348, in load_weights (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] autoloaded_weights = set(self._load_module("", self.module, weights)) (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 295, in _load_module (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] yield from self._load_module( (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 268, in _load_module (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] loaded_params = module_load_weights(weights) (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/glm4_1v.py", line 811, in load_weights (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] weight_loader(param, loaded_weight, shard_id) (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/linear.py", line 855, in weight_loader (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] assert param_data.shape == loaded_weight.shape (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] AssertionError Loading safetensors checkpoint shards: 75% Completed | 3/4 [00:07<00:02, 2.37s/it] (Worker_TP0 pid=1276)

Fix Action

Fix / Workaround

============================== CPU Info

Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 43 bits physical, 48 bits virtual Byte Order: Little Endian CPU(s): 48 On-line CPU(s) list: 0-47 Vendor ID: AuthenticAMD Model name: AMD Ryzen Threadripper 3960X 24-Core Processor CPU family: 23 Model: 49 Thread(s) per core: 2 Core(s) per socket: 24 Socket(s): 1 Stepping: 0 Frequency boost: enabled CPU max MHz: 3800.0000 CPU min MHz: 2200.0000 BogoMIPS: 7600.72 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd amd_ppin arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sme sev sev_es ibpb_exit_to_user Virtualization: AMD-V L1d cache: 768 KiB (24 instances) L1i cache: 768 KiB (24 instances) L2 cache: 12 MiB (24 instances) L3 cache: 128 MiB (8 instances) NUMA node(s): 1 NUMA node0 CPU(s): 0-47 Vulnerability Gather data sampling: Not affected Vulnerability Indirect target selection: Not affected Vulnerability Itlb multihit: Not affected Vulnerability L1tf: Not affected Vulnerability Mds: Not affected Vulnerability Meltdown: Not affected Vulnerability Mmio stale data: Not affected Vulnerability Reg file data sampling: Not affected Vulnerability Retbleed: Mitigation; untrained return thunk; SMT enabled with STIBP protection Vulnerability Spec rstack overflow: Mitigation; safe RET Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP always-on; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected Vulnerability Srbds: Not affected Vulnerability Tsa: Not affected Vulnerability Tsx async abort: Not affected Vulnerability Vmscape: Mitigation; IBPB before exit to userspace

(Worker_TP1 pid=1277) INFO 03-23 21:44:18 [bitsandbytes_loader.py:786] Loading weights with BitsAndBytes quantization. May take a while ...
(Worker_TP0 pid=1276) INFO 03-23 21:44:18 [bitsandbytes_loader.py:786] Loading weights with BitsAndBytes quantization. May take a while ...
Loading safetensors checkpoint shards:   0% Completed | 0/4 [00:00<?, ?it/s]
Loading safetensors checkpoint shards:  25% Completed | 1/4 [00:01<00:04,  1.46s/it]
Loading safetensors checkpoint shards:  50% Completed | 2/4 [00:03<00:03,  1.81s/it]
Loading safetensors checkpoint shards:  75% Completed | 3/4 [00:05<00:01,  1.97s/it]
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] WorkerProc failed to start.
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] Traceback (most recent call last):
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 821, in worker_main
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     worker = WorkerProc(*args, **kwargs)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return func(*args, **kwargs)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 619, in __init__
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.worker.load_model()
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_worker.py", line 335, in load_model
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.model_runner.load_model(load_dummy_weights=dummy_weights)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return func(*args, **kwargs)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_model_runner.py", line 4497, in load_model
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.model = model_loader.load_model(
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                  ^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return func(*args, **kwargs)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/base_loader.py", line 62, in load_model
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.load_weights(model, model_config)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/bitsandbytes_loader.py", line 794, in load_weights
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     loaded_weights = model.load_weights(qweight_iterator)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/glm4_1v.py", line 1708, in load_weights
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return loader.load_weights(weights, mapper=self.hf_to_vllm_mapper)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/reload/torchao_decorator.py", line 50, in patched_model_load_weights
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return original_load_weights(self, weights, *args, **kwargs)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 348, in load_weights
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     autoloaded_weights = set(self._load_module("", self.module, weights))
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 295, in _load_module
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     yield from self._load_module(
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 268, in _load_module
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     loaded_params = module_load_weights(weights)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/glm4_1v.py", line 811, in load_weights
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     weight_loader(param, loaded_weight, shard_id)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/linear.py", line 855, in weight_loader
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     assert param_data.shape == loaded_weight.shape
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] AssertionError
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] WorkerProc failed to start.
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] Traceback (most recent call last):
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 821, in worker_main
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     worker = WorkerProc(*args, **kwargs)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return func(*args, **kwargs)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 619, in __init__
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.worker.load_model()
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_worker.py", line 335, in load_model
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.model_runner.load_model(load_dummy_weights=dummy_weights)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return func(*args, **kwargs)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_model_runner.py", line 4497, in load_model
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.model = model_loader.load_model(
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                  ^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return func(*args, **kwargs)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/base_loader.py", line 62, in load_model
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.load_weights(model, model_config)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/bitsandbytes_loader.py", line 794, in load_weights
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     loaded_weights = model.load_weights(qweight_iterator)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/glm4_1v.py", line 1708, in load_weights
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return loader.load_weights(weights, mapper=self.hf_to_vllm_mapper)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/reload/torchao_decorator.py", line 50, in patched_model_load_weights
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return original_load_weights(self, weights, *args, **kwargs)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 348, in load_weights
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     autoloaded_weights = set(self._load_module("", self.module, weights))
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 295, in _load_module
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     yield from self._load_module(
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 268, in _load_module
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     loaded_params = module_load_weights(weights)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/glm4_1v.py", line 811, in load_weights
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     weight_loader(param, loaded_weight, shard_id)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/linear.py", line 855, in weight_loader
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     assert param_data.shape == loaded_weight.shape
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] AssertionError
Loading safetensors checkpoint shards:  75% Completed | 3/4 [00:07<00:02,  2.37s/it]
(Worker_TP0 pid=1276)

PR fix notes

PR #38010: [Model] Fix BitsAndBytes quantization for GLM-4.1V/4.6V-Flash vision encoder

Description (problem / solution / changelog)

Fix BitsAndBytes quantization crash for GLM-4.1V / GLM-4.6V-Flash models when loading with 4-bit (NF4/FP4) quantization. The server raises an AssertionError immediately at model load time. It affects GLM-4.1V-9B-Flash and GLM-4.6V-Flash whenever --quantization bitsandbytes is passed.

  • The vision encoder stores its FFN weights split on disk as gate_proj / up_proj and its attention weights split as attn.q / attn.k / attn.v.
  • An unquantized (full-precision) tensor was then handed to a BNB 4-bit parameter's weight_loader, which asserts shape equality — and crashes because the shapes differ.

Fixes #37934

Purpose

Fix AssertionError: assert param_data.shape == loaded_weight.shape crash when loading GLM-4.1V / GLM-4.6V-Flash with BitsAndBytes 4-bit quantization (--quantization bitsandbytes).

Root cause: packed_modules_mapping used by the BNB loader listed wrong or missing sub-module names for the vision encoder's FFN (gate_up_proj) and attention (attn.qkv) layers, so those weights were never quantized before being passed to a BNB 4-bit parameter — causing a shape mismatch assertion.

Test Plan

Reproduce the bug

# Before fix — crashes immediately at load with AssertionError
vllm serve zai-org/GLM-4.6V-Flash \ 
  --max-model-len 16384 \
  --tensor-parallel-size 2 \
  --quantization bitsandbytes

Existing tests

pytest tests/models/multimodal/processing/test_glm4_1v.py -v -s
pytest tests/models/quantization/test_bitsandbytes.py -v -s

Test Result

Before fixAfter fix
Load GLM-4.6V-Flash with --quantization bitsandbytesCrash at load (AssertionError)Model loads successfully
test_glm4_1v.pyPassPass
test_bitsandbytes.pyPassPass

<details> <summary> Essential Elements of an Effective PR Description Checklist </summary>
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.
  • (Optional) Release notes update. If your change is user facing, please update the release notes draft in the Google Doc.
</details>

Changed files

  • vllm/model_executor/models/glm4_1v.py (modified, +3/-1)

Code Example

Collecting environment information...
==============================
        System Info
==============================
OS                           : Ubuntu 22.04.5 LTS (x86_64)
GCC version                  : (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0
Clang version                : Could not collect
CMake version                : Could not collect
Libc version                 : glibc-2.35

==============================
       PyTorch Info
==============================
PyTorch version              : 2.10.0+cu129
Is debug build               : False
CUDA used to build PyTorch   : 12.9
ROCM used to build PyTorch   : N/A

==============================
      Python Environment
==============================
Python version               : 3.12.13 (main, Mar  4 2026, 09:23:07) [GCC 11.4.0] (64-bit runtime)
Python platform              : Linux-5.15.0-164-generic-x86_64-with-glibc2.35

==============================
       CUDA / GPU Info
==============================
Is CUDA available            : True
CUDA runtime version         : 12.9.86
CUDA_MODULE_LOADING set to   :
GPU models and configuration :
GPU 0: NVIDIA GeForce RTX 3090
GPU 1: NVIDIA GeForce RTX 3090

Nvidia driver version        : 580.95.05
cuDNN version                : Could not collect
HIP runtime version          : N/A
MIOpen runtime version       : N/A
Is XNNPACK available         : True

==============================
          CPU Info
==============================
Architecture:                            x86_64
CPU op-mode(s):                          32-bit, 64-bit
Address sizes:                           43 bits physical, 48 bits virtual
Byte Order:                              Little Endian
CPU(s):                                  48
On-line CPU(s) list:                     0-47
Vendor ID:                               AuthenticAMD
Model name:                              AMD Ryzen Threadripper 3960X 24-Core Processor
CPU family:                              23
Model:                                   49
Thread(s) per core:                      2
Core(s) per socket:                      24
Socket(s):                               1
Stepping:                                0
Frequency boost:                         enabled
CPU max MHz:                             3800.0000
CPU min MHz:                             2200.0000
BogoMIPS:                                7600.72
Flags:                                   fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd amd_ppin arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sme sev sev_es ibpb_exit_to_user
Virtualization:                          AMD-V
L1d cache:                               768 KiB (24 instances)
L1i cache:                               768 KiB (24 instances)
L2 cache:                                12 MiB (24 instances)
L3 cache:                                128 MiB (8 instances)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-47
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Mitigation; untrained return thunk; SMT enabled with STIBP protection
Vulnerability Spec rstack overflow:      Mitigation; safe RET
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:                Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; Retpolines; IBPB conditional; STIBP always-on; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Mitigation; IBPB before exit to userspace

==============================
Versions of relevant libraries
==============================
[pip3] flashinfer-python==0.6.6
[pip3] numpy==2.2.6
[pip3] nvidia-cublas-cu12==12.9.1.4
[pip3] nvidia-cuda-cupti-cu12==12.9.79
[pip3] nvidia-cuda-nvrtc-cu12==12.9.86
[pip3] nvidia-cuda-runtime-cu12==12.9.79
[pip3] nvidia-cudnn-cu12==9.10.2.21
[pip3] nvidia-cudnn-frontend==1.18.0
[pip3] nvidia-cufft-cu12==11.4.1.4
[pip3] nvidia-cufile-cu12==1.14.1.1
[pip3] nvidia-curand-cu12==10.3.10.19
[pip3] nvidia-cusolver-cu12==11.7.5.82
[pip3] nvidia-cusparse-cu12==12.5.10.65
[pip3] nvidia-cusparselt-cu12==0.7.1
[pip3] nvidia-cutlass-dsl==4.4.2
[pip3] nvidia-cutlass-dsl-libs-base==4.4.2
[pip3] nvidia-ml-py==13.595.45
[pip3] nvidia-nccl-cu12==2.27.5
[pip3] nvidia-nvjitlink-cu12==12.9.86
[pip3] nvidia-nvshmem-cu12==3.4.5
[pip3] nvidia-nvtx-cu12==12.9.79
[pip3] pyzmq==27.1.0
[pip3] torch==2.10.0+cu129
[pip3] torch_c_dlpack_ext==0.1.5
[pip3] torchaudio==2.10.0+cu129
[pip3] torchvision==0.25.0+cu129
[pip3] transformers==5.3.0
[pip3] triton==3.6.0
[conda] Could not collect

==============================
         vLLM Info
==============================
ROCM Version                 : Could not collect
vLLM Version                 : 0.18.0
vLLM Build Flags:
  CUDA Archs: 7.0 7.5 8.0 8.9 9.0 10.0 12.0; ROCm: Disabled
GPU Topology:
  	GPU0	GPU1	CPU Affinity	NUMA Affinity	GPU NUMA ID
GPU0	 X 	NODE	0-47	0		N/A
GPU1	NODE	 X 	0-47	0		N/A

Legend:

  X    = Self
  SYS  = Connection traversing PCIe as well as the SMP interconnect between NUMA nodes (e.g., QPI/UPI)
  NODE = Connection traversing PCIe as well as the interconnect between PCIe Host Bridges within a NUMA node
  PHB  = Connection traversing PCIe as well as a PCIe Host Bridge (typically the CPU)
  PXB  = Connection traversing multiple PCIe bridges (without traversing the PCIe Host Bridge)
  PIX  = Connection traversing at most a single PCIe bridge
  NV#  = Connection traversing a bonded set of # NVLinks

==============================
     Environment Variables
==============================
NVIDIA_VISIBLE_DEVICES=void
NVIDIA_REQUIRE_CUDA=cuda>=12.9 brand=unknown,driver>=535,driver<536 brand=grid,driver>=535,driver<536 brand=tesla,driver>=535,driver<536 brand=nvidia,driver>=535,driver<536 brand=quadro,driver>=535,driver<536 brand=quadrortx,driver>=535,driver<536 brand=nvidiartx,driver>=535,driver<536 brand=vapps,driver>=535,driver<536 brand=vpc,driver>=535,driver<536 brand=vcs,driver>=535,driver<536 brand=vws,driver>=535,driver<536 brand=cloudgaming,driver>=535,driver<536 brand=unknown,driver>=550,driver<551 brand=grid,driver>=550,driver<551 brand=tesla,driver>=550,driver<551 brand=nvidia,driver>=550,driver<551 brand=quadro,driver>=550,driver<551 brand=quadrortx,driver>=550,driver<551 brand=nvidiartx,driver>=550,driver<551 brand=vapps,driver>=550,driver<551 brand=vpc,driver>=550,driver<551 brand=vcs,driver>=550,driver<551 brand=vws,driver>=550,driver<551 brand=cloudgaming,driver>=550,driver<551 brand=unknown,driver>=560,driver<561 brand=grid,driver>=560,driver<561 brand=tesla,driver>=560,driver<561 brand=nvidia,driver>=560,driver<561 brand=quadro,driver>=560,driver<561 brand=quadrortx,driver>=560,driver<561 brand=nvidiartx,driver>=560,driver<561 brand=vapps,driver>=560,driver<561 brand=vpc,driver>=560,driver<561 brand=vcs,driver>=560,driver<561 brand=vws,driver>=560,driver<561 brand=cloudgaming,driver>=560,driver<561 brand=unknown,driver>=565,driver<566 brand=grid,driver>=565,driver<566 brand=tesla,driver>=565,driver<566 brand=nvidia,driver>=565,driver<566 brand=quadro,driver>=565,driver<566 brand=quadrortx,driver>=565,driver<566 brand=nvidiartx,driver>=565,driver<566 brand=vapps,driver>=565,driver<566 brand=vpc,driver>=565,driver<566 brand=vcs,driver>=565,driver<566 brand=vws,driver>=565,driver<566 brand=cloudgaming,driver>=565,driver<566 brand=unknown,driver>=570,driver<571 brand=grid,driver>=570,driver<571 brand=tesla,driver>=570,driver<571 brand=nvidia,driver>=570,driver<571 brand=quadro,driver>=570,driver<571 brand=quadrortx,driver>=570,driver<571 brand=nvidiartx,driver>=570,driver<571 brand=vapps,driver>=570,driver<571 brand=vpc,driver>=570,driver<571 brand=vcs,driver>=570,driver<571 brand=vws,driver>=570,driver<571 brand=cloudgaming,driver>=570,driver<571
TORCH_CUDA_ARCH_LIST=7.0 7.5 8.0 8.9 9.0 10.0 12.0
NVIDIA_DRIVER_CAPABILITIES=compute,utility
VLLM_USAGE_SOURCE=production-docker-image
CUDA_VERSION=12.9.1
VLLM_ENABLE_CUDA_COMPATIBILITY=0
LD_LIBRARY_PATH=/usr/local/nvidia/lib64:/usr/local/cuda/lib64:/usr/local/cuda/lib64
NVIDIA_CTK_LIBCUDA_DIR=/usr/lib/x86_64-linux-gnu
PYTORCH_NVML_BASED_CUDA_CHECK=1
TORCHINDUCTOR_COMPILE_THREADS=1
TORCHINDUCTOR_CACHE_DIR=/tmp/torchinductor_root

---

vllm serve zai-org/GLM-4.6V-Flash --port 80 --host 0.0.0.0 --max-model-len 16384  --tensor-parallel-size 2 --quantization bitsandbytes

---

(Worker_TP1 pid=1277) INFO 03-23 21:44:18 [bitsandbytes_loader.py:786] Loading weights with BitsAndBytes quantization. May take a while ...
(Worker_TP0 pid=1276) INFO 03-23 21:44:18 [bitsandbytes_loader.py:786] Loading weights with BitsAndBytes quantization. May take a while ...
Loading safetensors checkpoint shards:   0% Completed | 0/4 [00:00<?, ?it/s]
Loading safetensors checkpoint shards:  25% Completed | 1/4 [00:01<00:04,  1.46s/it]
Loading safetensors checkpoint shards:  50% Completed | 2/4 [00:03<00:03,  1.81s/it]
Loading safetensors checkpoint shards:  75% Completed | 3/4 [00:05<00:01,  1.97s/it]
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] WorkerProc failed to start.
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] Traceback (most recent call last):
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 821, in worker_main
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     worker = WorkerProc(*args, **kwargs)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return func(*args, **kwargs)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 619, in __init__
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.worker.load_model()
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_worker.py", line 335, in load_model
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.model_runner.load_model(load_dummy_weights=dummy_weights)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return func(*args, **kwargs)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_model_runner.py", line 4497, in load_model
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.model = model_loader.load_model(
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                  ^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return func(*args, **kwargs)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/base_loader.py", line 62, in load_model
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.load_weights(model, model_config)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/bitsandbytes_loader.py", line 794, in load_weights
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     loaded_weights = model.load_weights(qweight_iterator)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/glm4_1v.py", line 1708, in load_weights
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return loader.load_weights(weights, mapper=self.hf_to_vllm_mapper)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/reload/torchao_decorator.py", line 50, in patched_model_load_weights
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return original_load_weights(self, weights, *args, **kwargs)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 348, in load_weights
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     autoloaded_weights = set(self._load_module("", self.module, weights))
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 295, in _load_module
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     yield from self._load_module(
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 268, in _load_module
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     loaded_params = module_load_weights(weights)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/glm4_1v.py", line 811, in load_weights
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     weight_loader(param, loaded_weight, shard_id)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/linear.py", line 855, in weight_loader
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     assert param_data.shape == loaded_weight.shape
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] AssertionError
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] WorkerProc failed to start.
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] Traceback (most recent call last):
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 821, in worker_main
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     worker = WorkerProc(*args, **kwargs)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return func(*args, **kwargs)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 619, in __init__
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.worker.load_model()
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_worker.py", line 335, in load_model
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.model_runner.load_model(load_dummy_weights=dummy_weights)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return func(*args, **kwargs)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_model_runner.py", line 4497, in load_model
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.model = model_loader.load_model(
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                  ^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return func(*args, **kwargs)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/base_loader.py", line 62, in load_model
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.load_weights(model, model_config)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/bitsandbytes_loader.py", line 794, in load_weights
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     loaded_weights = model.load_weights(qweight_iterator)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/glm4_1v.py", line 1708, in load_weights
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return loader.load_weights(weights, mapper=self.hf_to_vllm_mapper)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/reload/torchao_decorator.py", line 50, in patched_model_load_weights
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return original_load_weights(self, weights, *args, **kwargs)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 348, in load_weights
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     autoloaded_weights = set(self._load_module("", self.module, weights))
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 295, in _load_module
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     yield from self._load_module(
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 268, in _load_module
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     loaded_params = module_load_weights(weights)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/glm4_1v.py", line 811, in load_weights
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     weight_loader(param, loaded_weight, shard_id)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/linear.py", line 855, in weight_loader
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     assert param_data.shape == loaded_weight.shape
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] AssertionError
Loading safetensors checkpoint shards:  75% Completed | 3/4 [00:07<00:02,  2.37s/it]
(Worker_TP0 pid=1276)
RAW_BUFFERClick to expand / collapse

Your current environment

<details> <summary>The output of <code>python collect_env.py</code></summary>
Collecting environment information...
==============================
        System Info
==============================
OS                           : Ubuntu 22.04.5 LTS (x86_64)
GCC version                  : (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0
Clang version                : Could not collect
CMake version                : Could not collect
Libc version                 : glibc-2.35

==============================
       PyTorch Info
==============================
PyTorch version              : 2.10.0+cu129
Is debug build               : False
CUDA used to build PyTorch   : 12.9
ROCM used to build PyTorch   : N/A

==============================
      Python Environment
==============================
Python version               : 3.12.13 (main, Mar  4 2026, 09:23:07) [GCC 11.4.0] (64-bit runtime)
Python platform              : Linux-5.15.0-164-generic-x86_64-with-glibc2.35

==============================
       CUDA / GPU Info
==============================
Is CUDA available            : True
CUDA runtime version         : 12.9.86
CUDA_MODULE_LOADING set to   :
GPU models and configuration :
GPU 0: NVIDIA GeForce RTX 3090
GPU 1: NVIDIA GeForce RTX 3090

Nvidia driver version        : 580.95.05
cuDNN version                : Could not collect
HIP runtime version          : N/A
MIOpen runtime version       : N/A
Is XNNPACK available         : True

==============================
          CPU Info
==============================
Architecture:                            x86_64
CPU op-mode(s):                          32-bit, 64-bit
Address sizes:                           43 bits physical, 48 bits virtual
Byte Order:                              Little Endian
CPU(s):                                  48
On-line CPU(s) list:                     0-47
Vendor ID:                               AuthenticAMD
Model name:                              AMD Ryzen Threadripper 3960X 24-Core Processor
CPU family:                              23
Model:                                   49
Thread(s) per core:                      2
Core(s) per socket:                      24
Socket(s):                               1
Stepping:                                0
Frequency boost:                         enabled
CPU max MHz:                             3800.0000
CPU min MHz:                             2200.0000
BogoMIPS:                                7600.72
Flags:                                   fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd amd_ppin arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sme sev sev_es ibpb_exit_to_user
Virtualization:                          AMD-V
L1d cache:                               768 KiB (24 instances)
L1i cache:                               768 KiB (24 instances)
L2 cache:                                12 MiB (24 instances)
L3 cache:                                128 MiB (8 instances)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-47
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Mitigation; untrained return thunk; SMT enabled with STIBP protection
Vulnerability Spec rstack overflow:      Mitigation; safe RET
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:                Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; Retpolines; IBPB conditional; STIBP always-on; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Mitigation; IBPB before exit to userspace

==============================
Versions of relevant libraries
==============================
[pip3] flashinfer-python==0.6.6
[pip3] numpy==2.2.6
[pip3] nvidia-cublas-cu12==12.9.1.4
[pip3] nvidia-cuda-cupti-cu12==12.9.79
[pip3] nvidia-cuda-nvrtc-cu12==12.9.86
[pip3] nvidia-cuda-runtime-cu12==12.9.79
[pip3] nvidia-cudnn-cu12==9.10.2.21
[pip3] nvidia-cudnn-frontend==1.18.0
[pip3] nvidia-cufft-cu12==11.4.1.4
[pip3] nvidia-cufile-cu12==1.14.1.1
[pip3] nvidia-curand-cu12==10.3.10.19
[pip3] nvidia-cusolver-cu12==11.7.5.82
[pip3] nvidia-cusparse-cu12==12.5.10.65
[pip3] nvidia-cusparselt-cu12==0.7.1
[pip3] nvidia-cutlass-dsl==4.4.2
[pip3] nvidia-cutlass-dsl-libs-base==4.4.2
[pip3] nvidia-ml-py==13.595.45
[pip3] nvidia-nccl-cu12==2.27.5
[pip3] nvidia-nvjitlink-cu12==12.9.86
[pip3] nvidia-nvshmem-cu12==3.4.5
[pip3] nvidia-nvtx-cu12==12.9.79
[pip3] pyzmq==27.1.0
[pip3] torch==2.10.0+cu129
[pip3] torch_c_dlpack_ext==0.1.5
[pip3] torchaudio==2.10.0+cu129
[pip3] torchvision==0.25.0+cu129
[pip3] transformers==5.3.0
[pip3] triton==3.6.0
[conda] Could not collect

==============================
         vLLM Info
==============================
ROCM Version                 : Could not collect
vLLM Version                 : 0.18.0
vLLM Build Flags:
  CUDA Archs: 7.0 7.5 8.0 8.9 9.0 10.0 12.0; ROCm: Disabled
GPU Topology:
  	GPU0	GPU1	CPU Affinity	NUMA Affinity	GPU NUMA ID
GPU0	 X 	NODE	0-47	0		N/A
GPU1	NODE	 X 	0-47	0		N/A

Legend:

  X    = Self
  SYS  = Connection traversing PCIe as well as the SMP interconnect between NUMA nodes (e.g., QPI/UPI)
  NODE = Connection traversing PCIe as well as the interconnect between PCIe Host Bridges within a NUMA node
  PHB  = Connection traversing PCIe as well as a PCIe Host Bridge (typically the CPU)
  PXB  = Connection traversing multiple PCIe bridges (without traversing the PCIe Host Bridge)
  PIX  = Connection traversing at most a single PCIe bridge
  NV#  = Connection traversing a bonded set of # NVLinks

==============================
     Environment Variables
==============================
NVIDIA_VISIBLE_DEVICES=void
NVIDIA_REQUIRE_CUDA=cuda>=12.9 brand=unknown,driver>=535,driver<536 brand=grid,driver>=535,driver<536 brand=tesla,driver>=535,driver<536 brand=nvidia,driver>=535,driver<536 brand=quadro,driver>=535,driver<536 brand=quadrortx,driver>=535,driver<536 brand=nvidiartx,driver>=535,driver<536 brand=vapps,driver>=535,driver<536 brand=vpc,driver>=535,driver<536 brand=vcs,driver>=535,driver<536 brand=vws,driver>=535,driver<536 brand=cloudgaming,driver>=535,driver<536 brand=unknown,driver>=550,driver<551 brand=grid,driver>=550,driver<551 brand=tesla,driver>=550,driver<551 brand=nvidia,driver>=550,driver<551 brand=quadro,driver>=550,driver<551 brand=quadrortx,driver>=550,driver<551 brand=nvidiartx,driver>=550,driver<551 brand=vapps,driver>=550,driver<551 brand=vpc,driver>=550,driver<551 brand=vcs,driver>=550,driver<551 brand=vws,driver>=550,driver<551 brand=cloudgaming,driver>=550,driver<551 brand=unknown,driver>=560,driver<561 brand=grid,driver>=560,driver<561 brand=tesla,driver>=560,driver<561 brand=nvidia,driver>=560,driver<561 brand=quadro,driver>=560,driver<561 brand=quadrortx,driver>=560,driver<561 brand=nvidiartx,driver>=560,driver<561 brand=vapps,driver>=560,driver<561 brand=vpc,driver>=560,driver<561 brand=vcs,driver>=560,driver<561 brand=vws,driver>=560,driver<561 brand=cloudgaming,driver>=560,driver<561 brand=unknown,driver>=565,driver<566 brand=grid,driver>=565,driver<566 brand=tesla,driver>=565,driver<566 brand=nvidia,driver>=565,driver<566 brand=quadro,driver>=565,driver<566 brand=quadrortx,driver>=565,driver<566 brand=nvidiartx,driver>=565,driver<566 brand=vapps,driver>=565,driver<566 brand=vpc,driver>=565,driver<566 brand=vcs,driver>=565,driver<566 brand=vws,driver>=565,driver<566 brand=cloudgaming,driver>=565,driver<566 brand=unknown,driver>=570,driver<571 brand=grid,driver>=570,driver<571 brand=tesla,driver>=570,driver<571 brand=nvidia,driver>=570,driver<571 brand=quadro,driver>=570,driver<571 brand=quadrortx,driver>=570,driver<571 brand=nvidiartx,driver>=570,driver<571 brand=vapps,driver>=570,driver<571 brand=vpc,driver>=570,driver<571 brand=vcs,driver>=570,driver<571 brand=vws,driver>=570,driver<571 brand=cloudgaming,driver>=570,driver<571
TORCH_CUDA_ARCH_LIST=7.0 7.5 8.0 8.9 9.0 10.0 12.0
NVIDIA_DRIVER_CAPABILITIES=compute,utility
VLLM_USAGE_SOURCE=production-docker-image
CUDA_VERSION=12.9.1
VLLM_ENABLE_CUDA_COMPATIBILITY=0
LD_LIBRARY_PATH=/usr/local/nvidia/lib64:/usr/local/cuda/lib64:/usr/local/cuda/lib64
NVIDIA_CTK_LIBCUDA_DIR=/usr/lib/x86_64-linux-gnu
PYTORCH_NVML_BASED_CUDA_CHECK=1
TORCHINDUCTOR_COMPILE_THREADS=1
TORCHINDUCTOR_CACHE_DIR=/tmp/torchinductor_root
</details>

🐛 Describe the bug

I am unable to launch VLLM on GLM-4.6V-Flash with inflight bitsandbytes quantization:

vllm serve zai-org/GLM-4.6V-Flash --port 80 --host 0.0.0.0 --max-model-len 16384  --tensor-parallel-size 2 --quantization bitsandbytes

It works just fine without the quantization flag.

The error is:

(Worker_TP1 pid=1277) INFO 03-23 21:44:18 [bitsandbytes_loader.py:786] Loading weights with BitsAndBytes quantization. May take a while ...
(Worker_TP0 pid=1276) INFO 03-23 21:44:18 [bitsandbytes_loader.py:786] Loading weights with BitsAndBytes quantization. May take a while ...
Loading safetensors checkpoint shards:   0% Completed | 0/4 [00:00<?, ?it/s]
Loading safetensors checkpoint shards:  25% Completed | 1/4 [00:01<00:04,  1.46s/it]
Loading safetensors checkpoint shards:  50% Completed | 2/4 [00:03<00:03,  1.81s/it]
Loading safetensors checkpoint shards:  75% Completed | 3/4 [00:05<00:01,  1.97s/it]
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] WorkerProc failed to start.
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] Traceback (most recent call last):
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 821, in worker_main
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     worker = WorkerProc(*args, **kwargs)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return func(*args, **kwargs)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 619, in __init__
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.worker.load_model()
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_worker.py", line 335, in load_model
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.model_runner.load_model(load_dummy_weights=dummy_weights)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return func(*args, **kwargs)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_model_runner.py", line 4497, in load_model
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.model = model_loader.load_model(
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                  ^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return func(*args, **kwargs)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/base_loader.py", line 62, in load_model
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.load_weights(model, model_config)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/bitsandbytes_loader.py", line 794, in load_weights
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     loaded_weights = model.load_weights(qweight_iterator)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/glm4_1v.py", line 1708, in load_weights
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return loader.load_weights(weights, mapper=self.hf_to_vllm_mapper)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/reload/torchao_decorator.py", line 50, in patched_model_load_weights
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return original_load_weights(self, weights, *args, **kwargs)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 348, in load_weights
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     autoloaded_weights = set(self._load_module("", self.module, weights))
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 295, in _load_module
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     yield from self._load_module(
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 268, in _load_module
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     loaded_params = module_load_weights(weights)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/glm4_1v.py", line 811, in load_weights
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     weight_loader(param, loaded_weight, shard_id)
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/linear.py", line 855, in weight_loader
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     assert param_data.shape == loaded_weight.shape
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP1 pid=1277) ERROR 03-23 21:44:25 [multiproc_executor.py:852] AssertionError
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] WorkerProc failed to start.
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] Traceback (most recent call last):
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 821, in worker_main
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     worker = WorkerProc(*args, **kwargs)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return func(*args, **kwargs)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 619, in __init__
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.worker.load_model()
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_worker.py", line 335, in load_model
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.model_runner.load_model(load_dummy_weights=dummy_weights)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return func(*args, **kwargs)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_model_runner.py", line 4497, in load_model
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.model = model_loader.load_model(
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                  ^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return func(*args, **kwargs)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/base_loader.py", line 62, in load_model
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     self.load_weights(model, model_config)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/bitsandbytes_loader.py", line 794, in load_weights
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     loaded_weights = model.load_weights(qweight_iterator)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/glm4_1v.py", line 1708, in load_weights
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return loader.load_weights(weights, mapper=self.hf_to_vllm_mapper)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/model_loader/reload/torchao_decorator.py", line 50, in patched_model_load_weights
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     return original_load_weights(self, weights, *args, **kwargs)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 348, in load_weights
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     autoloaded_weights = set(self._load_module("", self.module, weights))
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 295, in _load_module
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     yield from self._load_module(
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/utils.py", line 268, in _load_module
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     loaded_params = module_load_weights(weights)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/models/glm4_1v.py", line 811, in load_weights
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     weight_loader(param, loaded_weight, shard_id)
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]   File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/linear.py", line 855, in weight_loader
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]     assert param_data.shape == loaded_weight.shape
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Worker_TP0 pid=1276) ERROR 03-23 21:44:25 [multiproc_executor.py:852] AssertionError
Loading safetensors checkpoint shards:  75% Completed | 3/4 [00:07<00:02,  2.37s/it]
(Worker_TP0 pid=1276)

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

extent analysis

Fix Plan

The error occurs due to a shape mismatch between the model's parameters and the loaded weights when using BitsAndBytes quantization. To resolve this issue, we need to ensure that the model and the loaded weights have compatible shapes.

Here are the steps to fix the issue:

  • Check the model's architecture and the loaded weights to identify the source of the shape mismatch.
  • Update the model's architecture or the loaded weights to ensure compatibility.
  • If using a pre-trained model, try updating the model to the latest version or using a different pre-trained model.

Example code to check the shape of the model's parameters and the loaded weights:

import torch

# Load the model and the weights
model = torch.load('model.pth')
weights = torch.load('weights.pth')

# Check the shape of the model's parameters
for name, param in model.named_parameters():
    print(f'Parameter {name} has shape {param.shape}')

# Check the shape of the loaded weights
for name, weight in weights.items():
    print(f'Weight {name} has shape {weight.shape}')

In this example, we load the model and the weights using PyTorch's torch.load function. We then iterate over the model's parameters and the loaded weights, printing their shapes.

Verification

To verify that the fix worked, try running the model with the updated architecture or loaded weights. If the shape mismatch error is resolved, the model should run without errors.

Example code to verify the fix:

# Load the updated model and weights
updated_model = torch.load('updated_model.pth')
updated_weights = torch.load('updated_weights.pth')

# Try running the model with the updated weights
updated_model.load_state_dict(updated_weights)

In this example, we load the updated model and weights, and then try running the model with the updated weights. If the shape mismatch error is resolved, the model should run without errors.

Extra Tips

  • When using pre-trained models, make sure to check the model's documentation for any specific requirements or constraints on the input data or weights.
  • When loading weights, make sure to check the weights' shape and ensure that it matches the model's expected input shape.
  • If you're still encountering issues, try checking the model's architecture and the loaded weights for any inconsistencies or errors.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING