[Bugfix] Fix quantized model initialization failure with prefetch offloading (#40432)

Signed-off-by: Rishapveer Singh <singhrishapveer@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
Rishapveer Singh
2026-04-21 20:15:58 -07:00
committed by GitHub
co-authored by mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 3951d3eacd
commit 9b60e2ffaa
+2 -1
View File
@@ -21,6 +21,7 @@ import torch.nn as nn
import vllm.model_executor.offloader.prefetch_ops # noqa: F401
from vllm.logger import init_logger
from vllm.model_executor.offloader.base import BaseOffloader, should_pin_memory
from vllm.utils.torch_utils import get_dtype_size
logger = init_logger(__name__)
@@ -53,7 +54,7 @@ class ParamInfo:
numel = 1
for dim in self.shape:
numel *= dim
return numel * torch.finfo(self.dtype).bits // 8
return numel * get_dtype_size(self.dtype)
class StaticBufferPool: