MCPcopy
hub / github.com/modelscope/ms-swift / test_vlm_quant

Function test_vlm_quant

tests/export/test_quant.py:17–24  ·  view source on GitHub ↗
(quant_method: Literal['gptq', 'awq'] = 'awq')

Source from the content-addressed store, hash-verified

15
16
17def 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
27def test_audio_quant(quant_method: Literal['gptq', 'awq'] = 'awq'):

Callers

nothing calls this directly

Calls 2

export_mainFunction · 0.90
ExportArgumentsClass · 0.90

Tested by

no test coverage detected