◂ BACK TO LEADERBOARD
▚ MODEL AUDIT // QAT GGUF

// Gemma 4 31B QAT

CRIT — Critical Bugs 70/100 tests: PASS
⚠ SPEED CAVEAT: Same as the Gemma 4 batch: GPU offload appeared inactive so tok/sec/TTFT are NOT representative of the model. Suspected LM Studio/GGUF config issue.
tok/sec15.00
tokens4552
TTFT4.01s

▮ PILLAR BREAKDOWN

Complexity (O(1))
16/20
Concurrency / Races
16/20
Tx Isolation
11/20
Memory & Edges
13/20
Test Integrity
14/20

✓ WENT RIGHT

  • Complexity (O(1)) (16/20)
  • Concurrency / Races (16/20)

✗ WENT WRONG

  • Memory & Edges (13/20)
  • Tx Isolation (11/20)

▮ CRITICAL BUGS

▮ RECOMMENDED USE

Runnable and structurally sound, but the LFU eviction has a stale-min_freq capacity-breach path and the transaction API doesn't match the spec (no commit/rollback). Usable for prototypes if you fix eviction and re-skin transactions.

▮ REFACTORED PATCH

# FIX 1 (capacity breach): guard + prune empty buckets on eviction:
while self.min_freq in self.freq_map and self.freq_map[self.min_freq].size == 0:
    del self.freq_map[self.min_freq]
    self.min_freq += 1
    if not self.freq_map:
        break
if self.min_freq not in self.freq_map:
    return  # nothing to evict
evicted = self.freq_map[self.min_freq].pop_tail()
if evicted and self.freq_map[self.min_freq].size == 0:
    del self.freq_map[self.min_freq]

# FIX 2 (conformant API): add commit/rollback to Transaction:
async def commit(self):
    await self._cache.apply_transaction_changes(self._state)
    self._committed = True
def rollback(self):
    self._state.writes.clear()
    self._committed = True

# FIX 3 (isolation leak): tx.get should use a read-only global lookup
# (no _update_freq), not the public cache.get.
# FIX 4: _get_now returns time.monotonic().
# FIX 5: add __slots__ to all node/list classes.