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