Instructions to use ByteDance/Bernini-R-1.3B-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ByteDance/Bernini-R-1.3B-Diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ByteDance/Bernini-R-1.3B-Diffusers", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download config.json from ByteDance/Bernini-R-1.3B-Diffusers: direct link, hf CLI and curl.
- Browser
- Download file 347 Bytes
-
https://huggingface.co/ByteDance/Bernini-R-1.3B-Diffusers/resolve/main/config.json
- Command line
-
hf download hf://ByteDance/Bernini-R-1.3B-Diffusers/config.json
-
curl -L -o config.json https://huggingface.co/ByteDance/Bernini-R-1.3B-Diffusers/resolve/main/config.json
347 Bytes
| { | |
| "model_type": "bernini_renderer", | |
| "architectures": ["BerniniRendererModel"], | |
| "wan22_base": "ByteDance/Bernini-R-1.3B-Diffusers", | |
| "skip_transformer_1": false, | |
| "skip_transformer_2": true, | |
| "switch_dit_boundary": 0, | |
| "max_sequence_length": 512, | |
| "shift": 3.0, | |
| "use_unipc": true, | |
| "use_src_id_rotary_emb": true | |
| } | |