MCPcopy Create free account
hub / github.com/Alpha-VLLM/LLaMA2-Accessory / execute_with_timeout

Function execute_with_timeout

accessory/eval_mm/utils/math_utils.py:454–457  ·  view source on GitHub ↗
(code: str, timeout: int=5, use_process: bool = True)

Source from the content-addressed store, hash-verified

452
453
454def execute_with_timeout(code: str, timeout: int=5, use_process: bool = True):
455 executor = CodeExecutor(code, timeout, use_process)
456 s = executor.run()
457 return s
458
459
460def within_eps(pred: float, gt: float):

Callers

nothing calls this directly

Calls 2

runMethod · 0.95
CodeExecutorClass · 0.85

Tested by

no test coverage detected