Spaces:
				
			
			
	
			
			
					
		Running
		
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
	
		MekkCyber
		
	commited on
		
		
					Commit 
							
							·
						
						b513799
	
1
								Parent(s):
							
							57cdcf8
								
fix
Browse files
    	
        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. | 
| 161 | 
            -
                             | 
| 162 | 
            -
                                 | 
| 163 | 
            -
             | 
| 164 | 
            -
             | 
| 165 | 
            -
             | 
| 166 | 
            -
             | 
| 167 | 
            -
                                 | 
| 168 | 
            -
             | 
| 169 | 
            -
             | 
| 170 | 
            -
             | 
| 171 | 
            -
             | 
| 172 | 
            -
                                 | 
| 173 | 
            -
             | 
| 174 | 
            -
             | 
| 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"],
         | 
