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

See the popjym 0.1.0.post1 release on PyPI.

pip install popjym
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  = {Zekang Wang and Zhe He},
  title   = {{popjym}},
  year    = {2026},
  version = {0.1.0.post1},
  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.post1

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.post1
File Size Uploaded Provenance Actions
popjym-0.1.0.post1.tar.gz 195.8 kB Without provenance Details for popjym-0.1.0.post1.tar.gz

Built distribution (wheel)

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

Total release size: 230.3 kB

Release files / popjym-0.1.0.post1.tar.gz

Download URL popjym-0.1.0.post1.tar.gz
Size 195.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8ce131d5f2254ec889a9822b4fea5b9dbf37a2a21cbfc37253e35bc52298bd33
BLAKE2b-256 checksum
How to use checksums
e279758ad231ee8347fbc437df38de0eba574738039a63a15ce805b61ca35a97
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.post1-py3-none-any.whl

Download URL popjym-0.1.0.post1-py3-none-any.whl
Size 34.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0f1c70af16570df4355806a71b9fa780a9e4e7beaf4d1f44de43b30d2b5ec80
BLAKE2b-256 checksum
How to use checksums
30fea9f3391803ac4ea3010907923729976d731a32277753573fd54afdcd8213
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.post1

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
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