Instructions to use echarlaix/tiny-random-gpt2-torchscript with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use echarlaix/tiny-random-gpt2-torchscript with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("echarlaix/tiny-random-gpt2-torchscript", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
#2
by Jiqing - opened
- config.json +2 -1
config.json
CHANGED
|
@@ -29,5 +29,6 @@
|
|
| 29 |
"transformers_version": "4.11.0.dev0",
|
| 30 |
"type_vocab_size": 16,
|
| 31 |
"use_cache": true,
|
| 32 |
-
"vocab_size": 1000
|
|
|
|
| 33 |
}
|
|
|
|
| 29 |
"transformers_version": "4.11.0.dev0",
|
| 30 |
"type_vocab_size": 16,
|
| 31 |
"use_cache": true,
|
| 32 |
+
"vocab_size": 1000,
|
| 33 |
+
"torchscript": true
|
| 34 |
}
|