Skip to main content

POPJym

POPJym reimplements the environments from POPGym in pure JAX for experiments on memory in reinforcement learning. It includes 16 task families, each with Easy, Medium, and Hard settings (48 environments). Both reset and step support jax.jit and jax.vmap. Original POPGym implementation

Comparison with popjaxrl

Chris Lu and colleagues released an earlier JAX implementation of POPGym in popjaxrl. POPJym restores several task rules from the original benchmark. popjaxrl repository

Task Earlier popjaxrl behavior (source) POPJym behavior
CountRecallEasy The agent could answer only 0 or 1. popjaxrl issue #10 The agent can report any count from 0 through 26.
Autoencode The agent saw a blank observation for every card during the watch phase. The agent sees each suit in order, then recalls the suits in reverse.
RepeatFirstEasy A 52-card deck allowed 52 guesses and a perfect return of 52/51. The first card is dealt at reset, leaving 51 guesses and a perfect return of 1.
MineSweeper Clearing every safe square in succession left the episode running. Clearing the last safe square ends the episode.

Quick start

python -m pip install "git+https://github.com/bolt-research/POPJym.git"
import jax
import popjym

env = popjym.make("RepeatFirstEasy")
reset_key, step_key = jax.random.split(jax.random.key(0))
first_suit, state = env.reset(reset_key)
obs, state, reward, terminated, truncated, info = jax.jit(env.step)(
    step_key, state, first_suit
)

Citation

If you use POPJym in your work, please cite this software and the original POPGym benchmark paper by Morad et al.

@software{wang2026popjym,
  author  = {Wang, Zekang and He, Zhe},
  title   = {{POPJym}},
  year    = {2026},
  version = {0.1.0},
  url     = {https://github.com/bolt-research/POPJym}
}
@inproceedings{morad2023popgym,
  author    = {Morad, Steven and Kortvelesy, Ryan and Bettini, Matteo and Liwicki, Stephan and Prorok, Amanda},
  title     = {{POPGym}: Benchmarking Partially Observable Reinforcement Learning},
  booktitle = {The Eleventh International Conference on Learning Representations},
  year      = {2023},
  url       = {https://openreview.net/forum?id=chDrutUTs0K}
}

Metadata

Release files for popjym 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for popjym 0.1.0
File Size Uploaded Provenance Actions
popjym-0.1.0.tar.gz 195.8 kB Without provenance Details for popjym-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for popjym 0.1.0
File Interpreter ABI Platform Actions
popjym-0.1.0-py3-none-any.whl Python 3 none any Details for popjym-0.1.0-py3-none-any.whl

Total release size: 230.2 kB

Release files / popjym-0.1.0.tar.gz

Download URL popjym-0.1.0.tar.gz
Size 195.8 kB
Tags Source
SHA-256 checksum
How to use checksums
af559f66720484e7cd85da4b527064c14992f07d57f6b718c6ce1a573a4bdef0
BLAKE2b-256 checksum
How to use checksums
4ec6aa66926857b38b07e6fa98ecfeb185eeac20042691b66f97431a74266452
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / popjym-0.1.0-py3-none-any.whl

Download URL popjym-0.1.0-py3-none-any.whl
Size 34.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
250277630244190f68653952ac6d23b3f51e717c6bbf5e0bced887f71522939d
BLAKE2b-256 checksum
How to use checksums
062d578a952174953be6f15132ec6896209c0b687d01c35902547d7b0c962261
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for popjym 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page