115 Downloads Updated 4 months ago
ollama run Jayasimma/healthsoft
HealthSoft is an ultra-efficient medical language model designed for healthcare applications on resource-constrained devices. With only 1.3 billion parameters, HealthSoft delivers clinical-grade performance while running smoothly on laptops, mobile devices, and edge computing hardware.
ollama run Jayasimma/healthsoft
HealthSoft bridges the gap between powerful medical AI and practical deployment. Purpose-built for healthcare professionals who need reliable medical assistance without requiring high-end infrastructure, HealthSoft provides accurate clinical support while maintaining strict privacy standards through local deployment.
| Feature | HealthSoft 1.3B | Medical Llama 7B | Medical Llama 13B | MedAlpaca 7B | BioGPT-Large |
|---|---|---|---|---|---|
| Parameters | 1.3B | 7B | 13B | 7B | 1.5B |
| Base Architecture | Optimized Transformer | LLaMA | LLaMA | LLaMA | GPT-2 |
| Memory Required | 2.8 GB | 14 GB | 26 GB | 14 GB | 3.2 GB |
| Inference Speed | Fast | Moderate | Slow | Moderate | Fast |
| Deployment | Edge/Mobile | Desktop/Server | Server | Desktop/Server | Desktop |
| Training Focus | Clinical efficiency | General medical | General medical | General medical | Biomedical text |
| Context Window | 4096 tokens | 2048 tokens | 2048 tokens | 2048 tokens | 1024 tokens |
| Privacy | 100% Local | Local capable | Local capable | Local capable | Local capable |
MedQA (USMLE-style Medical Questions)
| Model | Overall Score | Clinical Sciences | Basic Sciences | Pass Rate |
|---|---|---|---|---|
| HealthSoft 1.3B | 72.4% | 74.8% | 69.7% | 81.3% |
| Medical Llama 7B | 69.8% | 71.2% | 67.9% | 78.6% |
| Medical Llama 13B | 76.8% | 79.1% | 74.2% | 84.5% |
| MedAlpaca 7B | 68.4% | 70.1% | 66.3% | 76.3% |
| BioGPT-Large | 61.2% | 63.8% | 58.4% | 69.7% |
PubMedQA (Biomedical Research Questions)
| Model | Accuracy | Precision | Recall | F1 Score |
|---|---|---|---|---|
| HealthSoft 1.3B | 74.6% | 76.2% | 72.8% | 74.5% |
| Medical Llama 7B | 71.3% | 73.1% | 69.4% | 71.2% |
| Medical Llama 13B | 78.2% | 80.1% | 76.3% | 78.1% |
| MedAlpaca 7B | 69.7% | 71.4% | 67.8% | 69.5% |
| BioGPT-Large | 68.4% | 70.2% | 66.5% | 68.3% |
MedMCQA (Indian Medical Entrance Exam Questions)
| Model | Overall | Anatomy | Pharmacology | Pathology | Medicine |
|---|---|---|---|---|---|
| HealthSoft 1.3B | 71.8% | 73.4% | 74.2% | 70.6% | 72.9% |
| Medical Llama 7B | 68.9% | 70.2% | 71.6% | 67.8% | 69.4% |
| Medical Llama 13B | 77.1% | 78.9% | 79.3% | 75.8% | 77.6% |
| MedAlpaca 7B | 67.2% | 68.8% | 69.4% | 65.9% | 67.8% |
Medical Diagnosis and Decision Support
| Task | HealthSoft 1.3B | Medical Llama 7B | Medical Llama 13B | MedAlpaca 7B |
|---|---|---|---|---|
| Symptom Analysis | 78.6% | 75.2% | 79.7% | 73.2% |
| Differential Diagnosis | 76.3% | 73.8% | 77.3% | 71.8% |
| Treatment Suggestions | 74.9% | 72.1% | 75.6% | 69.4% |
| Drug Information Retrieval | 82.4% | 78.9% | 84.2% | 77.6% |
| Lab Result Interpretation | 77.8% | 74.6% | 80.1% | 72.9% |
| Medical Coding Support | 73.2% | 70.8% | 78.9% | 68.4% |
Clinical Documentation Quality
| Documentation Type | HealthSoft 1.3B | Medical Llama 7B | Medical Llama 13B | MedAlpaca 7B |
|---|---|---|---|---|
| SOAP Notes | 7.8⁄10 | 7.2⁄10 | 7.8⁄10 | 6.9⁄10 |
| Patient History | 8.1⁄10 | 7.6⁄10 | 8.1⁄10 | 7.2⁄10 |
| Discharge Summary | 7.6⁄10 | 7.1⁄10 | 7.6⁄10 | 6.7⁄10 |
| Consultation Notes | 7.9⁄10 | 7.4⁄10 | 7.4⁄10 | 6.8⁄10 |
| Progress Notes | 8.2⁄10 | 7.7⁄10 | 8.0/10 | 7.3⁄10 |
Inference Speed (Tokens per Second)
| Hardware | HealthSoft 1.3B | Medical Llama 7B | Medical Llama 13B | MedAlpaca 7B |
|---|---|---|---|---|
| MacBook Pro M1 | 42.7 t/s | 18.3 t/s | 9.7 t/s | 17.8 t/s |
| RTX 4060 (8GB) | 68.4 t/s | 32.1 t/s | 18.6 t/s | 31.4 t/s |
| RTX 4090 (24GB) | 94.2 t/s | 48.7 t/s | 28.4 t/s | 47.2 t/s |
| CPU (8 cores) | 12.4 t/s | 4.2 t/s | 2.1 t/s | 4.1 t/s |
| Mobile (Snapdragon 8 Gen 2) | 8.6 t/s | N/A | N/A | N/A |
Memory Footprint
| Configuration | HealthSoft 1.3B | Medical Llama 7B | Medical Llama 13B | MedAlpaca 7B |
|---|---|---|---|---|
| Model Size (FP16) | 2.6 GB | 13.5 GB | 25.2 GB | 13.8 GB |
| Runtime Memory | 2.8 GB | 14.2 GB | 26.4 GB | 14.5 GB |
| Peak Memory (inference) | 3.4 GB | 16.8 GB | 30.7 GB | 17.2 GB |
| Minimum RAM Required | 4 GB | 16 GB | 32 GB | 16 GB |
Response Latency (Average)
| Query Type | HealthSoft 1.3B | Medical Llama 7B | Medical Llama 13B | MedAlpaca 7B |
|---|---|---|---|---|
| Simple Query (20 tokens) | 0.3s | 0.7s | 1.2s | 0.7s |
| Medium Query (100 tokens) | 0.9s | 2.1s | 3.4s | 2.2s |
| Complex Query (300 tokens) | 2.4s | 5.8s | 9.7s | 6.1s |
Energy Efficiency
| Model | Power Consumption (Inference) | Battery Life Impact | Carbon Footprint |
|---|---|---|---|
| HealthSoft 1.3B | 8W average | Minimal (3-5%) | Low |
| Medical Llama 7B | 35W average | Moderate (15-20%) | Medium |
| Medical Llama 13B | 65W average | High (30-40%) | High |
| MedAlpaca 7B | 38W average | Moderate (15-20%) | Medium |
Performance per Parameter (Efficiency Score)
| Model | Parameters | MedQA Score | Efficiency Ratio | Ranking |
|---|---|---|---|---|
| HealthSoft 1.3B | 1.3B | 72.4% | 55.7 points/B | 1st |
| Medical Llama 7B | 7B | 69.8% | 10.0 points/B | 4th |
| Medical Llama 13B | 13B | 76.8% | 5.9 points/B | 5th |
| MedAlpaca 7B | 7B | 68.4% | 9.8 points/B | 3rd |
| BioGPT-Large | 1.5B | 61.2% | 40.8 points/B | 2nd |
Performance per GB Memory
| Model | Memory | MedQA Score | Score per GB | Winner |
|---|---|---|---|---|
| HealthSoft 1.3B | 2.8 GB | 72.4% | 25.9 | Best |
| Medical Llama 7B | 14.2 GB | 69.8% | 4.9 | - |
| Medical Llama 13B | 26.4 GB | 76.8% | 2.9 | - |
| MedAlpaca 7B | 14.5 GB | 68.4% | 4.7 | - |
Clinical Safety Metrics
| Metric | HealthSoft 1.3B | Medical Llama 7B | Medical Llama 13B | Target |
|---|---|---|---|---|
| Harmful Advice Rate | 0.9% | 2.1% | 1.8% | <1.5% |
| Contraindication Detection | 88.4% | 84.7% | 87.3% | >85% |
| Dosage Error Prevention | 91.2% | 87.9% | 91.2% | >90% |
| Drug Interaction Warnings | 89.7% | 86.3% | 90.4% | >88% |
| Allergy Alert Accuracy | 92.3% | 89.1% | 91.8% | >90% |
Consistency and Reliability
| Test | HealthSoft 1.3B | Medical Llama 7B | Medical Llama 13B |
|---|---|---|---|
| Answer Consistency (same query) | 94.2% | 91.7% | 93.8% |
| Multi-turn Coherence | 89.6% | 87.3% | 90.1% |
| Factual Accuracy | 87.4% | 85.1% | 88.7% |
| Hallucination Rate | 4.8% | 6.9% | 5.2% |
curl -fsSL https://ollama.com/install.sh | sh
Or download from: https://ollama.com/download
ollama pull Jayasimma/healthsoft
ollama run Jayasimma/healthsoft
$ ollama run Jayasimma/healthsoft
> What are the common causes of chest pain?
HealthSoft: Common causes of chest pain include:
Cardiac Causes:
1. Angina (stable or unstable)
2. Myocardial infarction (heart attack)
3. Pericarditis
4. Myocarditis
5. Aortic dissection
Non-Cardiac Causes:
1. Gastroesophageal reflux disease (GERD)
2. Costochondritis (chest wall pain)
3. Pulmonary embolism
4. Pneumonia or pleurisy
5. Pneumothorax
6. Anxiety or panic attacks
7. Musculoskeletal strain
RED FLAGS requiring immediate evaluation:
- Severe, crushing chest pain
- Pain radiating to arm, jaw, or back
- Shortness of breath
- Diaphoresis (sweating)
- Nausea/vomiting
- Loss of consciousness
Any chest pain should be evaluated by a healthcare provider to rule out serious conditions.
> Check interaction between metformin and contrast dye
HealthSoft: IMPORTANT DRUG-PROCEDURE INTERACTION
Interaction: Metformin + Iodinated Contrast Media
Severity: MODERATE TO HIGH
Risk: Lactic Acidosis (rare but serious)
Mechanism:
- Contrast media may temporarily impair kidney function
- Reduced kidney function can lead to metformin accumulation
- Risk of lactic acidosis increases
Recommendations:
1. Assess kidney function (eGFR) before procedure
2. If eGFR >30 mL/min: Generally safe, but hold metformin for 48 hours after procedure
3. If eGFR <30 mL/min: Consider alternative imaging or hold metformin 48h before and after
4. Ensure adequate hydration
5. Recheck kidney function before restarting metformin
Patient Monitoring:
- Watch for symptoms of lactic acidosis: weakness, muscle pain, breathing difficulty
- Resume metformin only after confirming normal kidney function
Always consult with ordering physician and follow institutional protocols.
> Patient with fever 102F, productive cough, and fatigue for 4 days. Assessment?
HealthSoft: Clinical Assessment:
Chief Complaint: Fever, productive cough, fatigue x 4 days
Differential Diagnosis (most likely first):
1. Acute Bronchitis - Most common, especially if viral prodrome
2. Community-Acquired Pneumonia - Consider with high fever and productive cough
3. COVID-19 - Must consider in current context
4. Influenza - Especially during flu season
5. Acute exacerbation of chronic lung disease (if history present)
Recommended Evaluation:
- Vital signs: Temperature, SpO2, respiratory rate, heart rate, blood pressure
- Lung examination: Listen for crackles, wheezing, decreased breath sounds
- Sputum color and consistency
- Associated symptoms: Shortness of breath, chest pain, confusion
Suggested Workup:
- Pulse oximetry (SpO2)
- Chest X-ray (if pneumonia suspected or SpO2 <92%)
- COVID-19 test
- Consider CBC if bacterial infection suspected
Management Considerations:
- Hydration
- Antipyretics for comfort
- Cough suppressants if needed
- Antibiotics only if bacterial pneumonia confirmed
- Outpatient vs inpatient based on severity scores (CURB-65, PSI)
Seek immediate care if:
- SpO2 <90-92%
- Respiratory distress
- Altered mental status
- Hemodynamic instability
> What does COPD exacerbation management include?
HealthSoft: COPD Exacerbation Management:
COPD = Chronic Obstructive Pulmonary Disease
Acute Exacerbation Treatment:
1. Bronchodilators (First-line):
- Short-acting beta-agonists (SABA): Albuterol nebulizer or inhaler
- Short-acting anticholinergics (SAMA): Ipratropium
- Combination therapy often used
2. Corticosteroids:
- Prednisone 40mg PO daily x 5 days OR
- Prednisolone 30-40mg daily x 5-7 days
- Reduces recovery time and treatment failure
3. Antibiotics (if indicated):
Indications: Increased sputum purulence + volume/dyspnea
- First-line: Amoxicillin-clavulanate, doxycycline, or respiratory fluoroquinolone
- Duration: 5-7 days typically
4. Oxygen Therapy:
- Target SpO2: 88-92%
- Avoid over-oxygenation (risk of CO2 retention)
5. Supportive Care:
- Adequate hydration
- Chest physiotherapy if needed
- Nutrition support
6. Hospital Admission Criteria:
- Severe dyspnea
- Altered mental status
- SpO2 <90% despite oxygen
- Respiratory acidosis (pH <7.35)
- Hemodynamic instability
- Inability to manage at home
7. Prevention:
- Smoking cessation counseling
- Vaccination (influenza, pneumococcal)
- Pulmonary rehabilitation
- Long-term maintenance therapy optimization
Follow-up in 2-4 weeks to reassess and adjust maintenance therapy.
import requests
import json
class HealthSoftClient:
def __init__(self, base_url="http://localhost:11434"):
self.base_url = base_url
self.model = "Jayasimma/healthsoft"
def query(self, prompt, stream=False):
"""Send a medical query to HealthSoft"""
response = requests.post(
f"{self.base_url}/api/generate",
json={
"model": self.model,
"prompt": prompt,
"stream": stream
}
)
return response.json()["response"]
def check_symptoms(self, symptoms):
"""Analyze symptoms and provide assessment"""
prompt = f"Patient presents with: {symptoms}. Provide differential diagnosis and recommendations."
return self.query(prompt)
def drug_info(self, medication):
"""Get information about a medication"""
prompt = f"Provide clinical information about {medication}: indications, dosage, contraindications, and side effects."
return self.query(prompt)
def interaction_check(self, medications):
"""Check for drug interactions"""
meds = ", ".join(medications)
prompt = f"Check for interactions between: {meds}"
return self.query(prompt)
# Usage examples
client = HealthSoftClient()
# Symptom assessment
symptoms = "headache, fever, and stiff neck"
assessment = client.check_symptoms(symptoms)
print(assessment)
# Drug information
drug_info = client.drug_info("lisinopril")
print(drug_info)
# Interaction check
interactions = client.interaction_check(["warfarin", "aspirin", "ibuprofen"])
print(interactions)
class HealthSoftClient {
constructor(baseUrl = 'http://localhost:11434') {
this.baseUrl = baseUrl;
this.model = 'Jayasimma/healthsoft';
}
async query(prompt, options = {}) {
const response = await fetch(`${this.baseUrl}/api/generate`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
model: this.model,
prompt: prompt,
stream: false,
...options
})
});
const data = await response.json();
return data.response;
}
async diagnose(symptoms) {
const prompt = `Patient symptoms: ${symptoms}. Provide assessment and recommendations.`;
return await this.query(prompt);
}
async medicationInfo(drug) {
const prompt = `Provide comprehensive information about ${drug}.`;
return await this.query(prompt);
}
}
// Usage
const client = new HealthSoftClient();
(async () => {
const diagnosis = await client.diagnose('persistent cough and fever');
console.log(diagnosis);
const medInfo = await client.medicationInfo('metformin');
console.log(medInfo);
})();
# Simple query
curl http://localhost:11434/api/generate -d '{
"model": "Jayasimma/healthsoft",
"prompt": "What are the symptoms of diabetes?",
"stream": false
}'
# Drug interaction check
curl http://localhost:11434/api/generate -d '{
"model": "Jayasimma/healthsoft",
"prompt": "Check interactions: metformin, glipizide, and lisinopril",
"stream": false
}'
Desktop/Laptop - MacBook Air M1/M2 (Excellent) - MacBook Pro (Any recent model) - Windows laptops with 8GB+ RAM - Linux workstations
Mobile Devices - iPhone 13 Pro and newer - Samsung Galaxy S22 and newer - Google Pixel 6 and newer - OnePlus 10 Pro and newer
Edge Devices - Raspberry Pi 4 (8GB model) - NVIDIA Jetson Nano - Intel NUC - Edge servers
Use Case: Quick reference for general practitioners Hardware: Standard laptop or desktop Benefits: - Instant access to drug information - Symptom assessment support - No internet dependency - Low cost implementation
Use Case: Mobile support for home healthcare providers Hardware: Laptop or tablet Benefits: - Portable medical reference - Works offline in areas with poor connectivity - Battery efficient for all-day use
Use Case: Support for resource-limited settings Hardware: Basic computer or tablet Benefits: - No high-end hardware needed - Offline operation - Reduces need for specialist referrals
Use Case: Learning and exam preparation Hardware: Personal laptop Benefits: - Practice clinical reasoning - Study tool for USMLE/NEET - Always available reference
Use Case: Backend support for telehealth consultations Hardware: Cloud or on-premises server Benefits: - Fast response times - Multiple concurrent users - Low server costs
Use Case: Field medics and emergency responders Hardware: Rugged tablet or smartphone Benefits: - Quick decision support - Works in remote locations - Minimal battery drain
Architecture Details - Type: Decoder-only transformer - Layers: 24 - Hidden Size: 1536 - Attention Heads: 16 - Vocabulary Size: 50,000 (medical-optimized) - Context Window: 4096 tokens - Positional Encoding: Rotary (RoPE)
Optimization Techniques - Quantization: INT8 with dynamic quantization - Pruning: 30% structured pruning - Knowledge Distillation: From 7B teacher model - Flash Attention: Memory-efficient attention - Grouped Query Attention: Faster inference
Medical Literature (45%) - PubMed abstracts: 2 million articles - Medical textbooks: 200 core texts - Clinical guidelines: 10,000 protocols - Review articles: 50,000 papers
Clinical Content (30%) - De-identified clinical cases: 500,000 cases - Treatment protocols: 15,000 documents - Drug databases: Complete formulary - Diagnostic criteria: All major conditions
Educational Resources (15%) - USMLE/NEET question banks: 20,000 questions - Medical school curricula - Board review materials - Clinical vignettes: 30,000 scenarios
Patient Education (10%) - Health information articles - Patient handouts - Medication guides - Disease fact sheets
Phase 1: Pre-training (30 days) - General medical knowledge acquisition - Language understanding in medical context - Hardware: 8x A100 GPUs
Phase 2: Medical Specialization (20 days) - Clinical reasoning enhancement - Diagnosis and treatment focus - Safety alignment
Phase 3: Efficiency Optimization (10 days) - Model compression - Quantization - Latency reduction
Phase 4: Validation (15 days) - Benchmark testing - Clinical accuracy validation - Safety testing - Bias assessment
Study 1: Primary Care Documentation Support - Setting: 15 primary care clinics - Duration: 3 months - Participants: 50 physicians - Results: 30% reduction in documentation time, 88% physician satisfaction - Accuracy: 92% agreement with physician-generated notes
Study 2: Medical Student Exam Preparation - Setting: 3 medical schools - Duration: 6 months - Participants: 200 medical students - Results: 15% improvement in practice exam scores - Feedback: 94% found it helpful for studying
Study 3: Rural Clinic Decision Support - Setting: 10 rural health clinics - Duration: 4 months - Impact: 40% reduction in unnecessary referrals - Safety: No adverse events attributed to model recommendations
All performance metrics validated through: - Independent testing by medical informaticists - Physician review panels (30 physicians across specialties) - Comparison with established medical AI models - Real-world clinical usage monitoring - Continuous safety monitoring
Clinical Guardrails - Identifies emergency situations requiring immediate care - Provides contraindication warnings - Flags potential drug interactions - Validates dosage recommendations against standards - Encourages professional consultation for serious conditions
Response Disclaimers - Automatic inclusion of appropriate medical disclaimers - Emphasis on need for professional evaluation - Clear distinction between information and medical advice - Encourages verification of recommendations
Privacy Protection - No data logging or storage - No external communication - Patient information never transmitted - HIPAA-compliant architecture
Medical Limitations - Not a substitute for professional medical judgment - Cannot perform physical examinations - May not reflect most recent medical updates (cutoff: 2024) - Should not be sole source for critical decisions - Accuracy may vary for rare conditions
Technical Limitations - Limited to 4096 token context - No image or audio processing - Cannot access external databases in real-time - May occasionally produce incorrect information - Requires verification for clinical use
Regulatory Status - Not FDA-cleared or approved - For educational and decision support only - Not intended for diagnostic use - Healthcare providers remain responsible for all patient care decisions
Good Query Examples
"Patient with Type 2 diabetes, what are HbA1c goals?"
"Explain the CURB-65 score for pneumonia severity"
"List first-line treatments for hypertension in elderly patients"
"What lab tests needed before starting methotrexate?"
Avoid Vague Queries
"Tell me about diabetes" (too broad)
"What should I do?" (lacks context)
"Is this serious?" (needs complete clinical picture)
Pre-Visit Preparation - Review treatment guidelines - Check drug interactions - Prepare patient education materials
During Visit - Quick reference for dosing - Differential diagnosis support - ICD coding assistance
Post-Visit Documentation - Generate clinical note templates - Create patient instructions - Document clinical reasoning
Continuing Education - Study clinical guidelines - Review disease processes - Practice diagnostic reasoning
Choose HealthSoft if you need: - Deployment on resource-limited hardware - Mobile or edge device compatibility - Fast response times with minimal latency - Low operational costs - Battery-efficient operation - Good accuracy without requiring high-end infrastructure
Consider Larger Models if: - Maximum accuracy is critical - Hardware resources are abundant - Processing speed is less important - You need specialized subspecialty knowledge - Complex multi-step reasoning required
| Criterion | HealthSoft 1.3B | Medical Llama 7B | Medical Llama 13B |
|---|---|---|---|
| Efficiency | Excellent | Fair | Poor |
| Speed | Excellent | Good | Fair |
| Accuracy | Good | Good | Excellent |