Instructions to use distilbert/distilbert-base-uncased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use distilbert/distilbert-base-uncased with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="distilbert/distilbert-base-uncased")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("distilbert/distilbert-base-uncased") model = AutoModelForMaskedLM.from_pretrained("distilbert/distilbert-base-uncased") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
#19
by ninon64 - opened
README.md
CHANGED
|
@@ -32,7 +32,7 @@ with three objectives:
|
|
| 32 |
- Cosine embedding loss: the model was also trained to generate hidden states as close as possible as the BERT base
|
| 33 |
model.
|
| 34 |
|
| 35 |
-
This way, the model learns the same inner representation of the English language
|
| 36 |
faster for inference or downstream tasks.
|
| 37 |
|
| 38 |
## Intended uses & limitations
|
|
|
|
| 32 |
- Cosine embedding loss: the model was also trained to generate hidden states as close as possible as the BERT base
|
| 33 |
model.
|
| 34 |
|
| 35 |
+
This way, the model learns the same inner representation of the English language as its teacher model, while being
|
| 36 |
faster for inference or downstream tasks.
|
| 37 |
|
| 38 |
## Intended uses & limitations
|