question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: To have TensorRT preinstalled in Google Colab.

See original GitHub issue

Feature request

Given we can have CUDA and cuDNN, it would be amazing to have TensorRT preinstalled in Google Colab. Link

Describe the current behavior:

Currently, tensorRT is unavailble in Colab:

import tensorrt as trt

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-9-0a87b2689341> in <module>()
----> 1 import tensorrt as trt

ModuleNotFoundError: No module named 'tensorrt'

in order for the above to work, one needs to undergo a tedious, and rather long process of manually installing tensorRT in Colab, which not only wastes developer time but also wastes GPU time (GPU is necessary for tensorRT installation to work).

Describe the expected behavior:

It would be amazing if tensorRT came preinstalled by default, and we could straight away do:

import tensorrt as trt

I wouldn’t mind this beeing only-pro or only-gpu option.

The web browser you are using (Chrome, Firefox, Safari, etc.):

Google Chrome.

Link (not screenshot!) to a minimal, public, self-contained notebook that

reproduces this issue (click the Share button, then Get Shareable Link): N/A

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:12
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
sebastian-szcommented, Apr 25, 2022

If you’re struggling with this - Nvidia recently made it possible to install in Colab via pip (this takes couple of minutes though).

!pip install --upgrade --index-url https://pypi.ngc.nvidia.com nvidia-tensorrt

And in Colab:

import tensorrt as trt

trt.__version__
# 8.4.0.6
0reactions
RolandSallcommented, Feb 12, 2022

Is there any update regarding this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install TensorRT on Google Colab - NVIDIA Developer Forums
Hello, I'm trying to install TensorRT on google colab cuz I want to convert my model from pytorch to TensorRT event when I'm...
Read more >
What to use for Deep Learning: Cloud Services vs GPU
Google Colab or “the Colaboratory” is a free cloud service hosted by ... With Cloud computing services, some already have pre-installed ...
Read more >
How to Use Google Colaboratory for Video Processing - Apriorit
In particular, we talk about how to configure Google Colaboratory for solving video processing ... You'll get a request for authorization.
Read more >
Training with GPU an object detection model on colab with ...
I managed to solve this: the problem is due to the version of tensorflow pre-installed on the colab machine. !pip uninstall -y tensorflow ......
Read more >
4 Reasons Why You Should Use Google Colab for Your Next ...
You have 2 free member-only stories left this month. ... 2–4 Additional Features of Google Colab over Jupyter Notebook; and.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found