Instructions to use allenai/PRIMERA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use allenai/PRIMERA with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("allenai/PRIMERA") model = AutoModelForSeq2SeqLM.from_pretrained("allenai/PRIMERA", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Joao Gante commited on
Commit ·
6fc49b6
1
Parent(s): 0495403
Add TF weights
Browse filesModel converted by the [`transformers`' `pt_to_tf` CLI](https://github.com/huggingface/transformers/blob/main/src/transformers/commands/pt_to_tf.py).
All converted model outputs and hidden layers were validated against its Pytorch counterpart. Maximum crossload output difference=3.511e-05; Maximum converted output difference=3.511e-05.
cc @patrickvonplaten [HF maintainer(s) for this repo]
- tf_model.h5 +3 -0
tf_model.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:efe752e5eb426d1be167eb1164fc07b7645a1de35f370bba4582783206c534d5
|
| 3 |
+
size 1789710888
|