miriad/miriad-4.4M
Viewer • Updated • 4.49M • 509 • 35
How to use chhatramani/medqa-gemma-3nE4B-4bit with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for chhatramani/medqa-gemma-3nE4B-4bit to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for chhatramani/medqa-gemma-3nE4B-4bit to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for chhatramani/medqa-gemma-3nE4B-4bit to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="chhatramani/medqa-gemma-3nE4B-4bit",
max_seq_length=2048,
)A 4-bit quantized Gemma-3n-E4B model fine-tuned on medical Q&A data using Unsloth for efficient training.
| Feature | Value |
|---|---|
| Base Model | google/gemma-3n-E4B-it |
| Quantization | 4-bit (QLoRA) |
| Trainable Parameters | 19,210,240 (0.24% of total) |
| Sequence Length | 1024 tokens |
| License | CC-BY-SA-4.0 |
{
"per_device_batch_size": 2,
"gradient_accumulation_steps": 8,
"effective_batch_size": 16,
"num_epochs": 5,
"total_steps": 300,
"learning_rate": 3e-5,
"loRA_rank": 16,
"loRA_alpha": 32,
"optimizer": "adamw_8bit",
"lr_scheduler": "cosine",
"warmup_steps": 50,
"weight_decay": 0.01,
"max_seq_length": 1024
}
| Metric | Value |
|---|---|
| BLEU-4 | 0.42 |
| ROUGE-L | 0.58 |
| BERTScore-F1 | 0.76 |
| Perplexity | 12.34 |
Note: Evaluated on 100-sample test set
@misc{medqa-gemma-3nE4B-4bit,
author = {Chhatramani, YourName},
title = {MedQA-Gemma-3n-E4B-4bit: Medical Q&A Fine-tuned Model},
year = {2024},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/chhatramani/medqa-gemma-3nE4B-4bit}}
}