[algo] add ASFT (#10174)

This commit is contained in:
Junyou Su
2026-02-12 13:12:14 +08:00
committed by GitHub
parent ab073f4c13
commit 675ce8cc7f
6 changed files with 228 additions and 2 deletions

View File

@@ -490,6 +490,14 @@ class FinetuningArguments(
default=False,
metadata={"help": "Whether to use the DFT loss."},
)
use_asft_loss: bool = field(
default=False,
metadata={"help": "Whether to use the ASFT loss."},
)
asft_alpha: float = field(
default=0.1,
metadata={"help": "The alpha parameter for ASFT loss to control the power of adaptive weight."},
)
use_eaft_loss: bool = field(
default=False,
metadata={"help": "Whether to use the EAFT loss."},