Moss: A Python library for Reinforcement Learning
Moss is a Python library for Reinforcement Learning based on jax.
Installation
To get up and running quickly just follow the steps below:
Installing from PyPI: Moss is currently hosted on PyPI, you can simply install Moss from PyPI with the following command:
pip install moss-rl
Installing from github: If you are interested in running Moss as a developer,
you can do so by cloning the Moss GitHub repository and then executing following command
from the main directory (where setup.py is located):
pip install -e ".[dev]"
After installation, open your python console and type
import moss
print(moss.__version__)
If no error occurs, you have successfully installed Moss.
Work on GPU or TPU
If you want to run Moss with NVIDIA GPU, please run the steps below:
pip install --upgrade pip
# CUDA 12 installation
# Note: wheels only available on linux.
pip install --upgrade "jax[cuda12_pip]==0.4.9" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
# CUDA 11 installation
# Note: wheels only available on linux.
pip install --upgrade "jax[cuda11_pip]==0.4.9" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
Or if you want to run with Google Cloud TPU:
pip install "jax[tpu]==0.4.9" -f https://storage.googleapis.com/jax-releases/libtpu_releases.html
For more details, please see the JAX installation instructions here.
Quick Start
This is an example of Impala to train Atari game(use envpool).
python examples/atari/impala.py --task_id Pong-v5 --learning_rate 1e-3
Metadata
Release files for moss-rl 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| moss-rl-0.0.5.tar.gz | 47.2 kB | Without provenance | Details for moss-rl-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| moss_rl-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for moss_rl-0.0.5-py3-none-any.whl |
Total release size: 131.0 kB
Release files / moss-rl-0.0.5.tar.gz
| Download URL | moss-rl-0.0.5.tar.gz |
|---|---|
| Size | 47.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a27eaf71ba3bc0a3d539b277d9dfba7dcb716ce54b1973edf8d3071afaa63442
|
|
BLAKE2b-256 checksum How to use checksums |
037e903e06f50ea8bf84f8a27d11c779f41a517910a477d77bc1e982031344cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / moss_rl-0.0.5-py3-none-any.whl
| Download URL | moss_rl-0.0.5-py3-none-any.whl |
|---|---|
| Size | 83.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45e67551eb0ae9b12de11a80161cb080d05da21acd5dc7a409edb2ecc60d06e8
|
|
BLAKE2b-256 checksum How to use checksums |
950f8872fc1363d743b11f341c3a311ea75870b971c8d62dcf5428ed37acc9c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for moss-rl 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.