GithubHelp home page GithubHelp logo

Comments (4)

mrnikwaws avatar mrnikwaws commented on July 25, 2024

Thanks for your question. You are correct that profiling does not work on this specific tutorial example. The example uses a feature which varies batch sizes dynamically, and is not compatible with profiling at the moment

from aws-neuron-sdk.

mrnikwaws avatar mrnikwaws commented on July 25, 2024

On further investigation if you update the file infer_resnet50_keras_loadtest.py and modify the line:

USER_BATCH_SIZE = 50

to

USER_BATCH_SIZE = 5

then profiling should work for you. Currently the compilation batch size and the inference batch size must match for profiling to run correctly.

There is a lot of data in the load test, and tensorboard_neuron will take a long time to process all of it on startup. I recommend that you use a much smaller data set which will give you useful profiling information.

Consider changing:

NUM_LOOPS_PER_THREAD = 100

to

NUM_LOOPS_PER_THREAD = 5

from aws-neuron-sdk.

cprice404-aws avatar cprice404-aws commented on July 25, 2024

Excellent, thanks for the information!

Do you expect for the profiling to be available for dynamic batch sizes in the future?

from aws-neuron-sdk.

mrnikwaws avatar mrnikwaws commented on July 25, 2024

Thanks for the input. I have made the team aware of the request, we've documented it and we will consider adding it in a future release. For now I am going to close this issue (since you can run the profiler), but please reopen it if you feel that this specific feature is a priority to track in github.

from aws-neuron-sdk.

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.