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
Upload . with huggingface_hub
Browse filesFiles changed (14)
- args.jsonAdded+48
- feature_extractor/preprocessor_config.jsonAdded+28
- model_index.jsonAdded+33
- scheduler/scheduler_config.jsonAdded+14
- text_encoder/config.jsonAdded+25
- text_encoder/pytorch_model.binAdded+3
- tokenizer/merges.txtAdded
- tokenizer/special_tokens_map.jsonAdded+24
- tokenizer/tokenizer_config.jsonAdded+34
- tokenizer/vocab.jsonAdded
- unet/config.jsonAdded+50
- unet/diffusion_pytorch_model.binAdded+3
- vae/config.jsonAdded+30
- vae/diffusion_pytorch_model.binAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748{ "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": 200, "output_dir": "results", "seed": 1234, "resolution": 512, "center_crop": false, "train_batch_size": 1, "sample_batch_size": 5, "max_train_steps": 1000, "max_train_text_encoder": 500, "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": 5}12345678910111213141516171819202122232425262728{ "crop_size": { "height": 224, "width": 224 }, "do_center_crop": true, "do_convert_rgb": true, "do_normalize": true, "do_rescale": true, "do_resize": true, "feature_extractor_type": "CLIPFeatureExtractor", "image_mean": [ 0.48145466, 0.4578275, 0.40821073 ], "image_processor_type": "CLIPFeatureExtractor", "image_std": [ 0.26862954, 0.26130258, 0.27577711 ], "resample": 3, "rescale_factor": 0.00392156862745098, "size": { "shortest_edge": 224 }}123456789101112131415161718192021222324252627282930313233{ "_class_name": "StableDiffusionPipeline", "_diffusers_version": "0.11.1", "feature_extractor": [ "transformers", "CLIPFeatureExtractor" ], "requires_safety_checker": false, "safety_checker": [ null, null ], "scheduler": [ "diffusers", "PNDMScheduler" ], "text_encoder": [ "transformers", "CLIPTextModel" ], "tokenizer": [ "transformers", "CLIPTokenizer" ], "unet": [ "diffusers", "UNet2DConditionModel" ], "vae": [ "diffusers", "AutoencoderKL" ]}1234567891011121314{ "_class_name": "PNDMScheduler", "_diffusers_version": "0.11.1", "beta_end": 0.012, "beta_schedule": "scaled_linear", "beta_start": 0.00085, "clip_sample": false, "num_train_timesteps": 1000, "prediction_type": "epsilon", "set_alpha_to_one": false, "skip_prk_steps": true, "steps_offset": 1, "trained_betas": null}12345678910111213141516171819202122232425{ "_name_or_path": "stabilityai/stable-diffusion-2-1-base", "architectures": [ "CLIPTextModel" ], "attention_dropout": 0.0, "bos_token_id": 0, "dropout": 0.0, "eos_token_id": 2, "hidden_act": "gelu", "hidden_size": 1024, "initializer_factor": 1.0, "initializer_range": 0.02, "intermediate_size": 4096, "layer_norm_eps": 1e-05, "max_position_embeddings": 77, "model_type": "clip_text_model", "num_attention_heads": 16, "num_hidden_layers": 23, "pad_token_id": 1, "projection_dim": 512, "torch_dtype": "float16", "transformers_version": "4.26.0.dev0", "vocab_size": 49408}123version https://git-lfs.github.com/spec/v1oid sha256:071deaf19c8ba0cf7649e6f94b12cd8da2180b7cf5814f6bf7e4e88ce7e7d07dsize 680901463123456789101112131415161718192021222324{ "bos_token": { "content": "<|startoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "eos_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "pad_token": "!", "unk_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}12345678910111213141516171819202122232425262728293031323334{ "add_prefix_space": false, "bos_token": { "__type": "AddedToken", "content": "<|startoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "do_lower_case": true, "eos_token": { "__type": "AddedToken", "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "errors": "replace", "model_max_length": 77, "name_or_path": "/tmp/xdg_cache/huggingface/diffusers/models--stabilityai--stable-diffusion-2-1-base/snapshots/88bb1a46821197d1ac0cb54d1d09fb6e70b171bc/tokenizer", "pad_token": "<|endoftext|>", "special_tokens_map_file": "./special_tokens_map.json", "tokenizer_class": "CLIPTokenizer", "unk_token": { "__type": "AddedToken", "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950{ "_class_name": "UNet2DConditionModel", "_diffusers_version": "0.11.1", "_name_or_path": "stabilityai/stable-diffusion-2-1-base", "act_fn": "silu", "attention_head_dim": [ 5, 10, 20, 20 ], "block_out_channels": [ 320, 640, 1280, 1280 ], "center_input_sample": false, "class_embed_type": null, "cross_attention_dim": 1024, "down_block_types": [ "CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "DownBlock2D" ], "downsample_padding": 1, "dual_cross_attention": false, "flip_sin_to_cos": true, "freq_shift": 0, "in_channels": 4, "layers_per_block": 2, "mid_block_scale_factor": 1, "mid_block_type": "UNetMidBlock2DCrossAttn", "norm_eps": 1e-05, "norm_num_groups": 32, "num_class_embeds": null, "only_cross_attention": false, "out_channels": 4, "resnet_time_scale_shift": "default", "sample_size": 64, "up_block_types": [ "UpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D" ], "upcast_attention": false, "use_linear_projection": true}123version https://git-lfs.github.com/spec/v1oid sha256:4a7e2fb975dd696492e720bc8d157cb173a89a01c10b2011312fda6a26f5f7basize 1732101605123456789101112131415161718192021222324252627282930{ "_class_name": "AutoencoderKL", "_diffusers_version": "0.11.1", "_name_or_path": "/tmp/xdg_cache/huggingface/diffusers/models--stabilityai--stable-diffusion-2-1-base/snapshots/88bb1a46821197d1ac0cb54d1d09fb6e70b171bc/vae", "act_fn": "silu", "block_out_channels": [ 128, 256, 512, 512 ], "down_block_types": [ "DownEncoderBlock2D", "DownEncoderBlock2D", "DownEncoderBlock2D", "DownEncoderBlock2D" ], "in_channels": 3, "latent_channels": 4, "layers_per_block": 2, "norm_num_groups": 32, "out_channels": 3, "sample_size": 768, "up_block_types": [ "UpDecoderBlock2D", "UpDecoderBlock2D", "UpDecoderBlock2D", "UpDecoderBlock2D" ]}123version https://git-lfs.github.com/spec/v1oid sha256:3b0f1843b01fbf820827e257eec40db099cde863f07314ae6ab641298e11fc98size 167399505args.jsonAdded+48
feature_extractor/preprocessor_config.jsonAdded+28
model_index.jsonAdded+33
scheduler/scheduler_config.jsonAdded+14
text_encoder/config.jsonAdded+25
text_encoder/pytorch_model.binAdded+3
tokenizer/merges.txtAdded
tokenizer/special_tokens_map.jsonAdded+24
tokenizer/tokenizer_config.jsonAdded+34
tokenizer/vocab.jsonAdded
unet/config.jsonAdded+50
unet/diffusion_pytorch_model.binAdded+3
vae/config.jsonAdded+30
vae/diffusion_pytorch_model.binAdded+3