Run this model with HF Jobs
Run MagicBooth/mush 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/MagicBooth/mush. 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/MagicBooth/mush 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 MagicBooth/mush with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use MagicBooth/mush with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("MagicBooth/mush", 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 args.json from MagicBooth/mush: direct link, hf CLI and curl.
- Browser
- Download file 1.3 kB
-
https://huggingface.co/MagicBooth/mush/resolve/bf4f8d4de97fffe8b4312be7e4dce0db057b9de5/args.json
- Command line
-
hf download hf://MagicBooth/mush@bf4f8d4de97fffe8b4312be7e4dce0db057b9de5/args.json
-
curl -L -o args.json https://huggingface.co/MagicBooth/mush/resolve/bf4f8d4de97fffe8b4312be7e4dce0db057b9de5/args.json
1.3 kB
| { | |
| "pretrained_model_name_or_path": "stabilityai/stable-diffusion-2-1-base", | |
| "revision": "fp16", | |
| "instance_data_dir": "images/mushrooms", | |
| "class_data_dir": "images/doy pack", | |
| "instance_prompt": "xyz doy pack", | |
| "class_prompt": "a doy pack", | |
| "save_sample_prompt": null, | |
| "save_sample_negative_prompt": null, | |
| "n_save_sample": 5, | |
| "save_guidance_scale": 7.5, | |
| "save_infer_steps": 50, | |
| "pad_tokens": false, | |
| "prior_loss_weight": 1.0, | |
| "num_class_images": 300, | |
| "output_dir": "results", | |
| "seed": 1234, | |
| "resolution": 512, | |
| "center_crop": false, | |
| "train_batch_size": 1, | |
| "sample_batch_size": 5, | |
| "max_train_steps": 3000, | |
| "max_train_text_encoder": 1500, | |
| "gradient_checkpointing": false, | |
| "learning_rate": 1e-06, | |
| "lr_scheduler": "constant", | |
| "lr_warmup_steps": 500, | |
| "adam_beta1": 0.9, | |
| "adam_beta2": 0.999, | |
| "adam_weight_decay": 0.01, | |
| "adam_epsilon": 1e-08, | |
| "max_grad_norm": 1.0, | |
| "log_interval": 10, | |
| "save_interval": 10000, | |
| "save_min_steps": 5000, | |
| "mixed_precision": "fp16", | |
| "concepts_list": [ | |
| { | |
| "instance_prompt": "xyz doy pack", | |
| "class_prompt": "a doy pack", | |
| "instance_data_dir": "images/mushrooms", | |
| "class_data_dir": "images/doy pack" | |
| } | |
| ], | |
| "repo_name": "mush", | |
| "instance_class": "doy pack", | |
| "num_train_epochs": 10 | |
| } |