Nekochu commited on
Commit
cd0310f
·
1 Parent(s): c9b2c0d

use 4-step distill Q5_0 GGUF from WeReCooking repo

Browse files
Files changed (3) hide show
  1. .gitignore +1 -0
  2. Dockerfile +3 -3
  3. app.py +3 -3
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ models/
Dockerfile CHANGED
@@ -39,9 +39,9 @@ RUN chmod +x /app/sd-cli
39
 
40
  RUN mkdir -p /app/models
41
 
42
- # Z-Anime distill 8-step Q5_0 GGUF (~4.51GB)
43
- RUN curl -fL --retry 3 --retry-delay 5 -o /app/models/z-anime-8steps-q5_0.gguf \
44
- "https://huggingface.co/DaNS2025/Z-Anime_8-steps.GGUF/resolve/main/Z-Anime-8steps.q5_0.gguf"
45
 
46
  # Qwen3-4B text encoder Q8_0 GGUF (~4.28GB)
47
  RUN curl -fL --retry 3 --retry-delay 5 -o /app/models/qwen3_4b_q8_0.gguf \
 
39
 
40
  RUN mkdir -p /app/models
41
 
42
+ # Z-Anime distill 4-step Q5_0 GGUF (~4.23GB) - converted by WeReCooking
43
+ RUN curl -fL --retry 3 --retry-delay 5 -o /app/models/z-anime-4step-q5_0.gguf \
44
+ "https://huggingface.co/WeReCooking/Z-Anime-4step-GGUF/resolve/main/z-anime-distill-4step-q5_0.gguf"
45
 
46
  # Qwen3-4B text encoder Q8_0 GGUF (~4.28GB)
47
  RUN curl -fL --retry 3 --retry-delay 5 -o /app/models/qwen3_4b_q8_0.gguf \
app.py CHANGED
@@ -7,12 +7,12 @@ import gradio as gr
7
  # ---------------------------------------------------------------------------
8
  # Model paths (downloaded at build time)
9
  # ---------------------------------------------------------------------------
10
- DIFFUSION = "/app/models/z-anime-8steps-q5_0.gguf"
11
  LLM = "/app/models/qwen3_4b_q8_0.gguf"
12
  VAE = "/app/models/ae.safetensors"
13
 
14
  RESOLUTIONS = ["512x512", "768x512", "512x768"]
15
- STEPS = 8
16
  CFG = 1.0
17
  TIMEOUT = 10800
18
 
@@ -122,7 +122,7 @@ with gr.Blocks(title="Z-Anime (CPU)") as demo:
122
  res_input = gr.Dropdown(choices=RESOLUTIONS, value="512x512",
123
  label="Resolution")
124
  seed_input = gr.Number(value=-1, label="Seed (-1=random)", precision=0)
125
- gen_btn = gr.Button("Generate (8 steps, CFG 1)", variant="primary", size="lg")
126
  with gr.Column():
127
  output_img = gr.Image(type="pil", label="Output")
128
  status_box = gr.Textbox(label="Status", interactive=False)
 
7
  # ---------------------------------------------------------------------------
8
  # Model paths (downloaded at build time)
9
  # ---------------------------------------------------------------------------
10
+ DIFFUSION = "/app/models/z-anime-4step-q5_0.gguf"
11
  LLM = "/app/models/qwen3_4b_q8_0.gguf"
12
  VAE = "/app/models/ae.safetensors"
13
 
14
  RESOLUTIONS = ["512x512", "768x512", "512x768"]
15
+ STEPS = 4
16
  CFG = 1.0
17
  TIMEOUT = 10800
18
 
 
122
  res_input = gr.Dropdown(choices=RESOLUTIONS, value="512x512",
123
  label="Resolution")
124
  seed_input = gr.Number(value=-1, label="Seed (-1=random)", precision=0)
125
+ gen_btn = gr.Button("Generate (4 steps, CFG 1)", variant="primary", size="lg")
126
  with gr.Column():
127
  output_img = gr.Image(type="pil", label="Output")
128
  status_box = gr.Textbox(label="Status", interactive=False)