Make sure Google Drive and local are in sync. Google backup and sync.app
Install chainer. Just in case, make sure that the GPU is enabled.
You are now ready to use Google Colab.
All editing of .py files is done locally.
It is necessary to reflect the edits made on the local side. To make it take effect, restart the runtime.
The image is the image at the time of learning in Chapter 7. You may need to install pydlshogi every time (every runtime reboot?). python-shogi may need to be installed occasionally (?).
CPU vs GPU Compare the learning speeds of CPU and GPU.
result GPU is 25 times faster
The learning of the evaluation interval 100 described in Chapter 7 was carried out, and the average time of one evaluation interval was measured.
CPU (iMac 3.1GHz 6-core 10th generation Intel Core i5 processor) 100 seconds on average GPU(Colab) 4 seconds on average
Recommended Posts