Coder Social home page Coder Social logo

Comments (4)

trevor-m avatar trevor-m commented on June 30, 2024

Hi @vizero1, the first inference is expected to take a long time because TensorRT will be building the engines.

In DLR 1.2 we added a feature to cache the engine to disk after it has been built so that next time you load the model it doesn’t need to be built again and the first inference will be fast. You can read about it here https://neo-ai-dlr.readthedocs.io/en/latest/tensorrt.html#caching-tensorrt-engines

Please see this page for more details on TRT options for DLR: https://neo-ai-dlr.readthedocs.io/en/latest/tensorrt.html

from neo-ai-dlr.

vizero1 avatar vizero1 commented on June 30, 2024

@trevor-m thanks for the fast reply. I will try it out with the caching functionality but one thing is still not clear for me.
Why is there such a big difference between the different Jetpack versions? Is it due to the TRT versions?
Jetpack 4.3 with TRT 6 takes 5 minutes while Jetpack 4.4 with TRT 7 takes around 2 minutes?

from neo-ai-dlr.

trevor-m avatar trevor-m commented on June 30, 2024

Yes it is due to the TensorRT version. JetPack 4.4 uses TRT 7.1 which optimized engine build time. See “Builder layer timing cache” on this page https://docs.nvidia.com/deeplearning/tensorrt/release-notes/tensorrt-7.html#rel_7-1-3

from neo-ai-dlr.

vizero1 avatar vizero1 commented on June 30, 2024

@trevor-m thanks.

from neo-ai-dlr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.