Text-to-Image
ZeroModels
Keras
PyTorch
JAX
TensorFlow
English
stable-diffusion
stable-diffusion-3
sd3
mmdit
diffusion
rectified-flow
Instructions to use zeromodels/stable-diffusion-3.5-large-turbo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ZeroModels
How to use zeromodels/stable-diffusion-3.5-large-turbo with ZeroModels:
# pip install -U zeromodels # ZeroModels is pure Keras 3, so pick a backend: "jax", "torch" or "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" from zeromodels import AutoZModel # AutoZModel reads the repo's model_type and loads the matching class. # For a task head use the matching loader, e.g. AutoZMImageClassify / AutoZMDetect / # AutoZMSemanticSegment / AutoZMTextGenerate (see zeromodels.auto). model = AutoZModel.from_weights("zeromodels/stable-diffusion-3.5-large-turbo") - Keras
How to use zeromodels/stable-diffusion-3.5-large-turbo with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://zeromodels/stable-diffusion-3.5-large-turbo") - Notebooks
- Google Colab
- Kaggle
Download zm_preprocessor.json from zeromodels/stable-diffusion-3.5-large-turbo: direct link, hf CLI and curl.
- Browser
- Download file 337 Bytes
-
https://huggingface.co/zeromodels/stable-diffusion-3.5-large-turbo/resolve/main/zm_preprocessor.json
- Command line
-
hf download hf://zeromodels/stable-diffusion-3.5-large-turbo/zm_preprocessor.json
-
curl -L -o zm_preprocessor.json https://huggingface.co/zeromodels/stable-diffusion-3.5-large-turbo/resolve/main/zm_preprocessor.json
337 Bytes
| { | |
| "library_name": "zeromodels", | |
| "zeromodels_version": "1.3.3", | |
| "preprocessor_module": "zeromodels.diffusers", | |
| "preprocessor_class": "ZMDiffusionTokenizer", | |
| "variant": "stable-diffusion-3.5-large-turbo", | |
| "model_type": "stable_diffusion_3_5", | |
| "max_seq_len": 77, | |
| "pad_token": "<|endoftext|>", | |
| "max_sequence_length": 256 | |
| } | |