support activation offloading via unsloth gc

Former-commit-id: fb72a3adb0
This commit is contained in:
hiyouga
2024-09-08 01:22:19 +08:00
parent 7ccb86b215
commit 0daee7cb39
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."},