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

Function test_audio_quant

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

Source from the content-addressed store, hash-verified

25
26
27def test_audio_quant(quant_method: Literal['gptq', 'awq'] = 'awq'):
28 from swift import ExportArguments, export_main
29 export_main(
30 ExportArguments(
31 model='Qwen/Qwen2-Audio-7B-Instruct',
32 quant_bits=4,
33 dataset=['speech_asr/speech_asr_aishell1_trainsets:validation#1000'],
34 quant_method=quant_method))
35
36
37def test_vlm_bnb_quant():

Callers

nothing calls this directly

Calls 2

export_mainFunction · 0.90
ExportArgumentsClass · 0.90

Tested by

no test coverage detected