MekkCyber commited on
Commit
b513799
·
1 Parent(s): 57cdcf8
Files changed (1) hide show
  1. app.py +17 -16
app.py CHANGED
@@ -157,22 +157,23 @@ with gr.Blocks(theme=gr.themes.Ocean(), css=css) as app:
157
  placeholder="Search for model id on Huggingface",
158
  search_type="model",
159
  )
160
- with gr.Column():
161
- quantization_type = gr.Dropdown(
162
- label="Quantization Type",
163
- choices=["int4_weight_only", "int8_weight_only", "int8_dynamic_activation_int8_weight"],
164
- value="int8_weight_only"
165
- )
166
- group_size = gr.Textbox(
167
- label="Group Size (only for int4_weight_only)",
168
- value=128,
169
- interactive=True
170
- )
171
- quantized_model_name = gr.Textbox(
172
- label="Model Name (optional : to override default)",
173
- value="",
174
- interactive=True
175
- )
 
176
  # device = gr.Dropdown(
177
  # label="Device (int4 only works with cuda)",
178
  # choices=["cuda", "cpu"],
 
157
  placeholder="Search for model id on Huggingface",
158
  search_type="model",
159
  )
160
+ with gr.Row():
161
+ with gr.Column():
162
+ quantization_type = gr.Dropdown(
163
+ label="Quantization Type",
164
+ choices=["int4_weight_only", "int8_weight_only", "int8_dynamic_activation_int8_weight"],
165
+ value="int8_weight_only"
166
+ )
167
+ group_size = gr.Textbox(
168
+ label="Group Size (only for int4_weight_only)",
169
+ value=128,
170
+ interactive=True
171
+ )
172
+ quantized_model_name = gr.Textbox(
173
+ label="Model Name (optional : to override default)",
174
+ value="",
175
+ interactive=True
176
+ )
177
  # device = gr.Dropdown(
178
  # label="Device (int4 only works with cuda)",
179
  # choices=["cuda", "cpu"],