HF RL Explorer

Feature request: iterate over all entries in a cache

Feature request: iterate over all entries in a cache: a task in MiMo-V2.6-RL-oss: Agentic RL Environments (MiMo RL release). I'm using otter.Cache K, V and I'd like to be able to walk over every entry currently held in the cache (for example to dump the contents for debugging, export them…

The task

I'm using otter.Cache[K, V] and I'd like to be able to walk over every entry currently held in the cache (for example to dump the contents for debugging, export them somewhere, or compute some aggregate over the values). Right now I can only ask the cache about a key I already…

Part of XiaomiMiMo/MiMo-V2.6-RL-oss.