"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "6dacc79d395bd41e0ef76c2a043c2ef90cc79925"
Unverified Commit 4830f269 authored by Klaus Hipp's avatar Klaus Hipp Committed by GitHub
Browse files

[Docs] Fix backticks in inline code and documentation links (#28875)

Fix backticks in code blocks and documentation links
parent a1afec9e
...@@ -66,7 +66,7 @@ model = AutoModel.from_pretrained("bert-base-cased") ...@@ -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'] ['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 ```py
>>> with tempfile.TemporaryDirectory() as tmp_dir: >>> with tempfile.TemporaryDirectory() as tmp_dir:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment