Equim-chan / Mortal

🚀🀄️ A fast and strong AI for riichi mahjong, powered by Rust and deep reinforcement learning.
https://mortal.ekyu.moe
GNU Affero General Public License v3.0
929 stars 118 forks source link

Dev/ako vs ako (#1) #8

Closed A0nameless0man closed 2 years ago

A0nameless0man commented 2 years ago

Fix train_grp may stuck for cuda device Add train data to git ignore Impl ako vs ako for easier data generation

Equim-chan commented 2 years ago

ako_vs_ako is inefficient, because the emulator is designed to run 4 games in a batch, and akochan does not scale. If the challenger and the champion are the same (say akochan), with the same seed being reused 4 times, it will produce 4 identical game logs at a time by spawning 16 akochan processes in parallel, wasting 3x CPU time.