Downloads · 30 days
10
8% of all-time downloads
kewserseid/biogpt-finetuned
biogpt-finetuned is a question answering model from kewserseid. Use it when the input is a question plus a passage. The card lists the license as apache-2.0.
Prepared by: KirubelNigussie Published by: kewserseid
Downloads · 30 days
10
8% of all-time downloads
All-time downloads
122
Public
Parameters
1.6B
6.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.3 GB · 100%
From the Hugging Face model README
Prepared by: KirubelNigussie Published by: kewserseid
This model is a fine-tuned version of microsoft/BioGPT-Large trained for biomedical question answering using the biomedical-instruction-dataset — a mix of multiple biomedical sources covering clinical scenarios, multi-step mechanistic explanations, and factual science recall.
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "kewserseid/biogpt-finetuned"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
prompt = "Q: What specific amino acid substitution causes Sickle Cell Anemia? A:"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(
**inputs,
max_new_tokens=100,
do_sample=False,
pad_token_id=tokenizer.eos_token_id
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))