Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Mimir-RL

Mimir-RL is a Python library that implements RL algorithms using PyTorch and PyTorch RL that are tightly integrated with Mimir.

Dead-end detection

Pass an optional state/goal detector callable to a trajectory sampler:

import pymimir as mm
from pymimir_rl import BoltzmannTrajectorySampler, CachedDeadEndDetector

detector = CachedDeadEndDetector(mm.H2DeadEndDetector)
sampler = BoltzmannTrajectorySampler(
    model, reward_function, temperature=0.5, dead_end_detector=detector,
)

For h², construct problems with generator="grounded". The cache creates one native detector per problem. Trajectory calls it after sampling, in state order, and propagates each proof forward for the same goal. Existing reward-function proofs and actionless non-goal states also provide dead-end evidence.

Detected states with applicable actions do not terminate or prune rollouts. Transition.successor_is_dead_end is separate from is_terminal, and ordinary rewards are preserved. Optimizers assign fixed dead-end targets without bootstrapping from those successors. Hindsight cloning recomputes labels for its new goal using the same detector cache.

OffPolicyAlgorithm accepts dead_end_replay_buffer and hindsight_replay_buffer. The former receives each trajectory containing a proven dead state, from the index returned by the optional dead_end_cutoff(trajectory) callable onwards. Without a callable, the whole trajectory is stored.

The cutoff only selects replay experience; it does not create dead-end labels or change targets. All sampled trajectories remain intact for hindsight refinement. Unproven horizon cutoffs do not qualify for the dead-end buffer.

Metadata

Release files for pymimir-rl 0.3.0b6

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

Source distribution (sdist)

Source distribution for pymimir-rl 0.3.0b6
File Size Uploaded Provenance Actions
pymimir_rl-0.3.0b6.tar.gz 59.3 kB Without provenance Details for pymimir_rl-0.3.0b6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pymimir-rl 0.3.0b6
File Interpreter ABI Platform Actions
pymimir_rl-0.3.0b6-py3-none-any.whl Python 3 none any Details for pymimir_rl-0.3.0b6-py3-none-any.whl

Total release size: 117.8 kB

Release files / pymimir_rl-0.3.0b6.tar.gz

Download URL pymimir_rl-0.3.0b6.tar.gz
Size 59.3 kB
Tags Source
SHA-256 checksum
How to use checksums
639e97b448ca865992d62c3d4a114277791287a5df32fbb3b9744f9999ed9e43
BLAKE2b-256 checksum
How to use checksums
4975ff787559e83eccbd1e8c07f31c6df2d5ead133bc16a0494857fefc6ef0c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / pymimir_rl-0.3.0b6-py3-none-any.whl

Download URL pymimir_rl-0.3.0b6-py3-none-any.whl
Size 58.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d17e60a464216b7464e40ff53dd6374c86e99560f67ea1d65abaaaf6c9e84727
BLAKE2b-256 checksum
How to use checksums
cb50375164746d23878cdd8af31c978e589735e3108d29c2f1d35f42cfcfd9d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for pymimir-rl 0.3.0b6

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.

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