support liger kernel

This commit is contained in:
hiyouga
2024-08-27 11:20:14 +08:00
parent 36039b0fe0
commit 72bc8f0111
8 changed files with 69 additions and 7 deletions

View File

@@ -115,6 +115,7 @@ class Runner:
rope_scaling=get("top.rope_scaling") if get("top.rope_scaling") in ["linear", "dynamic"] else None,
flash_attn="fa2" if get("top.booster") == "flashattn2" else "auto",
use_unsloth=(get("top.booster") == "unsloth"),
use_liger_kernel=(get("top.booster") == "liger_kernel"),
visual_inputs=get("top.visual_inputs"),
dataset_dir=get("train.dataset_dir"),
dataset=",".join(get("train.dataset")),