executor
genlm.eval.domains.livecodebench_multilingual.executor
Execution backends for multilingual LiveCodeBench.
A backend grades one (code, language) candidate against shared stdin/stdout tests.
LocalSubprocessExecutor wraps the vendored Multi-LCB executor (eval_plang_code).
is_toolchain_available(language)
True if every binary language needs is on PATH (python is always available).
Source code in genlm/eval/domains/livecodebench_multilingual/executor.py
MultilingualCodeExecutor
Bases: Protocol
Source code in genlm/eval/domains/livecodebench_multilingual/executor.py
prepare(language)
run(code, inputs, outputs, language, timeout)
Return (solved, metadata) for one candidate against the stdin/stdout tests.
Source code in genlm/eval/domains/livecodebench_multilingual/executor.py
LocalSubprocessExecutor
Grade candidates by compiling/running them locally via the vendored executor.
No container isolation: generated code runs as host subprocesses with only rlimit + process-group SIGKILL. Run on a dedicated/disposable node only.