mirror of https://github.com/explosion/spaCy.git
Clarify how to change base Transformer model (#9498)
* Add note about how the model name is used * Add link to TransformersModel docs, separate paragraph * Local link * Revise docs * Update website/docs/usage/embeddings-transformers.md * Update website/docs/usage/embeddings-transformers.md Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
This commit is contained in:
parent
e66fddf934
commit
ef4d4f793b
|
@ -379,6 +379,21 @@ of potentially overlapping `Span` objects to process by the transformer. Several
|
|||
to process the whole document or individual sentences. When the config is
|
||||
resolved, the function is created and passed into the model as an argument.
|
||||
|
||||
The `name` value is the name of any [HuggingFace model](huggingface-models),
|
||||
which will be downloaded automatically the first time it's used. You can also
|
||||
use a local file path. For full details, see the
|
||||
[`TransformerModel` docs](/api/architectures#TransformerModel).
|
||||
|
||||
[huggingface-models]:
|
||||
https://huggingface.co/models?library=pytorch&sort=downloads
|
||||
|
||||
A wide variety of PyTorch models are supported, but some might not work. If a
|
||||
model doesn't seem to work feel free to open an
|
||||
[issue](https://github.com/explosion/spacy/issues). Additionally note that
|
||||
Transformers loaded in spaCy can only be used for tensors, and pretrained
|
||||
task-specific heads or text generation features cannot be used as part of
|
||||
the `transformer` pipeline component.
|
||||
|
||||
<Infobox variant="warning">
|
||||
|
||||
Remember that the `config.cfg` used for training should contain **no missing
|
||||
|
|
Loading…
Reference in New Issue