Instructions to use Lawrence-cj/Sana_1600M_1024px_BF16_diffusers_ch5632 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Lawrence-cj/Sana_1600M_1024px_BF16_diffusers_ch5632 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Lawrence-cj/Sana_1600M_1024px_BF16_diffusers_ch5632", 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
- Local Apps Settings
- Draw Things
- DiffusionBee
Download scheduler/scheduler_config.json from Lawrence-cj/Sana_1600M_1024px_BF16_diffusers_ch5632: direct link, hf CLI and curl.
- Browser
- Download file 840 Bytes
-
https://huggingface.co/Lawrence-cj/Sana_1600M_1024px_BF16_diffusers_ch5632/resolve/main/scheduler/scheduler_config.json
- Command line
-
hf download hf://Lawrence-cj/Sana_1600M_1024px_BF16_diffusers_ch5632/scheduler/scheduler_config.json
-
curl -L -o scheduler_config.json https://huggingface.co/Lawrence-cj/Sana_1600M_1024px_BF16_diffusers_ch5632/resolve/main/scheduler/scheduler_config.json
840 Bytes
Invalid JSON:No number after minus sign in JSONat line 12, column 26
| { | |
| "_class_name": "DPMSolverMultistepScheduler", | |
| "_diffusers_version": "0.32.0.dev0", | |
| "algorithm_type": "dpmsolver++", | |
| "beta_end": 0.02, | |
| "beta_schedule": "linear", | |
| "beta_start": 0.0001, | |
| "dynamic_thresholding_ratio": 0.995, | |
| "euler_at_final": false, | |
| "final_sigmas_type": "zero", | |
| "flow_shift": 3.0, | |
| "lambda_min_clipped": -Infinity, | |
| "lower_order_final": true, | |
| "num_train_timesteps": 1000, | |
| "prediction_type": "flow_prediction", | |
| "rescale_betas_zero_snr": false, | |
| "sample_max_value": 1.0, | |
| "solver_order": 2, | |
| "solver_type": "midpoint", | |
| "steps_offset": 0, | |
| "thresholding": false, | |
| "timestep_spacing": "linspace", | |
| "trained_betas": null, | |
| "use_beta_sigmas": false, | |
| "use_exponential_sigmas": false, | |
| "use_flow_sigmas": true, | |
| "use_karras_sigmas": false, | |
| "use_lu_lambdas": false, | |
| "variance_type": null | |
| } | |