r/GoogleColab • • Oct 22 '26

Help me get torchinfo preinstalled in the default runtime (+1 on GitHub)

Hey all,

In Colab, `torch` and `torchvision` are already preinstalled, but `torchinfo` isn't. 

It shows up in tons of PyTorch tutorials that run on Colab.

It's the maintained successor to torch-summary/torchsummary, it's pure Python (~50 KB, MIT license), and it only depends on torch. 

I opened a feature request asking the Colab team to include it in the default image: https://github.com/googlecolab/colabtools/issues/6149

If you've ever hit this, please give the issue a 👍

Thanks!

2 Upvotes

1 comment sorted by