Instructions to use Xenova/distilbert-base-cased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/distilbert-base-cased with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('fill-mask', 'Xenova/distilbert-base-cased');
Update config.json
Browse files- config.json +3 -0
config.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
| 1 |
{
|
| 2 |
"_name_or_path": "distilbert-base-cased",
|
| 3 |
"activation": "gelu",
|
|
|
|
|
|
|
|
|
|
| 4 |
"attention_dropout": 0.1,
|
| 5 |
"dim": 768,
|
| 6 |
"dropout": 0.1,
|
|
|
|
| 1 |
{
|
| 2 |
"_name_or_path": "distilbert-base-cased",
|
| 3 |
"activation": "gelu",
|
| 4 |
+
"architectures": [
|
| 5 |
+
"DistilBertForMaskedLM"
|
| 6 |
+
],
|
| 7 |
"attention_dropout": 0.1,
|
| 8 |
"dim": 768,
|
| 9 |
"dropout": 0.1,
|