Docs: Fix broken cross-references, i.e. ~transformer. -> ~transformers. (#27740)

~transformer. -> ~transformers.
This commit is contained in:
Tom Aarsen
2023-11-28 17:40:44 +01:00
committed by GitHub
parent dfbd209c25
commit f2ad4b537b
5 changed files with 15 additions and 15 deletions

View File

@@ -49,7 +49,7 @@ You will then be able to use the auto classes like you would usually do!
<Tip warning={true}>
If your `NewModelConfig` is a subclass of [`~transformer.PretrainedConfig`], make sure its
If your `NewModelConfig` is a subclass of [`~transformers.PretrainedConfig`], make sure its
`model_type` attribute is set to the same key you use when registering the config (here `"new-model"`).
Likewise, if your `NewModel` is a subclass of [`PreTrainedModel`], make sure its

View File

@@ -43,7 +43,7 @@ AutoModel.register(NewModelConfig, NewModel)
<Tip warning={true}>
あなたの`NewModelConfig`が[`~transformer.PretrainedConfig`]のサブクラスである場合、その`model_type`属性がコンフィグを登録するときに使用するキー(ここでは`"new-model"`)と同じに設定されていることを確認してください。
あなたの`NewModelConfig`が[`~transformers.PretrainedConfig`]のサブクラスである場合、その`model_type`属性がコンフィグを登録するときに使用するキー(ここでは`"new-model"`)と同じに設定されていることを確認してください。
同様に、あなたの`NewModel`が[`PreTrainedModel`]のサブクラスである場合、その`config_class`属性がモデルを登録する際に使用するクラス(ここでは`NewModelConfig`)と同じに設定されていることを確認してください。