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