fix: training pipeline quits unused uci workers
This commit is contained in:
parent
174519bec5
commit
4ba02e9963
@ -22,7 +22,7 @@ from pathlib import Path
|
|||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument("files", nargs="+", type=Path)
|
parser.add_argument("files", nargs="+", type=Path)
|
||||||
parser.add_argument("--batch-size", type=int, help="Number of games to save in each output file.", default=8)
|
parser.add_argument("--batch-size", type=int, help="Number of games to save in each output file. Set this to two to four times the amount of concurrent workers used in the processing step.", default=8)
|
||||||
parser.add_argument("--output-folder", type=Path, help="Folder to save batched games in.", default=Path("batches"))
|
parser.add_argument("--output-folder", type=Path, help="Folder to save batched games in.", default=Path("batches"))
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
@ -160,6 +160,8 @@ async def worker(game_generator: AsyncIterator[pgn.Game]) -> None:
|
|||||||
|
|
||||||
await output_queue.put((board.fen(), tensor, int(eval_abs), wdl))
|
await output_queue.put((board.fen(), tensor, int(eval_abs), wdl))
|
||||||
|
|
||||||
|
await engine.quit()
|
||||||
|
|
||||||
|
|
||||||
async def analyse_games(file: Path):
|
async def analyse_games(file: Path):
|
||||||
"""Task that manages reading PGNs and analyzing them."""
|
"""Task that manages reading PGNs and analyzing them."""
|
||||||
|
Loading…
Reference in New Issue
Block a user