Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -576,11 +576,11 @@ with gr.Blocks() as demo:
|
|
| 576 |
t1_sub = gr.Textbox(label="Subfolder", value="transformer")
|
| 577 |
t1_lora = gr.Textbox(label="LoRA")
|
| 578 |
with gr.Row():
|
| 579 |
-
t1_scale = gr.Slider(label="Scale", value=1.0)
|
| 580 |
t1_prec = gr.Radio(["bf16", "fp16", "float32"], value="bf16", label="Precision")
|
| 581 |
-
t1_shard = gr.Slider(label="Shard Size (GB)", value=2.0, minimum=0.
|
| 582 |
t1_out = gr.Textbox(label="Output")
|
| 583 |
-
t1_struct = gr.Textbox(label="Structure Repo (Copies VAE/TextEnc)", value="Tongyi-MAI/Z-Image-Turbo")
|
| 584 |
t1_priv = gr.Checkbox(label="Private", value=True)
|
| 585 |
t1_btn = gr.Button("Merge")
|
| 586 |
t1_res = gr.Textbox(label="Result")
|
|
@@ -590,7 +590,7 @@ with gr.Blocks() as demo:
|
|
| 590 |
t2_token = gr.Textbox(label="Token", type="password")
|
| 591 |
t2_org = gr.Textbox(label="Original")
|
| 592 |
t2_tun = gr.Textbox(label="Tuned")
|
| 593 |
-
t2_rank = gr.Number(label="Rank", value=32)
|
| 594 |
t2_out = gr.Textbox(label="Output")
|
| 595 |
t2_btn = gr.Button("Extract")
|
| 596 |
t2_res = gr.Textbox(label="Result")
|
|
@@ -600,8 +600,8 @@ with gr.Blocks() as demo:
|
|
| 600 |
t3_token = gr.Textbox(label="Token", type="password")
|
| 601 |
t3_urls = gr.Textbox(label="URLs")
|
| 602 |
with gr.Row():
|
| 603 |
-
t3_beta = gr.Slider(label="Beta", value=0.
|
| 604 |
-
t3_sigma = gr.Slider(label="Sigma Rel (Overrides Beta)", value=0.0)
|
| 605 |
t3_out = gr.Textbox(label="Output")
|
| 606 |
t3_btn = gr.Button("Merge")
|
| 607 |
t3_res = gr.Textbox(label="Result")
|
|
@@ -611,7 +611,7 @@ with gr.Blocks() as demo:
|
|
| 611 |
t4_token = gr.Textbox(label="Token", type="password")
|
| 612 |
t4_in = gr.Textbox(label="LoRA")
|
| 613 |
with gr.Row():
|
| 614 |
-
t4_rank = gr.Number(label="Rank", value=8)
|
| 615 |
t4_method = gr.Dropdown(["None", "sv_ratio"], value="None", label="Dynamic Method")
|
| 616 |
t4_param = gr.Number(label="Dynamic Param", value=4.0)
|
| 617 |
t4_out = gr.Textbox(label="Output")
|
|
|
|
| 576 |
t1_sub = gr.Textbox(label="Subfolder", value="transformer")
|
| 577 |
t1_lora = gr.Textbox(label="LoRA")
|
| 578 |
with gr.Row():
|
| 579 |
+
t1_scale = gr.Slider(label="Scale", value=1.0, minimum=0, maximum=3.0, step=0.1)
|
| 580 |
t1_prec = gr.Radio(["bf16", "fp16", "float32"], value="bf16", label="Precision")
|
| 581 |
+
t1_shard = gr.Slider(label="Shard Size (GB)", value=2.0, minimum=0.1, maximum=10.0, step=0.1)
|
| 582 |
t1_out = gr.Textbox(label="Output")
|
| 583 |
+
t1_struct = gr.Textbox(label="Diffusers Structure Repo (Copies Base VAE/TextEnc/etc)", value="Tongyi-MAI/Z-Image-Turbo")
|
| 584 |
t1_priv = gr.Checkbox(label="Private", value=True)
|
| 585 |
t1_btn = gr.Button("Merge")
|
| 586 |
t1_res = gr.Textbox(label="Result")
|
|
|
|
| 590 |
t2_token = gr.Textbox(label="Token", type="password")
|
| 591 |
t2_org = gr.Textbox(label="Original")
|
| 592 |
t2_tun = gr.Textbox(label="Tuned")
|
| 593 |
+
t2_rank = gr.Number(label="Rank", value=32, minimum=1, maximum=1024, step=1)
|
| 594 |
t2_out = gr.Textbox(label="Output")
|
| 595 |
t2_btn = gr.Button("Extract")
|
| 596 |
t2_res = gr.Textbox(label="Result")
|
|
|
|
| 600 |
t3_token = gr.Textbox(label="Token", type="password")
|
| 601 |
t3_urls = gr.Textbox(label="URLs")
|
| 602 |
with gr.Row():
|
| 603 |
+
t3_beta = gr.Slider(label="Beta", value=0.95, minimum=0.01, maximum=1.00, step=0.01)
|
| 604 |
+
t3_sigma = gr.Slider(label="Sigma Rel (Overrides Beta)", value=0.02, minimum=0.01, maximum=1.00, step=0.01)
|
| 605 |
t3_out = gr.Textbox(label="Output")
|
| 606 |
t3_btn = gr.Button("Merge")
|
| 607 |
t3_res = gr.Textbox(label="Result")
|
|
|
|
| 611 |
t4_token = gr.Textbox(label="Token", type="password")
|
| 612 |
t4_in = gr.Textbox(label="LoRA")
|
| 613 |
with gr.Row():
|
| 614 |
+
t4_rank = gr.Number(label="Rank", value=8, minimum=1, maximum=256, step=1)
|
| 615 |
t4_method = gr.Dropdown(["None", "sv_ratio"], value="None", label="Dynamic Method")
|
| 616 |
t4_param = gr.Number(label="Dynamic Param", value=4.0)
|
| 617 |
t4_out = gr.Textbox(label="Output")
|