Skip to content

Commit fc4229a

Browse files
hlkysayakpaulgithub-actions[bot]
authored
Add remote_decode to remote_utils (#10898)
* Add `remote_decode` to `remote_utils` * test dependency * test dependency * dependency * dependency * dependency * docstrings * changes * make style * apply * revert, add new options * Apply style fixes * deprecate base64, headers not needed * address comments * add license header * init test_remote_decode * more * more test * more test * skeleton for xl, flux * more test * flux test * flux packed * no scaling * -save * hunyuanvideo test * Apply style fixes * init docs * Update src/diffusers/utils/remote_utils.py Co-authored-by: Sayak Paul <spsayakpaul@gmail.com> * comments * Apply style fixes * comments * hybrid_inference/vae_decode * fix * tip? * tip * api reference autodoc * install tip --------- Co-authored-by: sayakpaul <spsayakpaul@gmail.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 694f965 commit fc4229a

File tree

8 files changed

+1205
-0
lines changed

8 files changed

+1205
-0
lines changed

docs/source/en/_toctree.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@
7676
- local: advanced_inference/outpaint
7777
title: Outpainting
7878
title: Advanced inference
79+
- sections:
80+
- local: hybrid_inference/overview
81+
title: Overview
82+
- local: hybrid_inference/vae_decode
83+
title: VAE Decode
84+
- local: hybrid_inference/api_reference
85+
title: API Reference
86+
title: Hybrid Inference
7987
- sections:
8088
- local: using-diffusers/cogvideox
8189
title: CogVideoX
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Hybrid Inference API Reference
2+
3+
## Remote Decode
4+
5+
[[autodoc]] utils.remote_utils.remote_decode
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<!--Copyright 2024 The HuggingFace Team. All rights reserved.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
4+
the License. You may obtain a copy of the License at
5+
6+
http://www.apache.org/licenses/LICENSE-2.0
7+
8+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
9+
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
10+
specific language governing permissions and limitations under the License.
11+
-->
12+
13+
# Hybrid Inference
14+
15+
**Empowering local AI builders with Hybrid Inference**
16+
17+
18+
> [!TIP]
19+
> Hybrid Inference is an [experimental feature](https://huggingface.co/blog/remote_vae).
20+
> Feedback can be provided [here](https://github.com/huggingface/diffusers/issues/new?template=remote-vae-pilot-feedback.yml).
21+
22+
23+
24+
## Why use Hybrid Inference?
25+
26+
Hybrid Inference offers a fast and simple way to offload local generation requirements.
27+
28+
- 🚀 **Reduced Requirements:** Access powerful models without expensive hardware.
29+
- 💎 **Without Compromise:** Achieve the highest quality without sacrificing performance.
30+
- 💰 **Cost Effective:** It's free! 🤑
31+
- 🎯 **Diverse Use Cases:** Fully compatible with Diffusers 🧨 and the wider community.
32+
- 🔧 **Developer-Friendly:** Simple requests, fast responses.
33+
34+
---
35+
36+
## Available Models
37+
38+
* **VAE Decode 🖼️:** Quickly decode latent representations into high-quality images without compromising performance or workflow speed.
39+
* **VAE Encode 🔢 (coming soon):** Efficiently encode images into latent representations for generation and training.
40+
* **Text Encoders 📃 (coming soon):** Compute text embeddings for your prompts quickly and accurately, ensuring a smooth and high-quality workflow.
41+
42+
---
43+
44+
## Integrations
45+
46+
* **[SD.Next](https://github.com/vladmandic/sdnext):** All-in-one UI with direct supports Hybrid Inference.
47+
* **[ComfyUI-HFRemoteVae](https://github.com/kijai/ComfyUI-HFRemoteVae):** ComfyUI node for Hybrid Inference.
48+
49+
## Contents
50+
51+
The documentation is organized into two sections:
52+
53+
* **VAE Decode** Learn the basics of how to use VAE Decode with Hybrid Inference.
54+
* **API Reference** Dive into task-specific settings and parameters.

0 commit comments

Comments
 (0)