Skip to content

Low GPU usage and slow analysis/training #2343

Closed as not planned
Closed as not planned

Description

@rapacotta

Is there an existing issue for this?

  • I have searched the existing issues

Bug description

Hi! I have been trying to analyze some videos with DLC but noticed that the analysis was going very slowly. I then checked the GPU usage with nvidia-smi, showing me that roughly 6000 MiB were used out of 24000 MiB, as you can see below.

nvidia-smi6000

I already had this while training the model. I think it might be an issue due to my CUDA versions installed. Before installing DLC I installed the CUDA version 12.2, and when I tried to train it, it showed me the following error where DLC asked for a bunch of dll files from CUDA v11.x. Not being able to solve this issue in another way, I also installed CUDA v11.8

dlc error training

Then I saw that the GPU usage during the training was pretty low and also crashed around 26000 iterations, so I uninstalled CUDA v12.2 and then tried to retrain the model but then DLC asked me for a DLL file from CUDA v12.2 (I don't have a picture of that error but the file asked was cublasLt64_12.dll). So I then reinstalled CUDA v12.0 to get the same file again.

Does any of this makes sense? Can anyone explain the low GPU use?

Thanks!

Operating System

operating system windows 10

DeepLabCut version

dlc version 2.3.5

DeepLabCut mode

multi animal

Device type

gpu rtx 4090

Steps To Reproduce

No response

Relevant log output

No response

Anything else?

No response

Code of Conduct

Activity

  1. n-poulsen commented on Aug 7, 2023

    @n-poulsen
    Contributor

    Hi @rapacotta, low GPU memory usage does not indicate an incorrect installation (if the GPU is being used your installation should be correct). To increase GPU usage, increase the batch size in the configuration files (you can increase the batch size up to a given point, but will get an OOM error if you increase it too much as happened here).

    Some more information is given here.

  2. added
    howtousedlc
    on Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

gpuhowtousedlc

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions