HF RL Explorer

I want libcache to provide a least-frequently-used cache replacement policy for stateful cache instances.

I want libcache to provide a least-frequently-used cache replacement policy for stateful cache instances.: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). A cache created with capacity 3 should evict the key with the lowest successful Load count when adding a…

The task

A cache created with capacity 3 should evict the key with the lowest successful `Load` count when adding a fourth entry. For example: `c := lfu.New(3)`, then `Store("a", 1)`, `Store("b", 2)`, `Store("c", 3)`, `Load("a")` twice, `Load("b")` once, and `Store("d", 4)` should leave `"a"`, `"b"`, and `"d"` present while…

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