Text-to-Image
Diffusers
English
jeveration
image-to-image
depth-estimation
image-segmentation
modular-diffusers
Run this model with HF Jobs
Run OzzyGT/jeveration_custom_blocks 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/OzzyGT/jeveration_custom_blocks. 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/OzzyGT/jeveration_custom_blocks 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 OzzyGT/jeveration_custom_blocks with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use OzzyGT/jeveration_custom_blocks with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("OzzyGT/jeveration_custom_blocks", 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 components.py from OzzyGT/jeveration_custom_blocks: direct link, hf CLI and curl.
- Browser
- Download file 1.98 kB
-
https://huggingface.co/OzzyGT/jeveration_custom_blocks/resolve/main/components.py
- Command line
-
hf download hf://OzzyGT/jeveration_custom_blocks/components.py
-
curl -L -o components.py https://huggingface.co/OzzyGT/jeveration_custom_blocks/resolve/main/components.py
1.98 kB
| # Copyright 2026 The HuggingFace Team. All rights reserved. | |
| # | |
| # Licensed under the Apache License, Version 2.0. See the LICENSE file in this repository. | |
| from transformers import AutoTokenizer, CLIPTextModel, CLIPTokenizer | |
| from diffusers.modular_pipelines.modular_pipeline_utils import ComponentSpec | |
| from .image_decoder_jeveration import JeverationImageDecoder | |
| from .transformer_jeveration import JeverationTransformer | |
| # The converted weights. The model classes come from this repo, so the weights repo holds no code. Load from elsewhere | |
| # with `pipe.load_components(pretrained_model_name_or_path=...)`. | |
| JEVERATION_WEIGHTS_REPO = "OzzyGT/jeveration_diffusers" | |
| def transformer_spec() -> ComponentSpec: | |
| return ComponentSpec( | |
| "transformer", | |
| JeverationTransformer, | |
| pretrained_model_name_or_path=JEVERATION_WEIGHTS_REPO, | |
| subfolder="transformer", | |
| ) | |
| def image_decoder_spec() -> ComponentSpec: | |
| return ComponentSpec( | |
| "image_decoder", | |
| JeverationImageDecoder, | |
| pretrained_model_name_or_path=JEVERATION_WEIGHTS_REPO, | |
| subfolder="image_decoder", | |
| ) | |
| def source_image_decoder_spec() -> ComponentSpec: | |
| return ComponentSpec( | |
| "source_image_decoder", | |
| JeverationImageDecoder, | |
| pretrained_model_name_or_path=JEVERATION_WEIGHTS_REPO, | |
| subfolder="source_image_decoder", | |
| ) | |
| def text_encoder_spec() -> ComponentSpec: | |
| return ComponentSpec( | |
| "text_encoder", CLIPTextModel, pretrained_model_name_or_path=JEVERATION_WEIGHTS_REPO, subfolder="text_encoder" | |
| ) | |
| def tokenizer_spec() -> ComponentSpec: | |
| return ComponentSpec( | |
| "tokenizer", AutoTokenizer, pretrained_model_name_or_path=JEVERATION_WEIGHTS_REPO, subfolder="tokenizer" | |
| ) | |
| def clip_tokenizer_spec() -> ComponentSpec: | |
| return ComponentSpec( | |
| "clip_tokenizer", | |
| CLIPTokenizer, | |
| pretrained_model_name_or_path=JEVERATION_WEIGHTS_REPO, | |
| subfolder="clip_tokenizer", | |
| ) | |