rootlocalghost commited on
Commit
60b0a02
·
verified ·
1 Parent(s): 3aad67b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -10
app.py CHANGED
@@ -136,11 +136,11 @@ def update_target_repo(username, source, precision):
136
 
137
  # Build the Gradio UI
138
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
139
- gr.Markdown("# 🚀 Auto-Purging Model Quantizer & Uploader")
140
  gr.Markdown(
141
- "Convert sharded Diffusers models (like FLUX, LongCat, Z-Image) to lower precisions (FP8, FP16, BF16).\n\n"
142
- "**Auto-Delete Feature:** This tool is strictly designed to handle sharded folders. It will **automatically ignore and delete** any massive "
143
- "`.safetensors` files located at the root of the repository to ensure your 16GB RAM limit is never breached and your target repository stays clean."
144
  )
145
 
146
  with gr.Row():
@@ -154,23 +154,22 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
154
  label="Your Hugging Face Username",
155
  placeholder="e.g., rootlocalghost"
156
  )
 
157
  source_repo = gr.Dropdown(
158
  choices=[
159
  "black-forest-labs/FLUX.2-klein-9B",
160
- "black-forest-labs/FLUX.2-klein-4B",
161
- "Tongyi-MAI/Z-Image-Turbo",
162
- "meituan-longcat/LongCat-Image-Edit-Turbo"
163
  ],
164
  value="black-forest-labs/FLUX.2-klein-9B",
165
  label="Source Repository",
166
- allow_custom_value=True
167
  )
168
 
169
  target_components = gr.CheckboxGroup(
170
  choices=["text_encoder", "transformer", "vae"],
171
  value=["text_encoder", "transformer"],
172
- label="Components to Quantize (Folders)",
173
- info="Select which folders should be cast to the new precision. Everything else is copied as-is."
174
  )
175
 
176
  precision = gr.Dropdown(
 
136
 
137
  # Build the Gradio UI
138
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
139
+ gr.Markdown("# 🚀 FLUX.2-klein Dedicated Quantizer")
140
  gr.Markdown(
141
+ "Convert sharded **FLUX.2-klein** models (4B and 9B) to lower precisions (FP8, FP16, BF16).\n\n"
142
+ "**Auto-Delete OOM Protection:** This tool is strictly designed to handle the sharded `transformer` and `text_encoder` folders. "
143
+ "It will **automatically ignore and delete** the massive 16GB/7GB `.safetensors` files located at the root of the repository to ensure your 16GB RAM limit is never breached."
144
  )
145
 
146
  with gr.Row():
 
154
  label="Your Hugging Face Username",
155
  placeholder="e.g., rootlocalghost"
156
  )
157
+ # Locked down to only FLUX.2-klein models
158
  source_repo = gr.Dropdown(
159
  choices=[
160
  "black-forest-labs/FLUX.2-klein-9B",
161
+ "black-forest-labs/FLUX.2-klein-4B"
 
 
162
  ],
163
  value="black-forest-labs/FLUX.2-klein-9B",
164
  label="Source Repository",
165
+ allow_custom_value=False
166
  )
167
 
168
  target_components = gr.CheckboxGroup(
169
  choices=["text_encoder", "transformer", "vae"],
170
  value=["text_encoder", "transformer"],
171
+ label="Components to Quantize",
172
+ info="Select which folders should be cast to the new precision. Unselected folders will be copied as-is."
173
  )
174
 
175
  precision = gr.Dropdown(