Text-to-Image
Diffusers
NeuronStableDiffusionXLPipeline
stable-diffusion
lora
template:sd-lora
Neuron
Inferentia
Run this model with HF Jobs
Run Shekswess/Canopus-Interior-Architecture-0.1-Neuron 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/Shekswess/Canopus-Interior-Architecture-0.1-Neuron. 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/Shekswess/Canopus-Interior-Architecture-0.1-Neuron 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 Shekswess/Canopus-Interior-Architecture-0.1-Neuron with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Shekswess/Canopus-Interior-Architecture-0.1-Neuron with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Shekswess/Canopus-Interior-Architecture-0.1-Neuron") prompt = "Interior room of the house with plants, a chair and candles, space to relax, soft lighting, pastel colors, style of ultrafine detail, high quality photo --ar 2:3 --v 5" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download text_encoder_2/config.json from Shekswess/Canopus-Interior-Architecture-0.1-Neuron: direct link, hf CLI and curl.
- Browser
- Download file 1.4 kB
-
https://huggingface.co/Shekswess/Canopus-Interior-Architecture-0.1-Neuron/resolve/main/text_encoder_2/config.json
- Command line
-
hf download hf://Shekswess/Canopus-Interior-Architecture-0.1-Neuron/text_encoder_2/config.json
-
curl -L -o config.json https://huggingface.co/Shekswess/Canopus-Interior-Architecture-0.1-Neuron/resolve/main/text_encoder_2/config.json
1.4 kB
| { | |
| "_name_or_path": "/home/ubuntu/.cache/huggingface/hub/models--stabilityai--stable-diffusion-xl-base-1.0/snapshots/462165984030d82259a11f4367a4eed129e94a7b/text_encoder_2", | |
| "architectures": [ | |
| "CLIPTextModelWithProjection" | |
| ], | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 0, | |
| "dropout": 0.0, | |
| "eos_token_id": 2, | |
| "hidden_act": "gelu", | |
| "hidden_size": 1280, | |
| "initializer_factor": 1.0, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 5120, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 77, | |
| "model_type": "clip_text_model", | |
| "neuron": { | |
| "auto_cast": "matmul", | |
| "auto_cast_type": "bf16", | |
| "compiler_type": "neuronx-cc", | |
| "compiler_version": "2.15.128.0+56dc5a86", | |
| "dynamic_batch_size": false, | |
| "inline_weights_to_neff": true, | |
| "input_names": [ | |
| "input_ids" | |
| ], | |
| "model_type": "clip-text-with-projection", | |
| "optlevel": "2", | |
| "output_attentions": false, | |
| "output_hidden_states": false, | |
| "output_names": [ | |
| "text_embeds", | |
| "last_hidden_state", | |
| "hidden_states" | |
| ], | |
| "static_batch_size": 1, | |
| "static_sequence_length": 77 | |
| }, | |
| "num_attention_heads": 20, | |
| "num_hidden_layers": 32, | |
| "output_hidden_states": true, | |
| "pad_token_id": 1, | |
| "projection_dim": 1280, | |
| "task": "feature-extraction", | |
| "torch_dtype": "float16", | |
| "torchscript": true, | |
| "transformers_version": "4.43.2", | |
| "vocab_size": 49408 | |
| } | |