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:
# pip install -U transformers accelerate # 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
Commit History
-
Adding `safetensors` variant of this model
This is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.3e2dbd9
-
Adding generation config file(s)
931d08e
-
Upload README.md with huggingface_hub (#2)
- Upload README.md with huggingface_hub (0a39645a73cf5563d8c192717691fef8d8560642) Co-authored-by: Loïck BOURDOIS <lbourdois@users.noreply.huggingface.co>c9e8fee
-
Add trigram block by default
Similar to PRIMERA-multinews and PRIMERA-multixscience, I have found that I get ROUGE scores much closer to those reported if I add a trigram block. I am proposing this be enabled by default in the HuggingFace config.bd01102
-
Add TF weights (#1)
joaogante- Add TF weights (6fc49b6c4743cc74bdb263fdf92c81c484237665)550385a
-
update config.json
update max_position_embeddings as 4096, which is used in `run_summarization.py` in the huggingface library.0495403
-
Update README.md
1d3afa9 -
Update README.md
cb83f18 -
Upload vocab.json
ddb8cda -
Upload tokenizer_config.json
44fe30d -
Upload special_tokens_map.json
280d283
-
Upload pytorch_model.bin with git-lfs
9de6d23 -
Upload merges.txt
873efb4 -
Upload added_tokens.json
6300df6 -
Upload config.json
2d10135 -
Update README.md
10f9b14 -
Update README.md
53d1257 -
initial commit
832e6be