Giter VIP home page Giter VIP logo

Comments (3)

dosssman avatar dosssman commented on May 10, 2024 1

On environment that do not require CNN, that is to be expected.

The GPU advantage seems to only kick in when the data / network size crosses a certain threshold,
namely where the overhead of moving the data to the GPU is negligible when compared to the cost of doing the feed forward as well as back propagation operations.

The following Wandb report only investigates the batch size, but the cuda=True version seems to become overcome the CPU version around batch size ~7500:
https://app.wandb.ai/dosssman/cleanrl-cpu-gpu-comp/reports/Time-taken-w.r.t.-device--VmlldzoxMzIwNzE

Just to be sure, still need to check without the Wandb logging to make sure it is consistent without the logging overhead.

from cleanrl.

dosssman avatar dosssman commented on May 10, 2024

Well, turns out the Wandb overhead seems to really mess up the results.
When running the experiments with source code on a tmpfs device, the GPU version catches up even faster to the CPU one.

Although incomplete at the time of this writing, the following Wandb Report shows that GPU starts showing faster runtime than CPU from ~512 batch size:
https://app.wandb.ai/dosssman/cleanrl-cpu-gpu-comp-2/reports/Untitled-Report--VmlldzoxMzI0NjU

from cleanrl.

vwxyzjn avatar vwxyzjn commented on May 10, 2024

This has largely been fixed with the latest commits. Closing the issue for now.

from cleanrl.

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.