doctoria commited on
Commit
f7d1ea9
·
verified ·
1 Parent(s): 508ac01

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +187 -15
README.md CHANGED
@@ -1,21 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
- base_model: unsloth/llama-3.2-11b-vision-instruct-unsloth-bnb-4bit
3
- tags:
4
- - text-generation-inference
5
- - transformers
6
- - unsloth
7
- - mllama
8
- license: apache-2.0
9
- language:
10
- - en
 
 
 
 
 
 
 
 
 
 
 
 
11
  ---
12
 
13
- # Uploaded finetuned model
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
- - **Developed by:** doctoria
16
- - **License:** apache-2.0
17
- - **Finetuned from model :** unsloth/llama-3.2-11b-vision-instruct-unsloth-bnb-4bit
18
 
19
- This mllama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
20
 
21
- [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
 
 
 
 
 
 
 
 
 
 
 
1
+ # DoctorIA-MED-R-8B
2
+
3
+ # DoctorIA Medical Solutions: Revolutionizing Healthcare with AI-Powered Diagnostics
4
+
5
+ ![Hugging Face Badge](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Model-blue) ![License](https://img.shields.io/badge/license-Apache%202.0-green)
6
+
7
+ [[Read the Paper]](https://example.com/paper) [[Demo]](https://example.com/demo) [[Hugging Face Model](https://huggingface.co/your-username/doctoria-model)]
8
+
9
+ **DoctorIA** is an innovative AI-powered solution designed to enhance radiological diagnostics, improve healthcare access, and reduce disparities in underserved areas of Morocco. Leveraging state-of-the-art machine learning techniques, DoctorIA provides accurate, efficient, and scalable diagnostic support for medical professionals.
10
+
11
+ ---
12
+
13
+ ## Overview
14
+
15
+ DoctorIA is built to assist healthcare providers with:
16
+ - **Automated Medical Image Analysis**: Accurate interpretation of X-rays, MRIs, and other medical imaging technologies.
17
+ - **Clinical Reasoning Support**: Advanced reasoning capabilities to assist in diagnosis, treatment planning, and risk assessment.
18
+ - **Healthcare Accessibility Initiatives**: Bridging gaps in healthcare access by offering scalable solutions to underserved populations.
19
+
20
+ Our mission is to empower healthcare professionals and patients alike by providing cutting-edge AI-driven diagnostic tools.
21
+
22
+ ---
23
+
24
+ ## Key Features
25
+
26
+ - **AI-Driven Diagnostic Tools**: Supports clinical reasoning and treatment planning by providing insights derived from advanced AI algorithms.
27
+ - **Radiology Assistance**: Assists radiologists with preliminary analysis of medical images.
28
+ - **Patient Education**: Provides clear explanations of medical procedures and technologies.
29
+ - **Multilingual Support**: Available in Arabic, French, English, and Spanish to cater to diverse populations.
30
+ - **Scalable Deployment**: Optimized for deployment in resource-constrained environments, ensuring accessibility even in underserved areas.
31
+
32
+ ---
33
+
34
+ ## Models
35
+
36
+ We release two versions of the DoctorIA model:
37
+
38
+ 1. **DoctorIA-ClinicalReasoning**
39
+ - **Purpose**: Clinical reasoning and diagnostic support.
40
+ - **Tasks**: Symptom-to-diagnosis mapping, treatment planning, and evidence-based recommendations.
41
+ - **Quantization**: Available in 4-bit precision for reduced memory usage.
42
+ - **Hugging Face Repository**: [DoctorIA-ClinicalReasoning](https://huggingface.co/your-username/doctoria-clinical-reasoning)
43
+
44
+ 2. **DoctorIA-MedicalImageAnalysis**
45
+ - **Purpose**: Automated analysis of medical images (X-rays, MRIs, etc.).
46
+ - **Tasks**: Disease detection, lesion segmentation, and abnormality classification.
47
+ - **Quantization**: Available in 4-bit precision for reduced memory usage.
48
+ - **Hugging Face Repository**: [DoctorIA-MedicalImageAnalysis](https://huggingface.co/your-username/doctoria-medical-image-analysis)
49
+
50
+ All models are released under the **Apache 2.0 License**.
51
+
52
+ ---
53
+
54
+ ## Organisation of the Repository
55
+
56
+ The repository is structured as follows:
57
+
58
+ - **`clinical_reasoning/`**: Contains the code and resources for the clinical reasoning model.
59
+ - **`medical_image_analysis/`**: Contains the code and resources for the medical image analysis model.
60
+ - **`examples/`**: Example scripts for inference, fine-tuning, and integration.
61
+ - **`datasets/`**: Links to datasets used for training and evaluation.
62
+ - **`notebooks/`**: Jupyter notebooks for experimentation and visualization.
63
+ - **`docs/`**: Additional documentation and tutorials.
64
+
65
  ---
66
+
67
+ ## Requirements
68
+
69
+ To use DoctorIA, you will need:
70
+
71
+ - Python 3.8 or higher (Python 3.10 recommended).
72
+ - PyTorch (`torch`) and Transformers (`transformers`) libraries.
73
+ - GPU with at least 16GB of memory (for full-precision models).
74
+
75
+ Install dependencies using:
76
+
77
+ ```bash
78
+ pip install -r requirements.txt
79
+ ```
80
+
81
+ For quantized models (4-bit precision), ensure you have the `bitsandbytes` library installed:
82
+
83
+ ```bash
84
+ pip install bitsandbytes
85
+ ```
86
+
87
  ---
88
 
89
+ ## Usage
90
+
91
+ ### 1. Clinical Reasoning Model
92
+
93
+ Load the model and tokenizer:
94
+
95
+ ```python
96
+ from transformers import AutoTokenizer, AutoModelForSequenceClassification
97
+
98
+ model_name = "your-username/doctoria-clinical-reasoning"
99
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
100
+ model = AutoModelForSequenceClassification.from_pretrained(model_name)
101
+
102
+ # Example input
103
+ inputs = tokenizer("The patient presents with fever, cough, and shortness of breath.", return_tensors="pt")
104
+ outputs = model(**inputs)
105
+ predicted_diagnosis = outputs.logits.argmax().item()
106
+ print(f"Predicted Diagnosis: {predicted_diagnosis}")
107
+ ```
108
+
109
+ ### 2. Medical Image Analysis Model
110
+
111
+ Load the model and feature extractor:
112
+
113
+ ```python
114
+ from transformers import AutoFeatureExtractor, AutoModelForImageClassification
115
+ from PIL import Image
116
+ import requests
117
+
118
+ model_name = "your-username/doctoria-medical-image-analysis"
119
+ feature_extractor = AutoFeatureExtractor.from_pretrained(model_name)
120
+ model = AutoModelForImageClassification.from_pretrained(model_name)
121
+
122
+ # Example input
123
+ url = "https://example.com/chest-xray.jpg"
124
+ image = Image.open(requests.get(url, stream=True).raw)
125
+ inputs = feature_extractor(images=image, return_tensors="pt")
126
+ outputs = model(**inputs)
127
+ predicted_class = outputs.logits.argmax().item()
128
+ print(f"Predicted Class: {predicted_class}")
129
+ ```
130
+
131
+ ---
132
+
133
+ ## Benchmarks
134
+
135
+ DoctorIA has been evaluated on several benchmarks to ensure its performance and reliability:
136
+
137
+ - **Clinical Reasoning**: Achieved **X% accuracy** on the DR.BENCH benchmark for clinical diagnostic reasoning.
138
+ - **Medical Image Analysis**: Achieved **Y% sensitivity** and **Z% specificity** on the CheXpert benchmark for chest X-ray analysis.
139
+
140
+ For more details, refer to our [paper](https://example.com/paper).
141
+
142
+ ---
143
+
144
+ ## Development
145
+
146
+ If you wish to contribute to DoctorIA or modify it for your needs:
147
+
148
+ 1. Clone the repository:
149
+ ```bash
150
+ git clone https://github.com/your-username/doctoria.git
151
+ cd doctoria
152
+ ```
153
+
154
+ 2. Install dependencies:
155
+ ```bash
156
+ pip install -e '.[dev]'
157
+ ```
158
+
159
+ 3. Run tests:
160
+ ```bash
161
+ pytest
162
+ ```
163
+
164
+ ---
165
+
166
+ ## FAQ
167
+
168
+ Check out the [Frequently Asked Questions](FAQ.md) section before opening an issue.
169
+
170
+ ---
171
+
172
+ ## License
173
+
174
+ The codebase is released under the **Apache 2.0 License**.
175
+ The model weights are released under the **CC-BY 4.0 License**.
176
+
177
+ ---
178
 
179
+ ## Citation
 
 
180
 
181
+ If you use DoctorIA in your research or projects, please cite our work:
182
 
183
+ ```bibtex
184
+ @techreport{doctoria2025,
185
+ title={DoctorIA: Enhancing Radiological Diagnostics with AI},
186
+ author={Jad Tounsi El Azzoiani and Team DoctorIA},
187
+ year={2025},
188
+ eprint={XXXX.XXXXX},
189
+ archivePrefix={arXiv},
190
+ primaryClass={cs.AI},
191
+ url={https://example.com/paper},
192
+ }
193
+ ```