mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 08:44:33 +02:00
Pass torch_dtype to sdnq loader
This commit is contained in:
@@ -117,7 +117,7 @@ def load_sdnq_model(model_path: str, model_cls: ModelMixin = None, file_name: st
|
||||
else:
|
||||
model = model_cls(**model_config)
|
||||
|
||||
model = sdnq_post_load_quant(model, add_skip_keys=False, **quantization_config)
|
||||
model = sdnq_post_load_quant(model, torch_dtype=dtype, add_skip_keys=False, **quantization_config)
|
||||
|
||||
key_mapping = getattr(model, "_checkpoint_conversion_mapping", None)
|
||||
files = []
|
||||
|
||||
Reference in New Issue
Block a user