Text Classification
Transformers
Safetensors
English
manta
feature-extraction
medical
decision-model
classification
calibration
multimodal
vision
radiology
pathology
clinical-text
custom_code
Instructions to use gevaertlab/MANTA-27B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gevaertlab/MANTA-27B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="gevaertlab/MANTA-27B", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("gevaertlab/MANTA-27B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,229 Bytes
38aa02e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | {
"id": "example-text-001",
"state": "Emergency department note. 67-year-old man with 3 days of fever (38.9 C), productive cough and right-sided pleuritic chest pain. Respiratory rate 26/min, SpO2 89 % on room air, blood pressure 118/72 mmHg. Crackles over the right lower zone. Chest radiograph: right lower lobe consolidation. WBC 15.2 x10^9/L, CRP 180 mg/L, urea 8.1 mmol/L. No leg swelling. History of hypertension.",
"questions": {
"diagnosis": {
"type": "choice",
"instructions": "What is the most likely diagnosis?",
"criteria": {
"community_acquired_pneumonia": "Community-acquired pneumonia",
"pulmonary_embolism": "Pulmonary embolism",
"acute_heart_failure": "Acute decompensated heart failure",
"copd_exacerbation": "Acute exacerbation of COPD"
}
},
"hypoxemia": {
"type": "noul",
"instructions": "Does the patient have hypoxemia?"
},
"severity": {
"type": "score",
"instructions": "How severe is the illness at presentation?",
"criteria": [
"mild: outpatient care",
"moderate: ward admission",
"severe: high-dependency care",
"critical: intensive care"
]
}
}
}
|