fix: remove quant_states reference
This commit is contained in:
@@ -71,7 +71,7 @@ def streaming_quantize(model_path: str, output_path: str):
|
|||||||
|
|
||||||
print(f" Saved {shard_name}")
|
print(f" Saved {shard_name}")
|
||||||
|
|
||||||
del state_dict, quant_states
|
del state_dict
|
||||||
gc.collect()
|
gc.collect()
|
||||||
torch.cuda.empty_cache()
|
torch.cuda.empty_cache()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user