Model Card for Ushukela Diabetes LLM - A domain specific LLM for diabetes care and management
UshukelaDiabetesLLM
Model Details
Model Description
This study was initiated to develop a domain-specific Large Language Model (LLM) aimed at improving diabetes care and management, addressing the unique challenges faced by South African patients, caregivers, and medical practitioners. To achieve this, local data was collected and supplemented with benchmark and medical Hugging Face datasets. Medical specialised BioMedLM (2.7B) and BioMistral-7B pre-trained LLMs were selected as base models, along with Qwen3-8B (a non-specialised LLM). Parameter-Efficient Fine-Tuning (PEFT) techniques, prompt tuning and Quantised Low-Rank Adaptation (QLoRA) were applied, with Retrieval-Augmented Generation (RAG) applied on the best-performing LLM. The fine-tuned LLMs were evaluated by comparing their respective performance with Diabetica-7B, a diabetes specialised model.
The final collected dataset consisted of 18,079 processed question-answer pairs (14% of which were artificially generated to reflect the South African context), along with 1,596 documents. The data covered topics such as medication, management (diet and exercise), diagnosis and screening, and general diabetes-related content, ensuring comprehensiveness. When evaluating fill-in-the-blanks and multiple-choice question-answer pairs, Qwen QLoRA outperformed all LLMs, achieving ROUGE-1 of 0.793, ROUGE-L of 0.792, and BERT Score F1 of 0.940. However, Diabetica achieved a higher BLEU of 0.465, while Qwen3-8B. achieved a BLEU of 0.365. For multiple-choice questions only, Qwen3-7B LLMs performed consistently better, with Qwen3-7B QLoRA achieving the highest accuracy of 80.7%. For short and long answer questions, BioMistral-7B QLoRA showed slightly superior performance, with all LLMs performing above 0.800. The results of this study show promising applications of LLMs in healthcare.
- Developed by: [More Information Needed]
- Funded by [optional]: [More Information Needed]
- Shared by [optional]: [More Information Needed]
- Model type: [More Information Needed]
- Language(s) (NLP): [More Information Needed]
- License: [More Information Needed]
- Finetuned from model [optional]: [More Information Needed]
Model Sources [optional]
- Repository: [More Information Needed]
- Paper [optional]: [More Information Needed]
- Demo [optional]: [More Information Needed]
Uses
Direct Use
[More Information Needed]
Downstream Use [optional]
[More Information Needed]
Out-of-Scope Use
[More Information Needed]
Bias, Risks, and Limitations
[More Information Needed]
Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
How to Get Started with the Model
Use the code below to get started with the model.
[More Information Needed]
Training Details
Training Data
[More Information Needed]
Training Procedure
Preprocessing [optional]
[More Information Needed]
Training Hyperparameters
- Training regime: [More Information Needed]
Speeds, Sizes, Times [optional]
[More Information Needed]
Evaluation
Testing Data, Factors & Metrics
Testing Data
[More Information Needed]
Factors
[More Information Needed]
Metrics
[More Information Needed]
Results
[More Information Needed]
Summary
Model Examination [optional]
[More Information Needed]
Environmental Impact
Fine-tuning LLMs, even when using open-source models, incurs financial costs and has environmental implications that should be considered. Developing the LLM for the South African context required over 1,200 compute units, a notable amount. These units were utilised for data preparation, experimentation, fine-tuning, and model evaluation. The total cost of the project is estimated at approximately US$100 (excluding value-added tax), with an associated carbon emission of 45.6 kg CO₂ equivalent
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: [More Information Needed]
- Hours used: [More Information Needed]
- Cloud Provider: [More Information Needed]
- Compute Region: [More Information Needed]
- Carbon Emitted: [More Information Needed]
Technical Specifications [optional]
Model Architecture and Objective
[More Information Needed]
Compute Infrastructure
[More Information Needed]
Hardware
[More Information Needed]
Software
[More Information Needed]
Citation [optional]
BibTeX:
[More Information Needed]
APA:
[More Information Needed]
Glossary [optional]
[More Information Needed]
More Information [optional]
[More Information Needed]
Model Card Authors [optional]
[More Information Needed]
Model Card Contact
[More Information Needed]