Instructions to use AlpineHealth/history-31layers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AlpineHealth/history-31layers 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="AlpineHealth/history-31layers")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("AlpineHealth/history-31layers") model = AutoModelForQuestionAnswering.from_pretrained("AlpineHealth/history-31layers", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Upload tokenizer
d819241 -
Upload RobertaForQuestionAnswering (#1)
- Upload RobertaForQuestionAnswering (0333ff7403c3a4184b6619cc814321278c35e0eb) Co-authored-by: Aaron Reich <agr505@users.noreply.huggingface.co>68d7cfd -
initial commit
0401120