Downloads · 30 days
32
30% of all-time downloads
abdullah1101/MDCAT-Llama3.2-3B
MDCAT-Llama3.2-3B is a text generation model from abdullah1101. 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.
This is a 4-bit quantized version of LLaMA 3.2 3B, fine-tuned for answering MDCAT (Medical and Dental College Admission Test) questions. It uses Parameter-Efficient Fine-Tuning (PEFT) with QLoRA to provide accurate re…
Downloads · 30 days
32
30% of all-time downloads
All-time downloads
107
Public
Parameters
3.3B
2.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.4 GB · 99%
How the weights are stored.
U82.8B · 86%
From the Hugging Face model README
This is a 4-bit quantized version of LLaMA 3.2 3B, fine-tuned for answering MDCAT (Medical and Dental College Admission Test) questions. It uses Parameter-Efficient Fine-Tuning (PEFT) with QLoRA to provide accurate responses to MDCAT-related queries in biology, chemistry, physics, and medical topics, while refusing non-MDCAT questions.
Designed to assist MDCAT students, this model delivers precise answers within its domain and rejects off-topic queries. It’s quantized to 4-bit precision for efficiency.
Use via the Hugging Face Inference API (once processed) or load locally for MDCAT question-answering.
from transformers import AutoModelForCausalLM, AutoTokenizer
from transformers import BitsAndBytesConfig
quant_config = BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_compute_dtype=torch.float16)
model = AutoModelForCausalLM.from_pretrained(
"abdullah1101/MDCAT-Llama3.2-3B",
quantization_config=quant_config,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("abdullah1101/MDCAT-Llama3.2-3B")
inputs = tokenizer("Question: What is the function of the liver?\nAnswer: ", return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=200, pad_token_id=tokenizer.eos_token_id)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))