(quant_method: Literal['gptq', 'awq'] = 'awq')
| 5 | |
| 6 | |
| 7 | def test_llm_quant(quant_method: Literal['gptq', 'awq'] = 'awq'): |
| 8 | from swift import ExportArguments, export_main |
| 9 | export_main( |
| 10 | ExportArguments( |
| 11 | model='Qwen/Qwen2-7B-Instruct', |
| 12 | quant_bits=4, |
| 13 | dataset=['AI-ModelScope/alpaca-gpt4-data-zh#1000', 'AI-ModelScope/alpaca-gpt4-data-en#1000'], |
| 14 | quant_method=quant_method)) |
| 15 | |
| 16 | |
| 17 | def test_vlm_quant(quant_method: Literal['gptq', 'awq'] = 'awq'): |
nothing calls this directly
no test coverage detected