# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("question-answering", model="bbarretto/tinyllamacancer")# Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("bbarretto/tinyllamacancer")
model = AutoModelForQuestionAnswering.from_pretrained("bbarretto/tinyllamacancer")Quick Links
# Gated model: Login with a HF token with gated access permission hf auth login