HF RL Explorer

The byte-bounded LRU in lib/lru is useful as a shared component, but its current implementation cannot be…

The byte-bounded LRU in lib/lru is useful as a shared component, but its current implementation cannot be…: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). Keep the existing constructor and Value interface, and keep Add, Get, RemoveOldest, and Len…

The task

Keep the existing constructor and Value interface, and keep Add, Get, RemoveOldest, and Len source-compatible. Updating an existing key must replace its value in place, make that key most-recently-used, adjust the tracked byte total by the difference between old and new entries, and apply the byte limit immediately;…

Part of FineEnvs/MiMo-V2.6-RL-harbor-code.