PTQ-Level Efficiency, QAT-Level Accuracy | 训练后量化的效率,量化感知训练的精度
fix examples model_dtype (#523)
WeiweiZhang1530bde99492b
diff --git a/auto_round/script/llm.py b/auto_round/script/llm.pyindex e0a5411ac..ac0633289 100644--- a/auto_round/script/llm.py+++ b/auto_round/script/llm.py@@ -377,7 +377,8 @@ def tune(args):trust_remote_code=not args.disable_trust_remote_code,device=device_str,low_cpu_mem_mode=args.low_cpu_mem_mode,- low_cpu_mem_tmp_dir=args.low_cpu_mem_tmp_dir)+ low_cpu_mem_tmp_dir=args.low_cpu_mem_tmp_dir,+ model_dtype=args.model_dtype)from auto_round import AutoRound, AutoRoundAdam@@ -653,3 +654,4 @@ def eval_task_by_task(for key in res_keys:res_all[key].update(res[key])print(make_table(res_all))+diff --git a/auto_round/script/mllm.py b/auto_round/script/mllm.pyindex 6d06aca1c..7fc42d1ae 100644--- a/auto_round/script/mllm.py+++ b/auto_round/script/mllm.py@@ -327,7 +327,8 @@ def tune(args):model_name,torch_dtype=torch_dtype,use_auto_mapping=use_auto_mapping,- trust_remote_code=not args.disable_trust_remote_code)+ trust_remote_code=not args.disable_trust_remote_code,+ model_dtype=args.model_dtype)from auto_round import AutoRoundMLLM@@ -564,3 +565,4 @@ def lmms_eval(args):apply_chat_template=False,)return results+