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
chenpangpang
transformers
Commits
1c73d85b
Unverified
Commit
1c73d85b
authored
Jun 12, 2024
by
Aaron V
Committed by
GitHub
Jun 12, 2024
Browse files
Update comment in modeling_utils.py (#31299)
parent
9f863d9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/modeling_utils.py
src/transformers/modeling_utils.py
+1
-1
No files found.
src/transformers/modeling_utils.py
View file @
1c73d85b
...
@@ -3570,7 +3570,7 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix
...
@@ -3570,7 +3570,7 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix
# We'll need to download and cache each checkpoint shard if the checkpoint is sharded.
# We'll need to download and cache each checkpoint shard if the checkpoint is sharded.
if
is_sharded
:
if
is_sharded
:
# rsolved_archive_file becomes a list of files that point to the different checkpoint shards in this case.
# r
e
solved_archive_file becomes a list of files that point to the different checkpoint shards in this case.
resolved_archive_file
,
sharded_metadata
=
get_checkpoint_shard_files
(
resolved_archive_file
,
sharded_metadata
=
get_checkpoint_shard_files
(
pretrained_model_name_or_path
,
pretrained_model_name_or_path
,
resolved_archive_file
,
resolved_archive_file
,
...
...
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