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-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gevaertlab/MANTA-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="gevaertlab/MANTA-4B", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("gevaertlab/MANTA-4B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,224 Bytes
ae0db2a | 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 32 33 34 35 36 37 38 39 40 41 42 43 44 | {
"id": "example-image-001",
"state": "Chest radiograph of an adult outpatient.",
"images": [
"https://upload.wikimedia.org/wikipedia/commons/a/a1/Normal_posteroanterior_%28PA%29_chest_radiograph_%28X-ray%29.jpg"
],
"questions": {
"modality": {
"type": "choice",
"instructions": "What is the imaging modality?",
"criteria": {
"xray": "Radiograph (X-ray)",
"ct": "Computed tomography",
"mri": "Magnetic resonance imaging",
"ultrasound": "Ultrasound"
}
},
"view": {
"type": "choice",
"instructions": "What is the projection of this chest radiograph?",
"criteria": {
"pa": "Posteroanterior",
"ap": "Anteroposterior",
"lateral": "Lateral"
}
},
"finding": {
"type": "choice",
"instructions": "Which finding does the radiograph show?",
"criteria": {
"no_finding": "No finding",
"consolidation": "Consolidation",
"pleural_effusion": "Pleural effusion",
"pneumothorax": "Pneumothorax",
"cardiomegaly": "Cardiomegaly"
}
},
"abnormal": {
"type": "noul",
"instructions": "Is the radiograph abnormal?"
}
}
}
|