Downloads · 30 days
11
20% of all-time downloads
mdimamhosen/pd-mel-gemma4-e4b-reasoning-lora
pd-mel-gemma4-e4b-reasoning-lora is a image-text-to-text model from mdimamhosen. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
LoRA adapter that teaches Gemma 4 E4B to write step-by-step visual reasoning over Mel spectrograms of voice recordings, conditioned on the ground-truth class (healthy or parkinsons).
Downloads · 30 days
11
20% of all-time downloads
All-time downloads
54
Public
Repo size
404 MB
Likes
1
Public
Click a slice to open those files.
.safetensors372 MB · 92%
From the Hugging Face model README
LoRA adapter that teaches Gemma 4 E4B to write step-by-step visual reasoning over Mel spectrograms of voice recordings, conditioned on the ground-truth class (healthy or parkinsons).
Built for Parkinson’s voice / speech-signal explainability (EDGE research). Teacher traces were generated with Gemma 4 31B; this student is the deployable ~4B-class Unsloth QLoRA fine-tune.
| Base | unsloth/gemma-4-e4b-it-unsloth-bnb-4bit |
| Type | Vision–language LoRA (PEFT) |
| Task | Mel image + class label → reasoning trace |
| LoRA | r=32, α=32 |
| Train | ~1134 Mel samples, 1 epoch / 270 steps, loss ≈ 0.30 |
| Framework | Unsloth + TRL SFT |
{REASONING_START}
1. ...
2. ...
3. ...
{REASONING_END}
Input: Mel PNG of a sustained vowel + text Class label: parkinsons
Output: Numbered visual cues (harmonic instability, breathiness texture, formant blur, etc.) inside the reasoning tags.
from unsloth import FastVisionModel
from PIL import Image
model, processor = FastVisionModel.from_pretrained(
"HF_USER/pd-mel-gemma4-e4b-reasoning-lora",
load_in_4bit=True,
)
FastVisionModel.for_inference(model)
Or load this folder locally after download.
healthy / parkinsons)google/gemma-4-31B-it (4-bit teacher on Kaggle T4×2)EDGE Parkinson Mel reasoning fine-tune (Gemma 4 E4B Unsloth LoRA). Guide: https://unsloth.ai/docs/models/gemma-4/train