Run this model with HF Jobs
Run bghira/terminus-velocity-v2-reddit 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/bghira/terminus-velocity-v2-reddit. 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/bghira/terminus-velocity-v2-reddit 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 bghira/terminus-velocity-v2-reddit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use bghira/terminus-velocity-v2-reddit 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-3-medium-diffusers", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("bghira/terminus-velocity-v2-reddit") 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 README.md from bghira/terminus-velocity-v2-reddit: direct link, hf CLI and curl.
- Browser
- Download file 2.27 kB
-
https://huggingface.co/bghira/terminus-velocity-v2-reddit/resolve/main/README.md
- Command line
-
hf download hf://bghira/terminus-velocity-v2-reddit/README.md
-
curl -L -o README.md https://huggingface.co/bghira/terminus-velocity-v2-reddit/resolve/main/README.md
2.27 kB
metadata
license: creativeml-openrail-m
base_model: stabilityai/stable-diffusion-3-medium-diffusers
tags:
- stable-diffusion
- stable-diffusion-diffusers
- text-to-image
- diffusers
- lora
- template:sd-lora
inference: true
terminus-velocity-v2-reddit
This is a LoRA derived from stabilityai/stable-diffusion-3-medium-diffusers.
The main validation prompt used during training was:
a naked man is surfing on top of a horse
Validation settings
- CFG:
5.0 - CFG Rescale:
0.2 - Steps:
50 - Sampler:
euler - Seed:
2 - Resolution:
1280x768
Note: The validation settings are not necessarily the same as the training settings.
The text encoder was not trained. You may reuse the base model text encoder for inference.
Training settings
- Training epochs: 0
- Training steps: 57
- Learning rate: 1e-06
- Effective batch size: 1
- Micro-batch size: 1
- Gradient accumulation steps: 1
- Number of GPUs: 1
- Prediction type: v_prediction
- Rescaled betas zero SNR: True
- Optimizer: AdamW, stochastic bf16
- Precision: Pure BF16
- Xformers: Not used
- LoRA Rank: 16
- LoRA Alpha: 16
- LoRA Dropout: 0.1
- LoRA initialisation style: default
Datasets
celebrities
- Repeats: 0
- Total number of images: 1253
- Total number of aspect buckets: 3
- Resolution: 1.0 megapixels
- Cropped: True
- Crop style: random
- Crop aspect: random
Inference
None
model_id = "terminus-velocity-v2-reddit"
prompt = "a naked man is surfing on top of a horse"
negative_prompt = "malformed, disgusting, overexposed, washed-out"
pipeline = DiffusionPipeline.from_pretrained(model_id)
pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
image = pipeline(
prompt=prompt,
negative_prompt='blurry, cropped, ugly',
num_inference_steps=50,
generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
width=1152,
height=768,
guidance_scale=5.0,
guidance_rescale=0.2,
).images[0]
image.save(f"output.png", format="PNG")