Run this model with HF Jobs
Run CaioReis/dm_from_scratch__plafond on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/CaioReis/dm_from_scratch__plafond. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/CaioReis/dm_from_scratch__plafond on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use CaioReis/dm_from_scratch__plafond with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use CaioReis/dm_from_scratch__plafond with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("CaioReis/dm_from_scratch__plafond", 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 unet_ema/config.json from CaioReis/dm_from_scratch__plafond: direct link, hf CLI and curl.
- Browser
- Download file 1.19 kB
-
https://huggingface.co/CaioReis/dm_from_scratch__plafond/resolve/main/unet_ema/config.json
- Command line
-
hf download hf://CaioReis/dm_from_scratch__plafond/unet_ema/config.json
-
curl -L -o config.json https://huggingface.co/CaioReis/dm_from_scratch__plafond/resolve/main/unet_ema/config.json
1.19 kB
| { | |
| "_class_name": "UNet2DModel", | |
| "_diffusers_version": "0.40.0.dev0", | |
| "act_fn": "silu", | |
| "add_attention": true, | |
| "attention_head_dim": 8, | |
| "attn_norm_num_groups": null, | |
| "block_out_channels": [ | |
| 128, | |
| 256, | |
| 384, | |
| 512 | |
| ], | |
| "center_input_sample": false, | |
| "class_embed_type": null, | |
| "decay": 0.9999, | |
| "down_block_types": [ | |
| "DownBlock2D", | |
| "DownBlock2D", | |
| "AttnDownBlock2D", | |
| "AttnDownBlock2D" | |
| ], | |
| "downsample_padding": 1, | |
| "downsample_type": "conv", | |
| "dropout": 0.0, | |
| "flip_sin_to_cos": true, | |
| "freq_shift": 0, | |
| "in_channels": 4, | |
| "inv_gamma": 1.0, | |
| "layers_per_block": 2, | |
| "mid_block_scale_factor": 1, | |
| "mid_block_type": "UNetMidBlock2D", | |
| "min_decay": 0.0, | |
| "norm_eps": 1e-05, | |
| "norm_num_groups": 32, | |
| "num_class_embeds": null, | |
| "num_train_timesteps": null, | |
| "optimization_step": 50000, | |
| "out_channels": 4, | |
| "power": 0.75, | |
| "resnet_time_scale_shift": "default", | |
| "sample_size": 64, | |
| "time_embedding_dim": null, | |
| "time_embedding_type": "positional", | |
| "up_block_types": [ | |
| "AttnUpBlock2D", | |
| "AttnUpBlock2D", | |
| "UpBlock2D", | |
| "UpBlock2D" | |
| ], | |
| "update_after_step": 0, | |
| "upsample_type": "conv", | |
| "use_ema_warmup": true | |
| } | |