Skip to content

Pre-Forward and Post-Forward Callbacks? #2300

Answered by NanoCode012
eldarkurtic asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, since we wrap transformers Trainer. You can create a callback and add it to the trainer

Here are the possible hook options on_step_begin: https://huggingface.co/docs/transformers/main_classes/callback#transformers.TrainerCallback.on_step_begin

You can see the callbacks we have in the repo here: src/axolotl/utils/callbacks/__init__.py

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by eldarkurtic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants