Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
1963245e
Unverified
Commit
1963245e
authored
Jan 09, 2026
by
Russell Bryant
Committed by
GitHub
Jan 10, 2026
Browse files
[Core] Use weights_only=True with torch.load (#32045)
Signed-off-by:
Russell Bryant
<
rbryant@redhat.com
>
parent
03089019
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/model_executor/model_loader/tensorizer.py
vllm/model_executor/model_loader/tensorizer.py
+1
-1
No files found.
vllm/model_executor/model_loader/tensorizer.py
View file @
1963245e
...
@@ -762,7 +762,7 @@ def tensorize_lora_adapter(lora_path: str, tensorizer_config: TensorizerConfig):
...
@@ -762,7 +762,7 @@ def tensorize_lora_adapter(lora_path: str, tensorizer_config: TensorizerConfig):
if
tensor_path
.
endswith
(
".safetensors"
):
if
tensor_path
.
endswith
(
".safetensors"
):
tensors
=
safetensors
.
torch
.
load_file
(
tensor_path
)
tensors
=
safetensors
.
torch
.
load_file
(
tensor_path
)
elif
tensor_path
.
endswith
(
".bin"
):
elif
tensor_path
.
endswith
(
".bin"
):
tensors
=
torch
.
load
(
tensor_path
)
tensors
=
torch
.
load
(
tensor_path
,
weights_only
=
True
)
else
:
else
:
raise
ValueError
(
"Unsupported file: %s"
,
tensor_path
)
raise
ValueError
(
"Unsupported file: %s"
,
tensor_path
)
...
...
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