MCPcopy Create free account
hub / github.com/AnswerDotAI/ModernBERT / run_subprocess

Function run_subprocess

run_evals.py:138–143  ·  view source on GitHub ↗
(cmd: List[str], verbose: bool = False, show_errors: bool = False)

Source from the content-addressed store, hash-verified

136
137
138def run_subprocess(cmd: List[str], verbose: bool = False, show_errors: bool = False):
139 stdout = None if verbose else subprocess.DEVNULL
140 stderr = None if verbose or show_errors else subprocess.DEVNULL
141 process = subprocess.Popen(cmd, stdout=stdout, stderr=stderr)
142 all_processes.append(process) # Add the process to the global list
143 process.wait()
144
145
146def handle_process_completion(process, stderr_file, config_path: Path, verbose: bool, gpu_id: Optional[int] = None):

Callers 1

generate_eval_configsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected