在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:facebookresearch/darkforestGo开源软件地址:https://github.com/facebookresearch/darkforestGo开源编程语言:C 64.2%开源软件介绍:DarkForest, the Facebook Go engineUpdate[12/11/2017] DarkForestGo has been incorporated into ELF platform. Update: The training code is open source now. See below for detailed instructions. DarkForest is a Go game engine powered by Deep Learning and developed at Facebook AI Research.
We hope that releasing the source code and pre-trained models are beneficial to the community. Details of the engine are given in our paper and poster, and if you use our engine in future research, cite our paper:
Although DarkForest is standalone and does not depend on external libraries, some portions of the tactics and pattern code were inspired by the Pachi engine. BuildDependencies:
luarocks install class
luarocks install image
luarocks install tds
luarocks install cudnn This program supports 1 to 4 GPUs. Then just compile with the following command: sh ./compile.sh GCC 4.8+ is required. Depending on the location of your C++ compiler, please change the script accordingly. Tested in CentOS 6.5 and Ubuntu 14.04, 15.04. Install gcc-4.9 as a second compiler and create symlink as:
During the installation of torch and cudnn, either change the build script or replace symlink at /usr/bin/cc with:
More info at (http://stackoverflow.com/questions/6622454/cuda-incompatible-with-my-gcc-version) After the compilation If you get errors like:
Download latest cuDNN from nvidia at (https://developer.nvidia.com/rdp/cudnn-download), registration required. UsageStep 1: Download the models. Create Step 2: First run the GPU server cd ./local_evaluator
sh cnn_evaluator.sh [num_gpu] [pipe file path]
Example: Step 3: Run the main program cd ./cnnPlayerV2
th cnnPlayerMCTSV2.lua [options] See th cnnPlayerMCTSV2.lua --num_gpu [num_gpu] --time_limit 10 or (if you want to use a set of plausibly good parameters): th cnnPlayerMCTSV2.lua --use_formal_params --num_gpu [num_gpu] --time_limit 10 To load an existing game up to move 23: th cnnPlayerMCTSV2.lua [other_options] --setup_board "/path/to/sgf 23" When you are in the interactive environment, type
A complete game may look like: clear_board
[MCTS initialization ...]
place_free_handicap 3
genmove b
[MCTS generates moves..e.g., it returns Q16]
play w D4
genmove b
[MCTS generates moves...]
quit For more commands, please use command TrainingTo train the policy network from scratch, please run Differences with the award-winning versionsThe difference between this open source version (A) and that in KGS/competitions (B) is the following:
TroubleshootingQ: My program hanged on genmove/quit, what happened? A: Make sure you run the GPU server under ./local_evaluator, the server remains active and the pipe file path matches between the server and the client. If you have any questions or find any bugs, please open a Github issue by clicking "Issues" tab and then click "New Issue". Code OverviewThe system consists of the following parts.
LicensePlease check the LICENSE file for the license of Facebook DarkForest Go engine. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论