GithubHelp home page GithubHelp logo

Comments (3)

micwade-aws avatar micwade-aws commented on August 29, 2024

Hi, mbuckler.

Tensorboard needs the logdir arg passed on each run. AWS Neuron is going to fill the logdir directory with results from profiling a single inference call. We will update the tutorial to be more explicit about this flow and clarify documentation around installation.

Regarding the error you’re seeing:
tensorboard: error: unrecognized arguments: --run_neuron_profile

We’re only able to reproduce it when installing tensorboard over tensorboard-neuron, like this:

pip install tensorboard-neuron
pip install tensorboard --force-reinstall
tensorboard_neuron --run_neuron_profile

Are you doing something similar? If not, would you mind sending some more details on how you’re installing tensorboard-neuron and tensorboard to help us get it recreated?

Thanks,
Mike

from aws-neuron-sdk.

mbuckler avatar mbuckler commented on August 29, 2024

Good to know about the need for logdir, I've added that in to my command but unfortunately the error persists. Since you've asked for my installation setup I've attached a full log of my install and run process to this message. Below is also a summary of my process:

  1. Start with a fresh Ubuntu 18.04 DLAMI on an inf1.6xlarge instance
  2. Source the appropriate file to use the DLAMI's python environment
  3. Install tensorflow-neuron & aws-neuron-tools
  4. Create directories for logdir and neuron_profile
  5. Run inference (in this case for tensorflow Resnet50 as in the getting started tutorial) and observe output inside the neuron_profile directory
  6. Attempt to run tensorboard_neuron and receive the unrecognized arguments error

tensorflow-neuron_log.txt

from aws-neuron-sdk.

micwade-aws avatar micwade-aws commented on August 29, 2024

Thanks for providing the logs to help us reproduce this issue.

When using the DLAMI v26.0 Conda python environment (aws_neuron_tensorflow_p36), tensorflow-neuron and tensorboard-neuron are already installed. We have identified that the version of tensorflow-neuron in this environment incorrectly has a dependency on tensorboard rather than tensorboard-neuron, and has been fixed in newer released versions.

We’ve updated the DLAMI release notes (https://github.com/aws/private-aws-neuron-sdk-staging/blob/master/release-notes/dlami-release-notes.md) and TensorBoard-Neuron guide (https://github.com/aws/aws-neuron-sdk/blob/master/docs/neuron-tools/getting-started-tensorboard-neuron.md) to be explicit about install and updates of TensorBoard-Neuron for DLAMI v26.0.

The quickest way to get a working TensorBoard-Neuron in the DLAMI v26.0 Conda python environment (aws_neuron_tensorflow_p36) is to run these commands from inside the environment:

conda install numpy=1.17.2 --yes --quiet
conda update tensorflow-neuron

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.