Downloads · 30 days
0
YsK-dev/zima-qwen-geriatric-1.5b
zima-qwen-geriatric-1.5b is a machine learning model from YsK-dev. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
0
Access
Public
Updated Dec 31, 2025
Repo size
85.3 MB
Likes
0
Public
Click a slice to open those files.
.safetensors73.9 MB · 82%
From the Hugging Face model README
A specialized AI assistant providing compassionate, actionable health guidance for elderly individuals (70+)
Try it Now • Dataset • Report Issues
</div>Zima is a fine-tuned Qwen 2.5 1.5B model specifically designed to assist elderly individuals with health-related questions. Unlike general-purpose chatbots, Zima:
✅ Age-Appropriate Communication - Uses clear, simple language
✅ Safety-First Approach - Prioritizes user safety, knows when to recommend emergency services
✅ Actionable Advice - Provides specific, implementable steps rather than generic suggestions
✅ Comprehensive Coverage - Handles everything from daily wellness to first aid
✅ Compact & Efficient - Only 1.5B parameters, perfect for edge deployment
| Metric | Value | Status |
|---|---|---|
| Perplexity | 1.51 | 🏆 Excellent (< 2.0) |
| Training Loss | 0.32 | ✅ Converged |
| Validation Loss | 0.40 | ✅ No overfitting |
| Training Samples | 10,743 | 📚 High quality |
| Model Size | 71 MB (LoRA) | 🚀 Edge-ready |
pip install unsloth transformers torch
from unsloth import FastLanguageModel
# Load model
model, tokenizer = FastLanguageModel.from_pretrained(
"YsK-dev/zima-qwen-geriatric-1.5b",
max_seq_length=512,
dtype=None,
load_in_4bit=True,
)
# Enable inference mode
FastLanguageModel.for_inference(model)
# Create prompt
prompt = """Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
How can I prevent falls at home?
### Input:
Patient is elderly (70+), seeking advice on safety.
### Response:
"""
# Generate response
inputs = tokenizer([prompt], return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.7)
response = tokenizer.batch_decode(outputs)[0]
print(response)
Install handrails near stairs and in the bathroom. Use non-slip mats in the shower
and bathtub. Keep floors clear of clutter. Ensure good lighting throughout your
home, especially in hallways and near stairs. Consider using a walking aid if you
feel unsteady. Remove loose rugs or secure them with non-slip backing.
LoRA Configuration:
rank: 16
alpha: 32
dropout: 0.05
target_modules: [q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj]
Training Hyperparameters:
batch_size: 8 (effective: 32 with gradient accumulation)
learning_rate: 2e-4
scheduler: cosine
epochs: 3
optimizer: AdamW 8-bit
Hardware:
GPU: NVIDIA L4 (22GB VRAM)
Training time: 34 minutes
Framework: Unsloth (2x faster than standard)
User: I have a cold
Zima: Rest and drink plenty of fluids like warm water, tea or soup. Use saline nasal spray to clear congestion. Take over-the-counter decongestants if needed. Avoid close contact with others. See your doctor for severe symptoms. Stay home until you feel better.
</details> <details> <summary><b>Example 2: Loneliness</b></summary>User: I feel lonely
Zima: Try joining clubs or groups where you can meet people with similar interests. Consider volunteering to help others and connect socially. Regular phone calls can also keep relationships strong. Talk to a counselor if loneliness feels overwhelming.
</details> <details> <summary><b>Example 3: Medication Management</b></summary>User: I keep forgetting to take my pills
Zima: Consider using a pill organizer and fill it weekly. Set reminders on your phone or use an alarm clock. Ask family members to help remind you. Keep your medications in a visible spot where you'll see them daily. Talk to your pharmacist about once-daily formulations if available.
</details>🚨 NOT A REPLACEMENT FOR PROFESSIONAL MEDICAL CARE
Zima is designed to provide general health guidance and support, but it:
- Cannot diagnose medical conditions
- Cannot prescribe medications
- Cannot replace emergency services (911)
- Cannot provide personalized medical treatment plans
Always contact a healthcare provider or emergency services for:
Zima is optimized for deployment on resource-constrained devices like Raspberry Pi 5:
# Quantize to GGUF for even smaller size
python quantize_to_gguf.py --model YsK-dev/zima-qwen-geriatric-1.5b --quant q4_k_m
# Run inference on CPU
from llama_cpp import Llama
model = Llama(model_path="zima-q4_k_m.gguf")
from fastapi import FastAPI
from unsloth import FastLanguageModel
app = FastAPI()
model, tokenizer = FastLanguageModel.from_pretrained("YsK-dev/zima-qwen-geriatric-1.5b")
@app.post("/advice")
async def get_advice(question: str):
# Generate response
return {"advice": generated_text}
import gradio as gr
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained("YsK-dev/zima-qwen-geriatric-1.5b")
def get_advice(question):
# Generate response logic
return response
demo = gr.Interface(
fn=get_advice,
inputs=gr.Textbox(placeholder="Ask a health-related question..."),
outputs=gr.Textbox(),
title="🏥 Zima: Your Geriatric Health Assistant"
)
demo.launch()
We welcome contributions! Areas where you can help:
This model is released under the Apache 2.0 License. You are free to:
If you use Zima in your research, please cite:
@misc{zima2025,
author = {YsK-dev},
title = {Zima: A Geriatric Health Assistant},
year = {2025},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/YsK-dev/zima-qwen-geriatric-1.5b}},
}
Made with ❤️ for the elderly community
</div>