Instructions to use hansgun/model_test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hansgun/model_test with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="hansgun/model_test")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("hansgun/model_test") model = AutoModelForMaskedLM.from_pretrained("hansgun/model_test", device_map="auto") - Notebooks
- Google Colab
- Kaggle
delete vocab.txt
Browse files- config.json +2 -1
config.json
CHANGED
|
@@ -15,8 +15,9 @@
|
|
| 15 |
"model_type": "bert",
|
| 16 |
"num_attention_heads": 12,
|
| 17 |
"num_hidden_layers": 12,
|
| 18 |
-
"output_attentions": true,
|
| 19 |
"pad_token_id": 1,
|
|
|
|
|
|
|
| 20 |
"type_vocab_size": 2,
|
| 21 |
"vocab_size": 8002,
|
| 22 |
"id2label": {
|
|
|
|
| 15 |
"model_type": "bert",
|
| 16 |
"num_attention_heads": 12,
|
| 17 |
"num_hidden_layers": 12,
|
|
|
|
| 18 |
"pad_token_id": 1,
|
| 19 |
+
"output_past": true,
|
| 20 |
+
"return_dict": true,
|
| 21 |
"type_vocab_size": 2,
|
| 22 |
"vocab_size": 8002,
|
| 23 |
"id2label": {
|