(quant_method: Literal['gptq', 'awq'] = 'awq')
| 15 | |
| 16 | |
| 17 | def test_vlm_quant(quant_method: Literal['gptq', 'awq'] = 'awq'): |
| 18 | from swift import ExportArguments, export_main |
| 19 | export_main( |
| 20 | ExportArguments( |
| 21 | model='Qwen/Qwen2-VL-7B-Instruct', |
| 22 | quant_bits=4, |
| 23 | dataset=['modelscope/coco_2014_caption:validation#1000'], |
| 24 | quant_method=quant_method)) |
| 25 | |
| 26 | |
| 27 | def test_audio_quant(quant_method: Literal['gptq', 'awq'] = 'awq'): |
nothing calls this directly
no test coverage detected