Downloads · 30 days
11
9% of all-time downloads
Aman0026/ArogyaAI-LLaMA3-8B
ArogyaAI-LLaMA3-8B is a text generation model from Aman0026. Use it when you need the model to write or continue text. It is set up for peft.
This is the fine-tuned LLaMA3 8B Instruct model adapter developed as part of ArogyaAI (India's First Multimodal AI Health Intelligence Platform). It has been SFT fine-tuned to synthesize unified prescriptions and diag…
Downloads · 30 days
11
9% of all-time downloads
All-time downloads
121
Public
Repo size
4.4 GB
Likes
0
Public
Click a slice to open those files.
.pt2 GB · 54%
From the Hugging Face model README
This is the fine-tuned LLaMA3 8B Instruct model adapter developed as part of ArogyaAI (India's First Multimodal AI Health Intelligence Platform). It has been SFT fine-tuned to synthesize unified prescriptions and diagnosis advice combining Allopathy, Ayurveda, and Homeopathy across 7 Indian languages.
The model was fine-tuned on a dual NVIDIA H100 GPU cluster. Below are the final metrics achieved during SFT training:
0.21940.372892.15% (Significantly exceeding the 80% thesis target!)To load and use this model locally with the base LLaMA3 model:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model_name = "meta-llama/Meta-Llama-3-8B-Instruct"
adapter_model_name = "Aman0026/ArogyaAI-LLaMA3-8B"
# Load base model in 4-bit
model = AutoModelForCausalLM.from_pretrained(
base_model_name,
load_in_4bit=True,
torch_dtype=torch.float16,
device_map="auto"
)
# Load tokenizer and merge PEFT adapter
tokenizer = AutoTokenizer.from_pretrained(base_model_name)
model = PeftModel.from_pretrained(model, adapter_model_name)
# Run inference
inputs = tokenizer("Patient presents with severe cold and coughing. Suggest remedy.", return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This project is licensed under the MIT License.