Text-to-Image
Transformers
English
SupraDiT
feature-extraction
small
supra
image
flux
img
t2i
from scratch
custom_code
Instructions to use SupraLabs/Supra2-IMG with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SupraLabs/Supra2-IMG with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("SupraLabs/Supra2-IMG", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from SupraLabs/Supra2-IMG: direct link, hf CLI and curl.
- Browser
- Download file 226 Bytes
-
https://huggingface.co/SupraLabs/Supra2-IMG/resolve/main/config.json
- Command line
-
hf download hf://SupraLabs/Supra2-IMG/config.json
-
curl -L -o config.json https://huggingface.co/SupraLabs/Supra2-IMG/resolve/main/config.json
226 Bytes
| { | |
| "architectures": [ | |
| "SupraDiT" | |
| ], | |
| "model_type": "SupraDiT", | |
| "auto_map": { | |
| "AutoConfig": "configuration_my_model.SupraDiTConfig", | |
| "AutoModel": "modeling_my_model.SupraDiT" | |
| }, | |
| "torch_dtype": "bfloat16" | |
| } |