support activation offloading via unsloth gc

This commit is contained in:
hiyouga
2024-09-08 01:22:19 +08:00
parent 54c6905937
commit fb72a3adb0
3 changed files with 58 additions and 7 deletions

View File

@@ -215,6 +215,10 @@ class ModelArguments(QuantizationArguments, ProcessorArguments, ExportArguments,
default=False,
metadata={"help": "Whether or not to use unsloth's optimization for the LoRA training."},
)
use_unsloth_gc: bool = field(
default=False,
metadata={"help": "Whether or not to use unsloth's gradient checkpointing."},
)
enable_liger_kernel: bool = field(
default=False,
metadata={"help": "Whether or not to enable liger kernel for faster training."},