NRL

A lightweight native-PyTorch reinforcement learning framework
EN
View repository

Overview

NRL is a lightweight reinforcement learning framework built directly on PyTorch primitives. It focuses on being modular, easy to extend, and suitable for research and engineering workflows without depending on large external infra.

Main features

Repository layout

Installation

Prerequisites: Python and a matching PyTorch build (install a CUDA-enabled PyTorch for GPU usage).

# create a virtualenv
pip install -r requirements.txt

Quick start — run the ardf example

Run the repository entry with the example config:

python3 nrl/entry.py examples/ardf/config.py

Distributed example

python -m torch.distributed.run --nproc_per_node=<N> nrl/entry.py examples/ardf/config.py

Contributing

Running tests

Use the helper script in the repository root to run tests (it sets PYTHONPATH so the local package is loaded):

bash scripts/run_tests.sh

See CONTRIBUTING.md for more details.

License & Contact

See the LICENSE file in the repository root. Use Issues for questions or contact the maintainers.