fix: weights_only=False for safetensors loading

This commit is contained in:
Christian Medina
2026-07-02 21:41:44 -04:00
parent aec7f405fe
commit 82677070ff

View File

@@ -33,7 +33,7 @@ def streaming_quantize(model_path, output_path):
# Load shard to CPU # Load shard to CPU
print(" Loading shard to CPU...") print(" Loading shard to CPU...")
shard_state_dict = torch.load(shard_file, map_location="cpu", weights_only=True) shard_state_dict = torch.load(shard_file, map_location="cpu", weights_only=False)
# Quantize Linear layers in this shard using both GPUs # Quantize Linear layers in this shard using both GPUs
print(" Quantizing Linear layers (both GPUs)...") print(" Quantizing Linear layers (both GPUs)...")