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
Download examples/text_request.json from gevaertlab/MANTA-27B: direct link, hf CLI and curl.
- Browser
- Download file 1.23 kB
-
https://huggingface.co/gevaertlab/MANTA-27B/resolve/main/examples/text_request.json
- Command line
-
hf download hf://gevaertlab/MANTA-27B/examples/text_request.json
-
curl -L -o text_request.json https://huggingface.co/gevaertlab/MANTA-27B/resolve/main/examples/text_request.json
1.23 kB
| { | |
| "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" | |
| ] | |
| } | |
| } | |
| } | |