GithubHelp home page GithubHelp logo

Comments (9)

PhilJd avatar PhilJd commented on July 24, 2024

Hi @lzmisscc, could you clarify what you mean by that? Are you referring to the function calls required, your training loss not going down, or something else?
Thanks!

from contiguous_pytorch_params.

liuzhuang1024 avatar liuzhuang1024 commented on July 24, 2024

image

I use the usage method in the readme to call the function but there is no time reduction and run my program in a four GPUs environment.

Python 3.8.10
torch 1.6.0

from contiguous_pytorch_params.

PhilJd avatar PhilJd commented on July 24, 2024

Could you check the GPU usage? Maybe the job is input bound which hides the speedup? Also, how big is your model? I.e., how many paramter tensors does it contain?

from contiguous_pytorch_params.

liuzhuang1024 avatar liuzhuang1024 commented on July 24, 2024

Model Paramter:

Total params: 1,642,048
Trainable params: 1,642,048
Non-trainable params: 0

Input size (MB): 0.73
Forward/backward pass size (MB): 1430.98
Params size (MB): 6.26
Estimated Total Size (MB): 1437.98

and the GPU usage not much change before, the input size is (96, 1000)

from contiguous_pytorch_params.

PhilJd avatar PhilJd commented on July 24, 2024

What's the GPU usage percentage given by nvidia-smi?

from contiguous_pytorch_params.

liuzhuang1024 avatar liuzhuang1024 commented on July 24, 2024

What's the GPU usage percentage given by nvidia-smi?

image

from contiguous_pytorch_params.

PhilJd avatar PhilJd commented on July 24, 2024

This looks like your job is input/CPU bound, so the GPU is idle 70% of the time anyway. To see a speed up with contiguous params, you'd need to get GPU utilization closer to 100% first.

from contiguous_pytorch_params.

liuzhuang1024 avatar liuzhuang1024 commented on July 24, 2024

ok, thanks!👍🏻

from contiguous_pytorch_params.

PhilJd avatar PhilJd commented on July 24, 2024

I'll close this for now, feel free to re-open if this is still an issue when GPU usage is close to 100%.

from contiguous_pytorch_params.

Related Issues (7)

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.