mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-16 11:16:45 +08:00
explicitly del state (#784)
This commit is contained in:
parent
d1744376ae
commit
73b3de79ea
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user