Instructions to use allenai/PRIMERA-multixscience with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use allenai/PRIMERA-multixscience with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("allenai/PRIMERA-multixscience") model = AutoModelForSeq2SeqLM.from_pretrained("allenai/PRIMERA-multixscience") - Notebooks
- Google Colab
- Kaggle
Commit ·
031c5e3
1
Parent(s): c755e5d
Fix max_position_embeddings
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -69,7 +69,7 @@
|
|
| 69 |
},
|
| 70 |
"max_decoder_position_embeddings": 1024,
|
| 71 |
"max_encoder_position_embeddings": 4096,
|
| 72 |
-
"max_position_embeddings":
|
| 73 |
"model_type": "led",
|
| 74 |
"normalize_before": false,
|
| 75 |
"normalize_embedding": true,
|
|
|
|
| 69 |
},
|
| 70 |
"max_decoder_position_embeddings": 1024,
|
| 71 |
"max_encoder_position_embeddings": 4096,
|
| 72 |
+
"max_position_embeddings": 4096,
|
| 73 |
"model_type": "led",
|
| 74 |
"normalize_before": false,
|
| 75 |
"normalize_embedding": true,
|