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
4830f269
Unverified
Commit
4830f269
authored
Feb 06, 2024
by
Klaus Hipp
Committed by
GitHub
Feb 06, 2024
Browse files
[Docs] Fix backticks in inline code and documentation links (#28875)
Fix backticks in code blocks and documentation links
parent
a1afec9e
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/source/zh/big_models.md
docs/source/zh/big_models.md
+1
-1
No files found.
docs/source/zh/big_models.md
View file @
4830f269
...
...
@@ -66,7 +66,7 @@ model = AutoModel.from_pretrained("bert-base-cased")
[
'config.json'
,
'pytorch_model-00001-of-00003.bin'
,
'pytorch_model-00002-of-00003.bin'
,
'pytorch_model-00003-of-00003.bin'
,
'pytorch_model.bin.index.json'
]
```
在模型配置文件最上方,我们可以看到三个不同的权重文件,以及一个
`index.json`
索引文件。这样的
`checkpoint`
可以使用
`
[~PreTrainedModel.from_pretrained
]
`
方法完全重新加载:
在模型配置文件最上方,我们可以看到三个不同的权重文件,以及一个
`index.json`
索引文件。这样的
`checkpoint`
可以使用[
`
~PreTrainedModel.from_pretrained`
]
方法完全重新加载:
```
py
>>>
with
tempfile
.
TemporaryDirectory
()
as
tmp_dir
:
...
...
Prev
1
2
Next
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