Run this model with HF Jobs
Run playgroundai/playground-v2-256px-base 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/playgroundai/playground-v2-256px-base. 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/playgroundai/playground-v2-256px-base 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 playgroundai/playground-v2-256px-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use playgroundai/playground-v2-256px-base with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("playgroundai/playground-v2-256px-base", 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 model_index.json from playgroundai/playground-v2-256px-base: direct link, hf CLI and curl.
- Browser
- Download file 680 Bytes
-
https://huggingface.co/playgroundai/playground-v2-256px-base/resolve/main/model_index.json
- Command line
-
hf download hf://playgroundai/playground-v2-256px-base/model_index.json
-
curl -L -o model_index.json https://huggingface.co/playgroundai/playground-v2-256px-base/resolve/main/model_index.json
680 Bytes
| { | |
| "_class_name": "StableDiffusionXLPipeline", | |
| "_diffusers_version": "0.24.0", | |
| "feature_extractor": [ | |
| null, | |
| null | |
| ], | |
| "force_zeros_for_empty_prompt": true, | |
| "image_encoder": [ | |
| null, | |
| null | |
| ], | |
| "scheduler": [ | |
| "diffusers", | |
| "EulerAncestralDiscreteScheduler" | |
| ], | |
| "text_encoder": [ | |
| "transformers", | |
| "CLIPTextModel" | |
| ], | |
| "text_encoder_2": [ | |
| "transformers", | |
| "CLIPTextModelWithProjection" | |
| ], | |
| "tokenizer": [ | |
| "transformers", | |
| "CLIPTokenizer" | |
| ], | |
| "tokenizer_2": [ | |
| "transformers", | |
| "CLIPTokenizer" | |
| ], | |
| "unet": [ | |
| "diffusers", | |
| "UNet2DConditionModel" | |
| ], | |
| "vae": [ | |
| "diffusers", | |
| "AutoencoderKL" | |
| ] | |
| } | |