Downloads · 30 days
20
19% of all-time downloads
Abeersherif/Medical_Homework2
Medical_Homework2 is a text generation model from Abeersherif. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
MedicalHomework2 is a fine-tuned version of SmolAI/SmolLM2-1.7B, trained specifically on structured medical question-answer data and short reasoning tasks. The model aims to provide concise, accurate, and educational…
Downloads · 30 days
20
19% of all-time downloads
All-time downloads
107
Public
Parameters
135M
1.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt1.1 GB · 50%
From the Hugging Face model README
Medical_Homework2 is a fine-tuned version of SmolAI/SmolLM2-1.7B, trained specifically on structured medical question-answer data and short reasoning tasks.
The model aims to provide concise, accurate, and educational medical explanations suitable for students and basic learning purposes.
This model is optimized for medical comprehension tasks such as:
It is not designed for professional medical diagnosis or treatment decisions.
The model was fine-tuned using:
No real patient data or clinical records were used.
If you want, a full training script section can be added.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_name = "Abeersherif/Medical_Homework2"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
prompt = "Explain what type 2 diabetes is in simple terms."
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(
**inputs,
max_new_tokens=150,
temperature=0.7,
top_p=0.9,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))