mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-08 20:42:32 +08:00
mp: big bump on the VBAR sizes
Now that the model defined dtype is decoupled from the state_dict dtypes we need to be able to handle worst case scenario casts between the SD and VBAR.
This commit is contained in:
parent
19c9219fe4
commit
8371708e09
@ -1423,7 +1423,10 @@ class ModelPatcherDynamic(ModelPatcher):
|
|||||||
return None
|
return None
|
||||||
vbar = self.model.dynamic_vbars.get(self.load_device, None)
|
vbar = self.model.dynamic_vbars.get(self.load_device, None)
|
||||||
if create and vbar is None:
|
if create and vbar is None:
|
||||||
vbar = comfy_aimdo.model_vbar.ModelVBAR(self.model_size() * 1.2, self.load_device.index)
|
# x10. We dont know what model defined type casts we have in the vbar, but virtual address
|
||||||
|
# space is pretty free. This will cover someone casting an entire model from FP4 to FP32
|
||||||
|
# with some left over.
|
||||||
|
vbar = comfy_aimdo.model_vbar.ModelVBAR(self.model_size() * 10, self.load_device.index)
|
||||||
self.model.dynamic_vbars[self.load_device] = vbar
|
self.model.dynamic_vbars[self.load_device] = vbar
|
||||||
return vbar
|
return vbar
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user