Skip to main content

Flexible reinforcement learning models instantiators library

Project description

rlmodule

Flexible reinforcement learning models instantiators library

Function approximators simple, but still strong. RNN - GRU - LSTM / SAC

Now it only supports skrl, but is intended to be library agnostic - in later expansion

try other algos shared separate model

How to run

Install rlmodule from local code

  • Make sure you are in base rlmodule dict.

  • Start virtual env.

python3 -m venv venv
source venv/bin/activate
  • Install library from local code
pip install -e .

Note: sometimes installation may fail, if there is a run/ dir present, you may need to remove it (TODO: fix)

rm -rf runs

Deep policies: LayerNorm and Residual MLPs

rlmodule supports per-layer LayerNorm on MlpCfg and a SimBa-style residual MLP (ResidualMlpCfg). These work for both separated and shared architectures, with independent per-head granularity via the new OutputLayerCfg.head field. See docs/layer_norm_and_residual.md for motivation, references, and copy-pasteable cfg snippets.

Run chosen example

python3 rlmodule/skrl/torch/examples/gymnasium/pendulum_ppo_mlp_separate_model.py

Optional: observe run results in Tensorboard

tensorboard --logdir=runs/

Update new version to PIP

Change version name in pyproject.toml

pip install build twine
rm -rf runs
python -m build
twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rlmodule-0.1.7.tar.gz (77.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rlmodule-0.1.7-py3-none-any.whl (76.0 kB view details)

Uploaded Python 3

File details

Details for the file rlmodule-0.1.7.tar.gz.

File metadata

  • Download URL: rlmodule-0.1.7.tar.gz
  • Upload date:
  • Size: 77.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rlmodule-0.1.7.tar.gz
Algorithm Hash digest
SHA256 25e08bed5907666b55f7cd1330e2da8be22e08529977d354543a5805102335b3
MD5 e9e47ec9b49e75cb94c58e61e2f75463
BLAKE2b-256 9f98538123ec2708fdf39e7f2764e647c26ab95acde54740e4145e56d49a97b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for rlmodule-0.1.7.tar.gz:

Publisher: workflow.yml on tomasmachacekw/rlmodule

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rlmodule-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: rlmodule-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 76.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rlmodule-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 182ac05e53f8c1963f8913fcd237fa36c7df6d52be8368fd571aeb9fa27cf71d
MD5 7ea55bb8e6f74fb27f4f0d2209b85e79
BLAKE2b-256 562a401f96f8c0424b927078d474f60cbde3857e1ae3eb17ec8408e2182addcf

See more details on using hashes here.

Provenance

The following attestation bundles were made for rlmodule-0.1.7-py3-none-any.whl:

Publisher: workflow.yml on tomasmachacekw/rlmodule

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page