This is a merged LoRA model based on Google's MedGemma-4b-it, fine-tuned for medical applications.
Model Details
Base Model
: google/medgemma-4b-it
Checkpoint
: 179916
Format
: SafeTensors
Architecture
: Gemma3
Fine-tuning Method
: LoRA (Low-Rank Adaptation)
Usage
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)
Training Configuration
LoRA Rank
: 198
LoRA Alpha
: 64
Learning Rate
: 2.5e-6
Batch Size
: 4
Sequence Length
: 768
Epochs
: 2.0
License
This model inherits the license from the base model (google/medgemma-4b-it).
Runs of drwlf DrMedra4b-179916 on huggingface.co
9
Total runs
0
24-hour runs
0
3-day runs
-3
7-day runs
1
30-day runs
More Information About DrMedra4b-179916 huggingface.co Model
DrMedra4b-179916 huggingface.co
DrMedra4b-179916 huggingface.co is an AI model on huggingface.co that provides DrMedra4b-179916's model effect (), which can be used instantly with this drwlf DrMedra4b-179916 model. huggingface.co supports a free trial of the DrMedra4b-179916 model, and also provides paid use of the DrMedra4b-179916. Support call DrMedra4b-179916 model through api, including Node.js, Python, http.
DrMedra4b-179916 huggingface.co is an online trial and call api platform, which integrates DrMedra4b-179916's modeling effects, including api services, and provides a free online trial of DrMedra4b-179916, you can try DrMedra4b-179916 online for free by clicking the link below.
drwlf DrMedra4b-179916 online free url in huggingface.co:
DrMedra4b-179916 is an open source model from GitHub that offers a free installation service, and any user can find DrMedra4b-179916 on GitHub to install. At the same time, huggingface.co provides the effect of DrMedra4b-179916 install, users can directly use DrMedra4b-179916 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.