Instructions to use farapart/982C2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use farapart/982C2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("farapart/982C2", 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 farapart/982C2: direct link, hf CLI and curl.
- Browser
- Download file 700 Bytes
-
https://huggingface.co/farapart/982C2/resolve/main/config.json
- Command line
-
hf download hf://farapart/982C2/config.json
-
curl -L -o config.json https://huggingface.co/farapart/982C2/resolve/main/config.json
700 Bytes
| { | |
| "_class_name": "AutoencoderTiny", | |
| "_diffusers_version": "0.31.0", | |
| "_name_or_path": "madebyollin/taef1", | |
| "act_fn": "relu", | |
| "block_out_channels": [ | |
| 64, | |
| 64, | |
| 64, | |
| 64 | |
| ], | |
| "decoder_block_out_channels": [ | |
| 64, | |
| 64, | |
| 64, | |
| 64 | |
| ], | |
| "encoder_block_out_channels": [ | |
| 64, | |
| 64, | |
| 64, | |
| 64 | |
| ], | |
| "force_upcast": false, | |
| "in_channels": 3, | |
| "latent_channels": 16, | |
| "latent_magnitude": 3, | |
| "latent_shift": 0.5, | |
| "num_decoder_blocks": [ | |
| 3, | |
| 3, | |
| 3, | |
| 1 | |
| ], | |
| "num_encoder_blocks": [ | |
| 1, | |
| 3, | |
| 3, | |
| 3 | |
| ], | |
| "out_channels": 3, | |
| "scaling_factor": 1.0, | |
| "shift_factor": 0.0, | |
| "upsample_fn": "nearest", | |
| "upsampling_scaling_factor": 2 | |
| } | |