Skip to content

Conversation

@electroglyph
Copy link

@electroglyph electroglyph commented Jan 10, 2026

from the paper: https://huggingface.co/papers/2601.02151

the implementation is 100% based on (and credited to):
hiyouga/LlamaFactory@main...ymxyll:LlamaFactory-EAFT:feature/eaft

i added a test =)

closes #4795

use like so:

trainer = SFTTrainer(
    args = SFTConfig(
        loss_type = "eaft",
        eaft_alpha = 1.0, # default
    ),
)

@qgallouedec
Copy link
Member

Thanks! Can you add a short subsection here: https://github.com/huggingface/trl/blob/main/docs/source/paper_index.md#supervised-fine-tuning

@electroglyph
Copy link
Author

Thanks! Can you add a short subsection here: https://github.com/huggingface/trl/blob/main/docs/source/paper_index.md#supervised-fine-tuning

just letting you know i added the section

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Entropy-Adaptive Fine-Tuning

2 participants