Spaces:
Running
on
Zero
Running
on
Zero
Y Phung Nguyen
commited on
Commit
·
22b7790
1
Parent(s):
39c0a27
Upd models urls
Browse files
README.md
CHANGED
|
@@ -44,13 +44,21 @@ tags:
|
|
| 44 |
|
| 45 |
|
| 46 |
### 🧠 **MedSwin Medical Specialist Models**
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
- **MedSwin
|
| 51 |
-
- **MedSwin KD**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
- Models download on-demand for efficient resource usage
|
| 53 |
- Fine-tuned on MedAlpaca-7B for medical domain expertise
|
|
|
|
| 54 |
|
| 55 |
|
| 56 |
### 🌍 **Multi-Language Support**
|
|
|
|
| 44 |
|
| 45 |
|
| 46 |
### 🧠 **MedSwin Medical Specialist Models**
|
| 47 |
+
|
| 48 |
+
MedLLM Agent supports multiple MedSwin models, each optimized for different use cases:
|
| 49 |
+
|
| 50 |
+
- **[MedSwin DT](https://huggingface.co/MedSwin/MedSwin-Merged-DaRE-TIES-KD-0.7)** (85% acc) - **Default model**. DaRE-TIES merged model combining Supervised Fine-Tuning (SFT) and Knowledge Distillation (KD) techniques. Best overall performance.
|
| 51 |
+
- **[MedSwin Nsl](https://huggingface.co/MedSwin/MedSwin-Merged-NuSLERP-KD-0.7)** (85% acc) - NuSLERP merged model from SFT and KD. Alternative high-performance option with different merging strategy.
|
| 52 |
+
- **[MedSwin DL](https://huggingface.co/MedSwin/MedSwin-Merged-DaRE-Linear-KD-0.7)** (84% acc) - DaRE-Linear merged model using linear interpolation for knowledge distillation.
|
| 53 |
+
- **[MedSwin Ti](https://huggingface.co/MedSwin/MedSwin-Merged-TIES-KD-0.7)** (84% acc) - TIES merged model from SFT and KD. Compact merged architecture.
|
| 54 |
+
- **[MedSwin TA](https://huggingface.co/MedSwin/MedSwin-Merged-TA-SFT-0.7)** (84% acc) - Task-Arithmetic merged model from SFT. Optimized for task-specific performance.
|
| 55 |
+
- **[MedSwin SFT](https://huggingface.co/MedSwin/MedSwin-7B-SFT)** (82% acc) - Supervised Fine-Tuned model. Base fine-tuned model without merging.
|
| 56 |
+
- **[MedSwin KD](https://huggingface.co/MedSwin/MedSwin-7B-KD)** (83% acc) - Knowledge Distillation model from MedGemma-27b-it. Distilled knowledge from larger model.
|
| 57 |
+
|
| 58 |
+
**Model Features:**
|
| 59 |
- Models download on-demand for efficient resource usage
|
| 60 |
- Fine-tuned on MedAlpaca-7B for medical domain expertise
|
| 61 |
+
- All models support GPU acceleration for fast inference
|
| 62 |
|
| 63 |
|
| 64 |
### 🌍 **Multi-Language Support**
|
ui.py
CHANGED
|
@@ -256,6 +256,25 @@ def create_demo():
|
|
| 256 |
value=0.5,
|
| 257 |
label="Merge Threshold (lower = more merging)"
|
| 258 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 259 |
|
| 260 |
show_thoughts_state = gr.State(value=False)
|
| 261 |
|
|
|
|
| 256 |
value=0.5,
|
| 257 |
label="Merge Threshold (lower = more merging)"
|
| 258 |
)
|
| 259 |
+
|
| 260 |
+
# MedSwin Model Links
|
| 261 |
+
gr.Markdown(
|
| 262 |
+
"""
|
| 263 |
+
<div style="margin-top: 20px; padding: 15px; background-color: #f5f5f5; border-radius: 8px;">
|
| 264 |
+
<h4 style="margin-top: 0; margin-bottom: 10px;">🔗 MedSwin Models on Hugging Face</h4>
|
| 265 |
+
<div style="display: flex; flex-wrap: wrap; gap: 10px;">
|
| 266 |
+
<a href="https://huggingface.co/MedSwin/MedSwin-Merged-DaRE-TIES-KD-0.7" target="_blank" style="text-decoration: none; padding: 5px 10px; background-color: #1a73e8; color: white; border-radius: 4px; font-size: 12px;">MedSwin DT</a>
|
| 267 |
+
<a href="https://huggingface.co/MedSwin/MedSwin-Merged-NuSLERP-KD-0.7" target="_blank" style="text-decoration: none; padding: 5px 10px; background-color: #1a73e8; color: white; border-radius: 4px; font-size: 12px;">MedSwin Nsl</a>
|
| 268 |
+
<a href="https://huggingface.co/MedSwin/MedSwin-Merged-DaRE-Linear-KD-0.7" target="_blank" style="text-decoration: none; padding: 5px 10px; background-color: #1a73e8; color: white; border-radius: 4px; font-size: 12px;">MedSwin DL</a>
|
| 269 |
+
<a href="https://huggingface.co/MedSwin/MedSwin-Merged-TIES-KD-0.7" target="_blank" style="text-decoration: none; padding: 5px 10px; background-color: #1a73e8; color: white; border-radius: 4px; font-size: 12px;">MedSwin Ti</a>
|
| 270 |
+
<a href="https://huggingface.co/MedSwin/MedSwin-Merged-TA-SFT-0.7" target="_blank" style="text-decoration: none; padding: 5px 10px; background-color: #1a73e8; color: white; border-radius: 4px; font-size: 12px;">MedSwin TA</a>
|
| 271 |
+
<a href="https://huggingface.co/MedSwin/MedSwin-7B-SFT" target="_blank" style="text-decoration: none; padding: 5px 10px; background-color: #1a73e8; color: white; border-radius: 4px; font-size: 12px;">MedSwin SFT</a>
|
| 272 |
+
<a href="https://huggingface.co/MedSwin/MedSwin-7B-KD" target="_blank" style="text-decoration: none; padding: 5px 10px; background-color: #1a73e8; color: white; border-radius: 4px; font-size: 12px;">MedSwin KD</a>
|
| 273 |
+
</div>
|
| 274 |
+
<p style="margin-top: 10px; margin-bottom: 0; font-size: 11px; color: #666;">Click any model name to view details on Hugging Face</p>
|
| 275 |
+
</div>
|
| 276 |
+
"""
|
| 277 |
+
)
|
| 278 |
|
| 279 |
show_thoughts_state = gr.State(value=False)
|
| 280 |
|