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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user