Use dtype instead of torch_dtype

This commit is contained in:
oobabooga 2025-12-02 06:35:06 -08:00
parent 5382fe2d1b
commit f4b27a39af

View file

@ -120,7 +120,7 @@ def load_image_model(model_name, dtype='bfloat16', attn_backend='sdpa', cpu_offl
# Load the pipeline
load_kwargs = {
"torch_dtype": target_dtype,
"dtype": target_dtype,
"low_cpu_mem_usage": True,
}