mirror of
https://github.com/wassname/vllm.git
synced 2026-07-13 12:03:33 +08:00
explicitly del state (#784)
This commit is contained in:
@@ -76,6 +76,8 @@ def hf_model_weights_iterator(
|
||||
state = torch.load(bin_file, map_location="cpu")
|
||||
for name, param in state.items():
|
||||
yield name, param
|
||||
del state
|
||||
torch.cuda.empty_cache()
|
||||
|
||||
|
||||
def load_tensor_parallel_weights(
|
||||
|
||||
Reference in New Issue
Block a user