mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 02:38:10 +00:00

* Add some reinforcement learning example. * Python initialization. * Get the example to run. * Vectorized gym envs for the atari wrappers. * Get some simulation loop to run.
candle-reinforcement-learning
Reinforcement Learning examples for candle.
This has been tested with gymnasium
version 0.29.1
. You can install the
Python package with:
pip install "gymnasium[accept-rom-license]"
In order to run the example, use the following command. Note the additional
--package
flag to ensure that there is no conflict with the candle-pyo3
crate.
cargo run --example reinforcement-learning --features=pyo3 --package candle-examples