qiaojin/PubMedQA
Viewer • Updated • 274k • 41.6k • 350
How to use ThorBaller/Pubmed_llama3 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="ThorBaller/Pubmed_llama3") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("ThorBaller/Pubmed_llama3", device_map="auto")This llama model was trained 2x faster with Unsloth and Huggingface's TRL library.
Base model
meta-llama/Meta-Llama-3-8B