Skip to main content

A lightweight utility library for reinforcement learning projects in JAX and Equinox.

Project description

JymKit

JymKit is your lightweight utility library for building reinforcement learning projects in JAX.

JymKit is in an early stage of development. Functionality is limited and may change at any moment. More features will be added in the near future.

JymKit revolves around three main pillars which complement each other but may be used separately and combined with different libraries or your own code.

  • An environment API, sticking close to Gymnax, but properly handling truncation when required and allowing for variable discounting. JymKit Environments are built as Equinox Modules, neatly integrating them into the JAX ecosystem.
  • JymKit provides general algorithms that train according to the PureJaxRL pattern for maximum performance, but are built as Equinox Modules. The algorithms are built as single-file implementations, follow a class-based approach and their API resembles that of the stable-baselines.
  • JymKit can bootstrap your project by providing some template code for building your reinforcement learning project via pipx run jymkit <projectname>.

Getting started

For new projects, the easiest way to get started is via uv:

uvx jymkit <projectname>
uv run example_train.py

# ... or via pipx
pipx run jymkit <projectname>
# ... active a virtual environment in your prefered way
python example_train.py

For existing projects, you can simply install JymKit via pip and import the required functionality.

pip install jymkit
import jax
import jymkit as jym
from jymkit.algorithms import PPO
from jymkit.envs import CartPole

env = CartPole()
rng = jax.random.PRNGKey(0)
agent = PPO(total_timesteps=5e5, debug=True, learning_rate=2.5e-3)
agent = agent.train(rng, env)

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

jymkit-0.0a1.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

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

jymkit-0.0a1-py3-none-any.whl (35.1 kB view details)

Uploaded Python 3

File details

Details for the file jymkit-0.0a1.tar.gz.

File metadata

  • Download URL: jymkit-0.0a1.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.11

File hashes

Hashes for jymkit-0.0a1.tar.gz
Algorithm Hash digest
SHA256 d05e7c173aacf085ee62842f15562eb79d1029b32dac984a75ea242f0c9df9c8
MD5 1d7ce72d7c2fefa2ef65efaaf4674369
BLAKE2b-256 9a0e595993224378d04ee4d7e0d8dc93efee0da3b35b6fad514ecd675b331a39

See more details on using hashes here.

File details

Details for the file jymkit-0.0a1-py3-none-any.whl.

File metadata

  • Download URL: jymkit-0.0a1-py3-none-any.whl
  • Upload date:
  • Size: 35.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.11

File hashes

Hashes for jymkit-0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ab6bb6c4cfb0f29f92ca67586cbdbedc80b5fe0e2575729710d6fd356e549dd
MD5 1c78a2b0733c0b21d92d3b9d6f4f49a3
BLAKE2b-256 cb3d6183db2948ec96876f331afa6bbf27b5289f7924ea219f418af43ccbb30d

See more details on using hashes here.

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