Skip to content

Feat (brevitas_examples/llm): custom trainer support#1474

Open
Giuseppe5 wants to merge 10 commits into
Xilinx:devfrom
Giuseppe5:override_trainer
Open

Feat (brevitas_examples/llm): custom trainer support#1474
Giuseppe5 wants to merge 10 commits into
Xilinx:devfrom
Giuseppe5:override_trainer

Conversation

@Giuseppe5
Copy link
Copy Markdown
Collaborator

@Giuseppe5 Giuseppe5 commented Mar 3, 2026

Reason for this PR

Currently, our Trainer only supports rotation optimization, with little possibility of customization

Changes Made in this PR

This PR allows to fully override the Trainer, including what parameters to optimize, which loss to use for each different set of parameters, which callback to use, etc.

Testing Summary

Added test with custom class

@Giuseppe5 Giuseppe5 changed the title Override trainer Feat (brevitas_examples/llm): custom trainer support Mar 3, 2026
@Giuseppe5 Giuseppe5 self-assigned this Apr 9, 2026
Comment thread src/brevitas_examples/llm/llm_quant/rotation_optimization.py Outdated
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.

1 participant