support liger kernel

Former-commit-id: 0f4e54abf6c5feb2329855a4047597ad5147720a
This commit is contained in:
hiyouga
2024-08-27 11:20:14 +08:00
parent 47877acc2a
commit 206a8364d4
8 changed files with 69 additions and 7 deletions

View File

@@ -117,6 +117,10 @@ class ModelArguments:
default=False,
metadata={"help": "Whether or not to use unsloth's optimization for the LoRA training."},
)
use_liger_kernel: bool = field(
default=False,
metadata={"help": "Whether or not to enable liger kernel for faster training."},
)
visual_inputs: bool = field(
default=False,
metadata={"help": "Whethor or not to use multimodal LLM that accepts visual inputs."},