DBD-research-group / BirdSet

A benchmark dataset collection for bird sound classification
https://huggingface.co/datasets/DBD-research-group/BirdSet
BSD 3-Clause "New" or "Revised" License
22 stars 8 forks source link

trainer devices cant be set to specific gpu #184

Closed raphaelschwinger closed 6 months ago

raphaelschwinger commented 6 months ago

We need to be able to set a specific GPU for training. This is usually done by setting the devices parameter of the trainer to devices=[2] for the second GPU. As the devices gets used to get the number of GPUs, this parameter is expected to be an int.

As a workaround you can set the GPU in the devcontainer.json:

    "runArgs": [
        "--gpus",
        "device=2",
...

But you need to rebuild the container and reinstall the dependencies.