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
df15c7c2
Unverified
Commit
df15c7c2
authored
Aug 16, 2020
by
Stas Bekman
Committed by
GitHub
Aug 17, 2020
Browse files
typos (#6505)
parent
6d38ab1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
docs/source/philosophy.rst
docs/source/philosophy.rst
+4
-4
No files found.
docs/source/philosophy.rst
View file @
df15c7c2
...
...
@@ -45,12 +45,12 @@ A few other goals:
- A simple/consistent way to add new tokens to the vocabulary and embeddings for fine-tuning.
- Simple ways to mask and prune transformer heads.
- Switch easily between PyTorch and TensorFlow 2.0, allowing training using one framwork and inference using another.
- Switch easily between PyTorch and TensorFlow 2.0, allowing training using one fram
e
work and inference using another.
Main concepts
~~~~~~~~~~~~~
The library is buil
d
around three types of classes for each model:
The library is buil
t
around three types of classes for each model:
- **Model classes** such as :class:`~transformers.BertModel`, which are 30+ PyTorch models
(`torch.nn.Module <https://pytorch.org/docs/stable/nn.html#torch.nn.Module>`__) or Keras models
...
...
@@ -65,9 +65,9 @@ The library is build around three types of classes for each model:
All these classes can be instantiated from pretrained instances and saved locally using two methods:
- :obj:`from_pretrained()` let you instantiate a model/configuration/tokenizer from a pretrained version either
- :obj:`from_pretrained()` let
s
you instantiate a model/configuration/tokenizer from a pretrained version either
provided by the library itself (the suported models are provided in the list :doc:`here <pretrained_models>`
or stored locally (or on a server) by the user,
- :obj:`save_pretrained()` let you save a model/configuration/tokenizer locally so that it can be reloaded using
- :obj:`save_pretrained()` let
s
you save a model/configuration/tokenizer locally so that it can be reloaded using
:obj:`from_pretrained()`.
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