Downloads · 30 days
8
22% of all-time downloads
drwlf/DrMedra4b-179916
DrMedra4b-179916 is a machine learning model from drwlf. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This is a merged LoRA model based on Google's MedGemma-4b-it, fine-tuned for medical applications.
Downloads · 30 days
8
22% of all-time downloads
All-time downloads
37
Public
Parameters
4.3B
17.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors17.2 GB · 100%
From the Hugging Face model README
This is a merged LoRA model based on Google's MedGemma-4b-it, fine-tuned for medical applications.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Load model and tokenizer
model_name = "DrMedra4b-179916"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype=torch.bfloat16,
device_map="auto"
)
# Example usage
prompt = "What are the symptoms of diabetes?"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=128)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
This model inherits the license from the base model (google/medgemma-4b-it).