> For the complete documentation index, see [llms.txt](https://til.kurianbenoy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.kurianbenoy.com/ai-ml/better-to-pass-callback-in-fit_one_cycle.md).

# Better to pass callback in fit\_one\_cycle

It’s better to pass callbacks to fine\_tune() and fit\_one\_cycle() method instead of passing directly to the learner object, to avoid unwanted effects when using your models for inferencing. I found this solution from one of the posts written by Wayde Gilliam.

{% embed url="<https://forums.fast.ai/t/is-there-anyway-to-call-learn-get-preds-without-triggering-any-of-the-callbacks/64753/10>" %}

Zach replied to my tweet, confirming it's correct

{% embed url="<https://twitter.com/TheZachMueller/status/1544297503771746309?s=20&t=R64PRkn1yrwQ2pWC87rrnA>" %}
