Instructions to use yirenl2/plm_qa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yirenl2/plm_qa with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="yirenl2/plm_qa")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("yirenl2/plm_qa") model = AutoModelForQuestionAnswering.from_pretrained("yirenl2/plm_qa", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
e70afe4 -
Update README.md
f98cf20
-
Update config.json
214f33e -
Upload special_tokens_map.json
dfc1cf4 -
Upload config.json
1399071 -
Upload tokenizer_config.json
a5b2f08 -
Upload merges.txt
a30765c -
Upload vocab.json
2dfc3b6 -
Upload tokenizer.json
740a9fc -
Upload pytorch_model.bin
c11149a -
Delete config.json
986361a -
Upload config.json
5577ad5 -
Delete config.json
4ec9e2d -
Upload config.json
aeb6492 -
initial commit
f3a3874