mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-30 11:11:37 +00:00
Speed up omnigen TE loading
This commit is contained in:
@@ -84,7 +84,7 @@ class OmniGen2Model(BaseModel):
|
|||||||
subfolder="mllm",
|
subfolder="mllm",
|
||||||
torch_dtype=torch.bfloat16
|
torch_dtype=torch.bfloat16
|
||||||
)
|
)
|
||||||
|
mllm.to(self.device_torch, dtype=dtype)
|
||||||
if self.model_config.quantize_te:
|
if self.model_config.quantize_te:
|
||||||
self.print_and_status_update("Quantizing Qwen2.5 VL model")
|
self.print_and_status_update("Quantizing Qwen2.5 VL model")
|
||||||
quantization_type = get_qtype(self.model_config.qtype_te)
|
quantization_type = get_qtype(self.model_config.qtype_te)
|
||||||
|
|||||||
Reference in New Issue
Block a user