Instructions to use hf-internal-testing/tiny-random-RoFormerForQuestionAnswering with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-RoFormerForQuestionAnswering with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="hf-internal-testing/tiny-random-RoFormerForQuestionAnswering")# Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-RoFormerForQuestionAnswering") model = AutoModelForQuestionAnswering.from_pretrained("hf-internal-testing/tiny-random-RoFormerForQuestionAnswering", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 132 Bytes
b8a20b3 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:6a101ce5b05ed5fac6c11516f69f4c2850d2e9e110d6a2f29b74f7f8d053ffed
size 6582774
|