You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Launch the Hugging Face ZeroGPU-compatible Gradio UI
135
+
python app.py
136
+
```
137
+
141
138
### 🌌 Flux Support
142
139
143
140
LightDiffusion-Next now features first-class support for **Flux2 Klein**. To get started, you need to download the required model components (Diffusion Model, Text Encoder, and VAE).
@@ -148,11 +145,23 @@ python download_flux.py
148
145
```
149
146
This will download approximately 16GB of weights into the `include/` directory.
150
147
148
+
### 🤗 ZeroGPU / Gradio Space
149
+
150
+
This repository now includes a Gradio `app.py` entrypoint for Hugging Face
151
+
**ZeroGPU**. ZeroGPU is only supported for Gradio SDK Spaces, and the
152
+
GPU-bound generation function is wrapped with `@spaces.GPU`.
153
+
154
+
Recommended defaults for ZeroGPU:
155
+
- keep `Keep Models Loaded` disabled
156
+
- use 512x512 or 768x768 resolutions
157
+
- generate 1 image at a time
158
+
- prefer 10-25 steps with `ays`
159
+
151
160
### 🐳 Docker Setup
152
161
153
162
Run LightDiffusion-Next in a containerized environment with GPU acceleration.
154
-
This repository is configured for **Hugging Face Docker Spaces** and serves the
155
-
built React frontend from the FastAPI backend on port `7860`.
163
+
The Docker path remains available for local or dedicated GPU deployments and
164
+
serves the built React frontend from the FastAPI backend on port `7860`.
156
165
157
166
> [!IMPORTANT]
158
167
> Confirm you have Docker Desktop configured with the NVIDIA Container Toolkit and at least 12-16GB of memory. Builds expect an NVIDIA GPU with compute capability 8.0 or higher and CUDA 12.0+ support for SageAttention/SpargeAttn.
0 commit comments