refactor: rewrite humaneval evaluation with functional pipeline design

- fix KeyError race condition in inference cache touch()
- EvalConfig dataclass for centralized configuration
- load->generate->extract->test->score->report pipeline
- two-phase generation+testing for max GPU utilization
- signal-based SIGALRM timeout protection for code exec
- suppress subprocess stdout/stderr pollution
This commit is contained in:
2026-07-05 07:58:28 +08:00
parent 2d908639e9
commit 17d6eaa2f2
2 changed files with 261 additions and 215 deletions
+2 -1
View File
@@ -62,7 +62,8 @@ class Allocator:
def touch(self, idx: int):
with self._lock:
self._lru.move_to_end(idx)
if idx in self._lru:
self._lru.move_to_end(idx)
class PrefixCache: