# Example code uses RLlib's DefaultCallbacks, but tune.run expects tune.Callback

**URL:** <https://discuss.ray.io/t/example-code-uses-rllibs-defaultcallbacks-but-tune-run-expects-tune-callback/6818>\
**Category:** Ray Tune\
**Created:** [July 13, 2022, 8:46pm UTC](https://discuss.ray.io/t/example-code-uses-rllibs-defaultcallbacks-but-tune-run-expects-tune-callback/6818 "2022-07-13T20:46:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mannyv](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/mannyv/32/606_2.png) [@mannyv](https://discuss.ray.io/u/mannyv)\
**Post date:** [July 14, 2022, 1:09am UTC](https://discuss.ray.io/t/example-code-uses-rllibs-defaultcallbacks-but-tune-run-expects-tune-callback/6818/2 "2022-07-14T01:09:51Z")

</div>

Hi @Devin,

Welcome to the forum.

Does this post help at all?

> [@Add step info dictionary to MLflowLoggerCallback with Tune](https://discuss.ray.io/t/add-step-info-dictionary-to-mlflowloggercallback-with-tune/6740/4):
>
> @fedetask, I do not think that is quite how it should work, but I could be wrong. In my understanding, the MLflowLoggerCallback is a tune callback and the CustomCallback is an rllib callback. I think it should look something like this. tune.run(config={..., "callbacks": CustomCallback,}, callbacks=[MLflowLoggerCallback()])

---

_[View the full topic](https://discuss.ray.io/t/example-code-uses-rllibs-defaultcallbacks-but-tune-run-expects-tune-callback/6818)._
