# How to get mode summary if I use tune.run()?

**URL:** <https://discuss.ray.io/t/how-to-get-mode-summary-if-i-use-tune-run/2024>\
**Category:** RLlib\
**Created:** [May 3, 2021, 9:32am UTC](https://discuss.ray.io/t/how-to-get-mode-summary-if-i-use-tune-run/2024 "2021-05-03T09:32:24Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![sven1977](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/sven1977/32/53_2.png) [@sven1977](https://discuss.ray.io/u/sven1977)\
**Post date:** [May 6, 2021, 8:49am UTC](https://discuss.ray.io/t/how-to-get-mode-summary-if-i-use-tune-run/2024/11 "2021-05-06T08:49:06Z")

</div>

Thanks @mannyv for your detailed answer and the really cool hack into the `after_init` 🙂  
This is great. @bug404 I answered your question on how to do this for torch in another thread here in the forum:

> [@How to get model summary using Pytorch backend?](https://discuss.ray.io/t/how-to-get-model-summary-using-pytorch-backend/2064/2):
>
> Hey @bug404 . If you have an RLlib Trainer object: print(trainer.get\_policy().model) If you are using tune.run, try to add this line into ray/rllib/policy/torch\_policy.py:~164 (after we assign self.model to the 0th of the multi-GPU towers): print(self.model)

---

_[View the full topic](https://discuss.ray.io/t/how-to-get-mode-summary-if-i-use-tune-run/2024)._
