pytorch / ELF

ELF: a platform for game research with AlphaGoZero/AlphaZero reimplementation
Other
3.37k stars 567 forks source link

Hangs when run Go bot and "genmove b" #54

Closed chilin99999 closed 6 years ago

chilin99999 commented 6 years ago

Linux: 16.04 Python: 3.6 GCC: 7.3 GPU: No pytorch: pytorch-nightly conda: anaconda

I compile an executable, and run the Go bot.

./gtp.sh ./pretrained-go-19x19-v0.bin --verbose --num_block 20 --dim 224 --mcts_puct 1.50 --batchsize 16 --mcts_rollout_per_batch 16 --mcts_threads 2 --mcts_rollout_per_thread 8192 --resign_thres 0.05 --mcts_virtual_loss 1

I seems like successful. And I enter "list_commands", it returns value correctly.

clear_board
exit
final_score
genmove
komi
list_commands
name
play
protocol_version
quit
showboard
version

But after I enter "genmove b", the go bot hangs, no response. What's wrong!? What can I do?

qucheng commented 6 years ago

Try to reduce the mcts_rollout_per_thread, e.g. to 100 to see if this works. In default settings it may take a long time, depending on your hardware setting. Also, the first move includes some additional initialization, so it might take a longer time.

chilin99999 commented 6 years ago

@qucheng Oh.....I should have thought of that. Thank you!