Hey guys,
I’m trying to my SAC agent to run on my GPU but Ray doesn’t seem to find it. Here’s some test code I used:
import ray
from ray.rllib.agents.sac import SACTrainer, DEFAULT_CONFIG
ray.init()
config = DEFAULT_CONFIG
config["num_gpus"] = 1
trainer = SACTrainer(env='Pendulum-v1', config=config,)
and here’s the error output
RuntimeError: Found 0 GPUs on your machine (GPU devices found: [])! If your machine
does not have any GPUs, you should set the config keys `num_gpus` and
`num_gpus_per_worker` to 0 (they may be set to 1 by default for your
particular RL algorithm).
To change the config for the `rllib train|rollout` command, use
`--config={'[key]': '[value]'}` on the command line.
To change the config for `tune.run()` in a script: Modify the python dict
passed to `tune.run(config=[...])`.
To change the config for an RLlib Trainer instance: Modify the python dict
passed to the Trainer's constructor, e.g. `PPOTrainer(config=[...])`.
Specs:
- OS: Windows 10
- GPU: NVIDIA RTX3070ti (Driver 512.77)
- Ray version: 1.12.0