mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-15 11:20:35 +08:00
support activation offloading via unsloth gc
This commit is contained in:
@@ -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."},
|
||||
|
||||
Reference in New Issue
Block a user