Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/diffusers/models/modeling_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,7 @@ def from_pretrained(cls, pretrained_model_name_or_path: str | os.PathLike | None
"diffusers": __version__,
"file_type": "model",
"framework": "pytorch",
"model_class": str(cls.__name__),
}
unused_kwargs = {}

Expand Down Expand Up @@ -1146,8 +1147,9 @@ def from_pretrained(cls, pretrained_model_name_or_path: str | os.PathLike | None
torch_dtype = hf_quantizer.update_torch_dtype(torch_dtype)
device_map = hf_quantizer.update_device_map(device_map)

# In order to ensure popular quantization methods are supported. Can be disable with `disable_telemetry`
# In order to ensure popular quantization methods are supported. Can be disabled with `disable_telemetry`
user_agent["quant"] = hf_quantizer.quantization_config.quant_method.value
user_agent["quant_config"] = json.dumps(quantization_config.to_dict(), sort_keys=True)

# Force-set to `True` for more mem efficiency
if low_cpu_mem_usage is None:
Expand Down
Loading