# 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>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://til.kurianbenoy.com/ai-ml/better-to-pass-callback-in-fit_one_cycle.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
