Giter VIP home page Giter VIP logo

Comments (6)

HoshigaIkaro avatar HoshigaIkaro commented on May 14, 2024

For the question about the number provided to TchDevice::Cuda, I was curious as well and looked through the documentation. According to the backend, it is the device index.

from burn.

mwbryant avatar mwbryant commented on May 14, 2024

I think I saw that same source code which prompted me to try 0 and 1. It's still a bit unclear from the libraries what the value should be, is there a way to list valid device indices?

from burn.

nathanielsimard avatar nathanielsimard commented on May 14, 2024

I made a pull request that should fix the problem. The reason I did not see this before is that I always test using the --release flag, since it speeds up quite a bit the training without noticeable compilation time issue. I discovered that there was an underflow with the file checkpointer on debug builds.

I also added documentation on the TchDevice struct, the usize parameter is indeed the device index, which starts at zero. If you only have 1 GPU, it should just be zero.

I will work soon on error handling and proper logging to help understand those issues more clearly.

from burn.

mwbryant avatar mwbryant commented on May 14, 2024

Have you tried this trick in your toml to get the speed optimizations without needing --release and losing debug info:

[profile.dev]
opt-level = 0

[profile.dev.package."*"]
opt-level = 3

from burn.

nathanielsimard avatar nathanielsimard commented on May 14, 2024

I didn't think about this but yeah this is probably a good default and something to include in the example!

from burn.

nathanielsimard avatar nathanielsimard commented on May 14, 2024

In turns out that you can't set the optimization profile in packages under a workspace, I'm not sure how to make debug builds use a different optimization level (only for examples).

from burn.

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.