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. Each optimization step samples batch_size hindsight transitions and adds up to dead_end_batch_size dead-end transitions (default batch_size // 2, at most one per stored transition), passing both to the loss as one batch.

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.0b8

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.0b8
File Size Uploaded Provenance Actions
pymimir_rl-0.3.0b8.tar.gz 61.1 kB Without provenance Details for pymimir_rl-0.3.0b8.tar.gz

Built distribution (wheel)

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

Total release size: 120.6 kB

Release files / pymimir_rl-0.3.0b8.tar.gz

Download URL pymimir_rl-0.3.0b8.tar.gz
Size 61.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c8dcc8adac5db3e75f1a38e049d88c4312c973f29ed1c6c40c9eb4858d693c96
BLAKE2b-256 checksum
How to use checksums
40edcbf1919cd7ddf7e6bef68d8d390e2da2f329c3fad47390babddbb589ccbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL pymimir_rl-0.3.0b8-py3-none-any.whl
Size 59.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5de6adec61bd6e89cea3b3b52a54486ff4a0895d0ac34d6b2cf9c240b4f79aec
BLAKE2b-256 checksum
How to use checksums
8c24eb2aa53ed161bd0ab01920466c91c69f7d6fe65abb88bc42a2d000ec845e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for pymimir-rl 0.3.0b8

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