Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
73b3de79
Unverified
Commit
73b3de79
authored
Aug 18, 2023
by
Xinyu Yang
Committed by
GitHub
Aug 17, 2023
Browse files
explicitly del state (#784)
parent
d1744376
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
vllm/model_executor/weight_utils.py
vllm/model_executor/weight_utils.py
+2
-0
No files found.
vllm/model_executor/weight_utils.py
View file @
73b3de79
...
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment