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
chenpangpang
transformers
Commits
aa8f86a4
Unverified
Commit
aa8f86a4
authored
Jul 22, 2024
by
Brian
Committed by
GitHub
Jul 22, 2024
Browse files
Fix shard order (#32023)
parent
b3818805
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/llama/convert_llama_weights_to_hf.py
src/transformers/models/llama/convert_llama_weights_to_hf.py
+1
-1
No files found.
src/transformers/models/llama/convert_llama_weights_to_hf.py
View file @
aa8f86a4
...
...
@@ -161,7 +161,7 @@ def write_model(
# Sharded
loaded
=
[
torch
.
load
(
os
.
path
.
join
(
input_base_path
,
file
),
map_location
=
"cpu"
)
for
file
in
os
.
listdir
(
input_base_path
)
for
file
in
sorted
(
os
.
listdir
(
input_base_path
)
)
if
file
.
endswith
(
".pth"
)
]
param_count
=
0
...
...
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