Instructions to use hf-internal-testing/tiny-random-gptj with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-gptj with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="hf-internal-testing/tiny-random-gptj")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-gptj") model = AutoModel.from_pretrained("hf-internal-testing/tiny-random-gptj") - Notebooks
- Google Colab
- Kaggle
Update config.json
#1
by joaogante - opened
- config.json +1 -1
config.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
| 20 |
"n_positions": 512,
|
| 21 |
"pad_token_id": 98,
|
| 22 |
"resid_pdrop": 0.0,
|
| 23 |
-
"rotary_dim":
|
| 24 |
"scale_attn_weights": true,
|
| 25 |
"transformers_version": "4.11.0.dev0",
|
| 26 |
"type_vocab_size": 16,
|
|
|
|
| 20 |
"n_positions": 512,
|
| 21 |
"pad_token_id": 98,
|
| 22 |
"resid_pdrop": 0.0,
|
| 23 |
+
"rotary_dim": 4,
|
| 24 |
"scale_attn_weights": true,
|
| 25 |
"transformers_version": "4.11.0.dev0",
|
| 26 |
"type_vocab_size": 16,
|