Downloads · 30 days
39
26% of all-time downloads
Rajkumar57/CardioMed-LLaMA3.2-1B
CardioMed-LLaMA3.2-1B is a text generation model from Rajkumar57. Use it when you need the model to write or continue text. It is set up for transformers.
CardioMed-LLaMA3.2-1B is a domain-adapted, instruction-tuned language model fine-tuned specifically on heart disease–related medical prompts using LoRA on top of meta-llama/Llama-3.2-1B-Instruct.
Downloads · 30 days
39
26% of all-time downloads
All-time downloads
151
Public
Parameters
1.2B
2.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors2.5 GB · 99%
From the Hugging Face model README
CardioMed-LLaMA3.2-1B is a domain-adapted, instruction-tuned language model fine-tuned specifically on heart disease–related medical prompts using LoRA on top of meta-llama/Llama-3.2-1B-Instruct.
This model is designed to generate structured medical abstracts and awareness information about cardiovascular diseases such as stroke, myocardial infarction, hypertension, etc.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model = AutoModelForCausalLM.from_pretrained("rajkumar/CardioMed-LLaMA3.2-1B", torch_dtype=torch.float16).cuda()
tokenizer = AutoTokenizer.from_pretrained("rajkumar/CardioMed-LLaMA3.2-1B")
prompt = """### Instruction:
Provide an abstract and awareness information for the following disease: Myocardial Infarction
### Response:
"""
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
meta-llama/Llama-3.2-1B-Instructq_proj, v_proj### Instruction / ### Response)### Instruction:
Provide an abstract and awareness information for the following disease: Stroke
### Response:
Model will generate:
This model is licensed under the MIT License and intended for educational and research purposes only.