ajsbsd commited on
Commit
d599832
·
verified ·
1 Parent(s): c03bacb

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +30 -8
README.md CHANGED
@@ -1,15 +1,37 @@
1
  ---
2
- title: Krea 2 Realism LoRA
3
- emoji: 💻
4
- colorFrom: gray
5
- colorTo: green
6
  sdk: gradio
7
- sdk_version: 6.19.0
8
- python_version: '3.12'
9
  app_file: app.py
10
  pinned: false
11
  license: apache-2.0
12
- short_description: Original Model https://huggingface.co/gokaygokay/Krea-2-Real
13
  ---
14
 
15
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: Krea 2 Turbo Realism
3
+ emoji: 📚
4
+ colorFrom: yellow
5
+ colorTo: pink
6
  sdk: gradio
7
+ sdk_version: 5.34.0
 
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
+ short_description: Krea 2 Turbo + Realism LoRA, running on ZeroGPU
12
  ---
13
 
14
+ # Krea 2 Turbo + Realism LoRA
15
+
16
+ Gradio demo for [`krea/Krea-2-Turbo`](https://huggingface.co/krea/Krea-2-Turbo) with the
17
+ [`gokaygokay/Krea-2-Realism-LoRA`](https://huggingface.co/gokaygokay/Krea-2-Realism-LoRA) adapter,
18
+ deployed to run on Hugging Face's free **ZeroGPU** hardware.
19
+
20
+ ## Files
21
+
22
+ - `app.py` — Gradio UI + inference function decorated with `@spaces.GPU`
23
+ - `requirements.txt` — dependencies (installs `diffusers` from `main` since Krea2Pipeline is new)
24
+
25
+ ## Deploying
26
+
27
+ 1. Create a new Space at huggingface.co/new-space
28
+ 2. SDK: **Gradio**, Hardware: any (ZeroGPU is granted automatically via the `spaces` import + decorator, no need to select a paid GPU tier)
29
+ 3. Under Space settings, enable **ZeroGPU** if prompted (it's the default free tier for Gradio Spaces using the `spaces` package)
30
+ 4. Upload `app.py`, `requirements.txt`, and this `README.md`
31
+ 5. The Space will build and serve automatically
32
+
33
+ ## Notes
34
+
35
+ - Model loading (`from_pretrained`, `load_lora_weights`) happens at module import time, on CPU. The `.to("cuda")` call and every actual inference call happen inside the `@spaces.GPU`-decorated `infer()` function — this is required for ZeroGPU, which only attaches a GPU for the duration of that call.
36
+ - `duration=60` in `@spaces.GPU(duration=60)` caps each generation at 60 GPU-seconds; raise it if you increase steps/resolution.
37
+ - Default settings mirror the reference script: `num_inference_steps=8`, `guidance_scale=0.0` (Turbo model, so no CFG needed).