ymgaq released Windows version of his AQ v2.0.3 bot

For discussing go computing, software announcements, etc.
aTan
Dies in gote
Posts: 23
Joined: Tue Aug 29, 2017 7:39 am
Rank: 30k
GD Posts: 0

ymgaq released Windows version of his AQ v2.0.3 bot

Post by aTan »

https://github.com/ymgaq/AQ/releases

- Make it compatible with Windows (AQ_win)
- Added AQ-mini (AQ-mini_win: for CPU only)
- Supports 3 or more multi-GPUs
- Added Ponder OFF setting
User avatar
pnprog
Lives with ko
Posts: 286
Joined: Thu Oct 20, 2016 7:21 am
Rank: OGS 7 kyu
GD Posts: 0
Has thanked: 94 times
Been thanked: 153 times

Re: ymgaq released Windows version of his AQ v2.0.3 bot

Post by pnprog »

I just want to report that I ran AQ vs Leela games on my computer, alternating black and white for both bots.
Both bots were running CPU only (no pondering), and my CPU is pretty old one: i3-3217U CPU @ 1.80GHz (4 cores).
Time settings was 30 second by moves, which AQ used at the fullest, but Leela somehow only used half of its time.

Result:
  • AQ: 10 wins
  • Leela: 4 wins

On shorter time (10 s/move) Leela seems to win all the games.

AQ is definitively a strong bot. I have added support for it in Go Review Partner, but there are still some details to be figured out with the developer of AQ (namely how to understand AQ win rate values).
I am the author of GoReviewPartner, a small software aimed at assisting reviewing a game of Go. Give it a try!
luigi
Lives in gote
Posts: 352
Joined: Wed Jul 06, 2011 12:01 pm
Rank: Low
GD Posts: 0
Location: Spain
Has thanked: 181 times
Been thanked: 41 times

Re: ymgaq released Windows version of his AQ v2.0.3 bot

Post by luigi »

It doesn't work for me. Is it 32-bit or 64-bit? Do I need to enter any commands on Sabaki?
User avatar
pnprog
Lives with ko
Posts: 286
Joined: Thu Oct 20, 2016 7:21 am
Rank: OGS 7 kyu
GD Posts: 0
Has thanked: 94 times
Been thanked: 153 times

Re: ymgaq released Windows version of his AQ v2.0.3 bot

Post by pnprog »

Hi!
luigi wrote:It doesn't work for me. Is it 32-bit or 64-bit? Do I need to enter any commands on Sabaki?


The easiest way for you to check that your computer can run AQ is to run directly the executable file AQ.exe, and once the black terminal looking windows is opened, wait until you see the message configuration loaded. to input genmove black followed by a press on <enter> key.

AQ will start thinking then provide an answer, it will look something like this:

Code: Select all

configuration loaded.
genmove black
thinking...
move cnt=1: left time=0.0[sec]
5[nodes] 5.1[sec] 685[playouts] 134.5[pps/thread]
total games=685, evaluated policy=5(0), value=23(24)
|move|count  |value|roll |prob |depth| best sequence
|D4  |    189| 51.9| 45.5| 17.5|    1| D4 ->Q16
|Q4  |    141| 51.5| 44.0| 18.0|    1| Q4 ->O3
|Q16 |    109| 51.3| 36.7| 18.7|    1| Q16->D16
|D16 |     73| 50.7| 37.0| 17.3|    1| D16->F17
|Q17 |     53| 51.5| 54.7|  3.9|    1|
|C16 |     25| 49.8| 52.0|  3.4|    1|
|Q3  |     22| 51.4| 45.5|  3.3|    1|
|C4  |     19| 50.6| 42.1|  3.8|    1|
|R16 |     19| 51.5| 36.8|  4.0|    1|
|D17 |     17| 50.5| 41.2|  3.4|    1|
= D4

   A  B  C  D  E  F  G  H  J  K  L  M  N  O  P  Q  R  S  T
19 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 19
18 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 18
17 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 17
16 .  .  .  +  .  .  .  .  .  +  .  .  .  .  .  +  .  .  . 16
15 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 15
14 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 14
13 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 13
12 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 12
11 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 11
10 .  .  .  +  .  .  .  .  .  +  .  .  .  .  .  +  .  .  . 10
 9 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  9
 8 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  8
 7 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  7
 6 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  6
 5 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  5
 4 .  .  . [X] .  .  .  .  .  +  .  .  .  .  .  +  .  .  .  4
 3 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  3
 2 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  2
 1 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  1
   A  B  C  D  E  F  G  H  J  K  L  M  N  O  P  Q  R  S  T

(here the answer is D4)

At that point you can be confident that AQ is working on your computer.
I am the author of GoReviewPartner, a small software aimed at assisting reviewing a game of Go. Give it a try!
luigi
Lives in gote
Posts: 352
Joined: Wed Jul 06, 2011 12:01 pm
Rank: Low
GD Posts: 0
Location: Spain
Has thanked: 181 times
Been thanked: 41 times

Re: ymgaq released Windows version of his AQ v2.0.3 bot

Post by luigi »

pnprog wrote:
luigi wrote:It doesn't work for me. Is it 32-bit or 64-bit? Do I need to enter any commands on Sabaki?

The easiest way for you to check that your computer can run AQ is to run directly the executable file AQ.exe

I just tried that and got the following message (translated from Spanish by me):

This version of AQ.exe is not compatible with the Windows version that you are running. Check out the computer system information to see if you need an x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software editor.

Is your computer 64-bit?
User avatar
pnprog
Lives with ko
Posts: 286
Joined: Thu Oct 20, 2016 7:21 am
Rank: OGS 7 kyu
GD Posts: 0
Has thanked: 94 times
Been thanked: 153 times

Re: ymgaq released Windows version of his AQ v2.0.3 bot

Post by pnprog »

luigi wrote:Is your computer 64-bit?
Yes, 64 bits operating system, x64 processor.
I am the author of GoReviewPartner, a small software aimed at assisting reviewing a game of Go. Give it a try!
Vargo
Lives in gote
Posts: 337
Joined: Sat Aug 17, 2013 5:28 am
GD Posts: 0
Has thanked: 22 times
Been thanked: 97 times

Re: ymgaq released Windows version of his AQ v2.0.3 bot

Post by Vargo »

It works fine with Win10
install Sabaki
manage engines...
Add AQ
Add Leela replace "No argument" by "--gtp --noponder"
in AQ configuration file, -self match =off and -use pondering =off
and that's it, in sabaki, File, New, you choose your black engine, your white engine, and the game begins you can see at the same time the graphic board and the information (winrate etc)
Really fascinating...


THANK YOU to the authors of AQ, Leela and Sabaki !!!
Attachments
aq-l2.jpg
aq-l2.jpg (213.93 KiB) Viewed 17083 times
Last edited by Vargo on Mon Nov 13, 2017 8:27 am, edited 1 time in total.
luigi
Lives in gote
Posts: 352
Joined: Wed Jul 06, 2011 12:01 pm
Rank: Low
GD Posts: 0
Location: Spain
Has thanked: 181 times
Been thanked: 41 times

Re: ymgaq released Windows version of his AQ v2.0.3 bot

Post by luigi »

Vargo wrote:It works fine with Win10

I'm on Windows 7. I wonder if that's the problem. But it's more likely the 64-bit thing. My computer is 32-bit.

install Sabaki
manage engines...
Add AQ
Add Leela replace "No argument" by "--gtp --noponder"
in AQ configuration file, -self match =off and -use pondering =off
and that's it, in sabaki, File, New, you choose your black engine, your white engine, and the game begins you can see at the same time the graphic board and the information (winrate etc)

Leela works, but AQ doesn't. :sad:
tartaric
Dies in gote
Posts: 24
Joined: Tue Aug 29, 2017 11:59 am
GD Posts: 0
KGS: 4 dan
Has thanked: 1 time

Re: ymgaq released Windows version of his AQ v2.0.3 bot

Post by tartaric »

Can someone explain how to make this bot working on Linux please? Can you explain every steps cause I am a noob using it. Thanks.
splee99
Dies with sente
Posts: 101
Joined: Thu Nov 15, 2012 9:46 pm
Rank: KGS 2 D
GD Posts: 0
Has thanked: 2 times
Been thanked: 16 times

Re: ymgaq released Windows version of his AQ v2.0.3 bot

Post by splee99 »

Well, without GPU on my computer, AQ really can't handle the latest Leela 0.11.0. I run twogtp and gogui and time setting is about 15 seconds per move. Leela 0.11.0 is too strong.
Vargo
Lives in gote
Posts: 337
Joined: Sat Aug 17, 2013 5:28 am
GD Posts: 0
Has thanked: 22 times
Been thanked: 97 times

Re: ymgaq released Windows version of his AQ v2.0.3 bot

Post by Vargo »

I think you are right, AQ needs a good GPU to be strong.

In Crazy Stone Deep Learning, you set the level at 13k, 12k, ... up to 6 Dan and 7 Dan , a very nice feature.
It's a way to play consistently at a certain level, independently of the hardware.

I set up 4 games between AQ (20" per move) and CSDL 5 Dan (6 dan and 7 dan take some time, and I'm a bit impatient !)
Both programs were side by side, and I entered the moves "by mouse" alternatively, no GTP

H3 : CSDL5dan - AQ(w) AQ wins
H4 : CSDL5dan - AQ(w) AQ wins
H5 : CSDL5dan - AQ(w) AQ wins
H6 : CSDL5dan - AQ(w) CSDL wins

In the H5 game , AQ had a rather strange beginning, but managed to kill nicely a big black group.

Two questions :
1) Could someone (with a decent GPU and CSDL and AQ installed) set up something similar ?
2) What do you think it says about AQ's strength ?


I've used Sabaki for AQ's moves, without any argument.




AQ's configuration :

### Hardware setting ###
# Set number of 1-8 for 'gpu count'.
# 'thread count' is number of the total usable threads.
-gpu count =1
-thread count =8

### Time contorol setting ###
# If using 'time_left' command via GTP,
# set 'time controll' to 'off'.
-main time[sec] =0
-byoyomi[sec] =20
-time controll =on

### Thinking setting ###
-japanese rule =off
-komi =7.5
-symmetrical index =0
-mimic go =off
-never resign =off

### Others ###
-self match =off
-save log =on
-master =off
-worker =off
-pb path =pb
-resume sgf path =
-worker count =1
-use pondering =off
Attachments
H3456AQvsCS5d.zip
(3.42 KiB) Downloaded 621 times
splee99
Dies with sente
Posts: 101
Joined: Thu Nov 15, 2012 9:46 pm
Rank: KGS 2 D
GD Posts: 0
Has thanked: 2 times
Been thanked: 16 times

Re: ymgaq released Windows version of his AQ v2.0.3 bot

Post by splee99 »

I just upgraded my computer with a EVGA GTX 1050 video card. After run some games between AQ and Leela, I found AQ is indeed very strong. I set the time to 10 sec per move for AQ and no time limit for Leela (usually it uses 15 sec per move). AQ is able to beat Leela 0.11 with 2 handicaps. Also it appears that you have to use --nobook option for Leela to let it think more thoroughly in the beginning.
Maybe the strength of AQ comes from its large memory usage, which is about 3.8 Gbytes when it is thinking, compared to 80 Mbytes for Leela. Also the number of threads used by Leela can't be set higher than 2.
kdbaby1412
Dies in gote
Posts: 31
Joined: Mon Nov 14, 2016 1:49 pm
Rank: KGS 4 kyu
GD Posts: 0

Re: ymgaq released Windows version of his AQ v2.0.3 bot

Post by kdbaby1412 »

Run this AQ on my computer with Leela and test how these two are fight together.

First game: AQ (Black) vs Leela 11.0 (White) - B+Res (1:0)
Second game: AQ (White) vs Leela 11.0 (Black) - B+Res (1:1)
Third game: AQ (Black) vs Leela 11.0 (White) - B+Res (2:1)

Computer spec: AMD Ryzen 1700X, GTX 1060 3GB





Attachments
AQ vs Leela Game 3.sgf
(2.12 KiB) Downloaded 1624 times
AQ vs Leela game 2.sgf
(2.05 KiB) Downloaded 1608 times
AQ vs Leela Game 1.sgf
(2.47 KiB) Downloaded 1600 times
Vargo
Lives in gote
Posts: 337
Joined: Sat Aug 17, 2013 5:28 am
GD Posts: 0
Has thanked: 22 times
Been thanked: 97 times

Re: ymgaq released Windows version of his AQ v2.0.3 bot

Post by Vargo »

It seems very odd. .. I don't believe leela can win an even game.
You have 8 cores, how many threads do you have in the AQ config file ?
Pondering is off for both ?
kdbaby1412
Dies in gote
Posts: 31
Joined: Mon Nov 14, 2016 1:49 pm
Rank: KGS 4 kyu
GD Posts: 0

Re: ymgaq released Windows version of his AQ v2.0.3 bot

Post by kdbaby1412 »

Vargo wrote:It seems very odd. .. I don't believe leela can win an even game.
You have 8 cores, how many threads do you have in the AQ config file ?
Pondering is off for both ?


First game I switch pondering on, and Leela was unable to do anything.

Second and Third I turned pondering off.

All game only used 4 threads. I'm currently testing with 8 thread right now. AQ is kinda slow even though setting is 5s/move byo-yomi.

I thought AQ used sole GPU and does not rely on CPU that much?
Post Reply