Leela - software bazat pe retele neurale

User avatar
MihaiL
Posts: 281
Joined: Mon Jan 19, 2015 12:24 pm
Rang: 2d

Partida 1 intre versiunile de Leela

Postby MihaiL » Fri May 19, 2017 9:39 pm

La mine versiunea veche de Leela a batut-o pe versiunea noua :D

[+] Partida intre versiunile de Leela
(;EV[Inter Leela Game]RO[]DT[2017-05-19]
PB[Leela 0.9.0]BR[8d]
PW[Leela 0.10.0]WR[8d]
KM[6.5]RE[B+R]

;B[qd];W[cc];B[cp];W[pq];B[oc];W[eq];B[qo];W[qi];B[ql];W[qf]
;B[mq];W[op];B[jq];W[qp];B[po];W[rp];B[dq];W[ep];B[dn];W[hq]
;B[io];W[gn];B[dl];W[oo];B[ol];W[pk];B[qk];W[qj];B[ok];W[lp]
;B[iq];W[hp];B[mp];W[ko];B[jo];W[mo];B[lq];W[oj];B[nj];W[ni]
;B[mj];W[mi];B[li];W[lj];B[ml];W[kj];B[lh];W[mg];B[kl];W[jh]
;B[lg];W[mf];B[lf];W[me];B[le];W[mc];B[ld];W[md];B[if];W[jl]
;B[jm];W[jk];B[im];W[hh];B[gf];W[fh];B[ec];W[de];B[ef];W[df]
;B[ee];W[dg];B[lc];W[mb];B[oe];W[of];B[rf];W[re];B[qe];W[rd]
;B[rc];W[rg];B[pf];W[qg];B[og];W[ng];B[lb];W[la];B[ka];W[ma]
;B[qb];W[kb];B[ib];W[cj];B[ck];W[bj];B[dj];W[di];B[ei];W[ej]
;B[dk];W[dh];B[ro];W[nr];B[sp];W[sq];B[so];W[rr];B[cb];W[dc]
;B[db];W[eb];B[fb];W[ed];B[fc];W[fd];B[gd];W[bk];B[bl];W[bm]
;B[am];W[cm];B[bn];W[er];B[dr];W[ds];B[cs];W[es];B[br];W[lm]
;B[ll];W[km];B[kp];W[lo];B[hl];W[nm];B[nl];W[mk];B[nk];W[rm]
;B[qm];W[rj];B[rl];W[pn];B[pl];W[qn];B[rn];W[pp];B[sm];W[ip]
;B[jp];W[fl];B[ij];W[jj];B[ii];W[hk];B[gm];W[fm];B[ik];W[ih]
;B[ji];W[ki];B[kh];W[dm];B[cn];W[em];B[cl];W[mr];B[bc];W[bd]
;B[bb];W[ja];B[kc];W[jf];B[je];W[jb];B[jc];W[ia];B[ha];W[ka]
;B[hc];W[oh];B[nf];W[pg];B[of];W[ob];B[pb];W[od];B[nd];W[nc]
;B[pd];W[ne];B[od];W[il];B[kk];W[gl];B[hm];W[hj];B[lk];W[lr]
;B[be];W[kr];B[kq];W[ek];B[bg];W[ir];B[bh];W[bi];B[cd])


User avatar
MihaiL
Posts: 281
Joined: Mon Jan 19, 2015 12:24 pm
Rang: 2d

Partida 2 intre versiunile de Leela

Postby MihaiL » Sat May 20, 2017 6:44 pm

Leela 0.9.0 a castigat si a doua partida, asa ca cel putin pana acum pare paradoxal mai tare decat noua versiune (0.10.0).
Desi sunt tare plicticoase cateodata softurile astea, va dau, pentru referinta, si a doua (si ultima) partida (imi propusesem sa le fac sa joace 2 din 3)

E drept ca aici am o intrebare de neofit: are vreo legatura cu faptul ca versiunea 9 e mai veche pe PC-ul meu ? Adica in timpul asta a invatat ceva din experienta cu mine/partidele date de mine spre studiu sau...? Nu mi-e clar cum merg lucrurile cu retelele astea "neurale" :(

[+] Partida 2 intre versiunile de Leela
(;EV[Inter Leela Game]RO[2]DT[2017-05-20]
PB[Leela 0.10.0]BR[8d]
PW[Leela 0.9.0]WR[8d]
KM[6.5]RE[W+R]
;B[qc];W[ce];B[dc];W[dp];B[dh];W[fe];B[gc];W[pp];B[cd];W[de]
;B[ed];W[ee];B[hd];W[fh];B[dj];W[cl];B[fj];W[hh];B[hj];W[jh]
;B[jj];W[pd];B[qd];W[pf];B[od];W[oe];B[pc];W[nd];B[pe];W[of]
;B[nc];W[md];B[mc];W[ld];B[lj];W[el];B[gl];W[eq];B[nq];W[qn]
;B[pr];W[qq];B[kq];W[iq];B[ql];W[np];B[mq];W[qj];B[ol];W[oj]
;B[ml];W[qr];B[rn];W[ro];B[pn];W[qo];B[fn];W[dn];B[gq];W[gp]
;B[fp];W[fq];B[hp];W[gr];B[go];W[hq];B[ip];W[mo];B[ln];W[lo]
;B[ko];W[mn];B[lm];W[bj];B[cq];W[cp];B[bp];W[br];B[bq];W[cr]
;B[dq];W[dr];B[ep];W[do];B[fr];W[gp];B[rf];W[gq];B[mf];W[lg]
;B[mg];W[mh];B[lf];W[nh];B[kg];W[kh];B[lh];W[li];B[ki];W[lg]
;B[ne];W[ji];B[kj];W[je];B[lh];W[mi];B[if];W[jf];B[jg];W[ig]
;B[kd];W[ke];B[le];W[jd];B[kc];W[lg];B[kf];W[ie];B[jc];W[he]
;B[bd];W[fd];B[fc];W[dd];B[ec];W[jp];B[kp];W[jo];B[in];W[jq]
;B[jn];W[be];B[dk];W[ci];B[dl];W[dm];B[bk];W[bl];B[di];W[ad]
;B[bc];W[ac];B[ab];W[ae];B[bb];W[rg];B[qg];W[qf];B[rh];W[re]
;B[sg];W[qe];B[rj];W[rk];B[qi];W[qk];B[ph];W[sj];B[ri];W[pd]
;B[oc];W[ng];B[lh];W[se];B[sf];W[lg];B[lc];W[fm];B[gm];W[rl]
;B[oq];W[ch];B[op];W[oo];B[qm];W[rm];B[dg];W[ck];B[cg];W[bg]
;B[cj];W[bi];B[ii];W[ih];B[jr];W[ir];B[kr];W[rb];B[on];W[po]
;B[nn];W[no];B[fg];W[gg];B[gi];W[hi];B[ij];W[qb];B[rc];W[sc]
;B[pb];W[qa];B[qs];W[rs];B[ps];W[pq];B[or];W[nm];B[om];W[pl]
;B[mm];W[pm];B[rr];W[rq];B[ss];W[pa];B[oa];W[id];B[ic];W[gd]
;B[hc];W[eg];B[eh];W[ff];B[fi];W[ek];B[gh];W[fg];B[lh];W[hf]
;B[fk];W[ok];B[nl];W[mj];B[si];W[sk];B[cf];W[bf];B[rd];W[sd]
;B[mk];W[oi];B[pi];W[lp];B[lq];W[js];B[ks];W[is];B[pj];W[ej]
;B[ei];W[io];B[ho];W[nk];B[sq];W[sp];B[rs];W[lg];B[cm];W[bm]
;B[lh];W[em];B[lg];W[df];B[pe];W[nf];B[me];W[sr];B[pd];W[sq]
;B[fl];W[en])

User avatar
Admin
Site Admin
Posts: 401
Joined: Sat Jan 17, 2015 6:30 pm
Rang: 1d

Re: Leela - software bazat pe retele neurale

Postby Admin » Sat May 20, 2017 10:05 pm

Salut,

Interesant dar si cam trist in acelasi timp. Probabil ca ceva nu a mers cum trebuie. Totusi daca poti, continua seria. As fi curios care ar fi scorul dupa 10 meciuri.

De pe site-ul dezvoltatorului am luat urmatorul paragraf:
"This "neural network" has been trained with more than 32 million positions from high level go games and taught to predict which moves a pro player would most likely consider. In 19x19 games the engine will query this deep "neural network" during the search to focus on the most critical variations."

Inteleg ca antrenarea nu o face decat la el acasa, ca sa zic asa :)
Iulian Lungu

User avatar
MihaiL
Posts: 281
Joined: Mon Jan 19, 2015 12:24 pm
Rang: 2d

Discutie cu creatorul Leela - despre "netbench"

Postby MihaiL » Sun May 21, 2017 12:38 am

Admin wrote:Salut,

Interesant dar si cam trist in acelasi timp. Probabil ca ceva nu a mers cum trebuie. Totusi daca poti, continua seria. As fi curios care ar fi scorul dupa 10 meciuri.

De pe site-ul dezvoltatorului am luat urmatorul paragraf:
"This "neural network" has been trained with more than 32 million positions from high level go games and taught to predict which moves a pro player would most likely consider. In 19x19 games the engine will query this deep "neural network" during the search to focus on the most critical variations."

Inteleg ca antrenarea nu o face decat la el acasa, ca sa zic asa :)


In final m-am prins si eu cum e cu "antrenarea".

Apropo de cealalta problema, fiind curios, i-am scris creatorului lui Leela, Gian-Carlo Pascutto, care mi-a raspuns ceva f. interesant, poate va ajuta si pe voi.
Your GPU is several generations old [NN asa e !] and it was a rather low end one even when it was new. It's less than 1/10th the speed of a modern mid-range card. It's possible that it is so weak that it is slower than your Core i5 CPU and ends up slowing Leela down rather than speeding it up. In this case, Leela 0.10 OpenCL would be more seriously affected, as it does more computations on the GPU. It might be worth switching to the regular version if you are currently using the GPU Accelerated (or maybe, decelerated :-) one.

It's possible to verify this by downloading the "engine only" zip from my website, launching "Leela0100GTP.exe" and entering "netbench" in the window you get, then repeating the process with "Leela0100GTP_OpenCL.exe". The speed numbers for the latter should be several times the ones for the former. If they're close or even slower, it's not worth using the OpenCL version.


Intr-adevar masurand pe cele doua variante de program (simpla si OpenCL) din fiecare versiune, am obtinut urmatoarele date:
Leela090GTP 19 / 187
Leela090GTP_OpenCL 47 / 196
Leela0100GTP 65 / 286
Leela0100GTP_OpenCL 53 / 158

[n-am reusit sa inteleg cum functioneaza tag-ul "spreadsheet" :( ]

Prima cifra e numarul de predictii/sec, a doua numarul de evaluari/sec.

Adica in cazul versiunii 0.9.0, da e mai util sa utilizez placa grafica (adica executabilul cu OpenCL in coada), pentru versiunea 0.10.0 e mai util sa utilizez versiunea simpla, care trece prin procesor. La altii poate fi altfel.
Atentie insa ! Eu folosesc si un program care masoara temperatura procesorului. Varianta 0.10.0 o fi mai puternica dar incalzeste puternic CPU-ul si deci trebuie atentie si la hardware (la astia cu PC-uri amarate, cei cu ultima generatie nu au probleme :D)

User avatar
MihaiL
Posts: 281
Joined: Mon Jan 19, 2015 12:24 pm
Rang: 2d

Partida 3 (si ultima) intre versiunile (alese optimal) de Leela

Postby MihaiL » Sun May 21, 2017 2:14 am

Da, creatorul lui Leela a avut dreptate.
Am pus sa joace (prin CPU) Leela 0100.exe cu Leela 090_OpenCL.exe (prin GPU).

Versiunea 10 s-a dovedit mult mai tare, vezi partida mai jos:
[+] Partida 3 intre versiunile de Leela
(;EV[Inter Leela Game]RO[3]DT[2017-05-21]
PB[Leela 0.10.0]BR[8d]
PW[Leela 0.9.0 OpenCL]WR[8d]
KM[6.5]RE[B+R]

;B[qd];W[dp];B[dc];W[ce];B[pp];W[od];B[dh];W[qc];B[cd];W[jc]
;B[de];W[pd];B[qe];W[rc];B[qi];W[nq];B[pn];W[pr];B[qq];W[kq]
;B[cn];W[fp];B[bp];W[cq];B[dl];W[qg];B[pg];W[pf];B[ph];W[qf]
;B[lp];W[lq];B[np];W[pj];B[qj];W[pl];B[nj];W[nl];B[lk];W[ll]
;B[kl];W[lm];B[km];W[kn];B[ln];W[kk];B[lj];W[jn];B[jk];W[mn]
;B[lo];W[jl];B[kj];W[jm];B[kk];W[qk];B[ok];W[pk];B[nh];W[qn]
;B[qo];W[pm];B[rn];W[on];B[oq];W[po];B[mq];W[ro];B[qp];W[rm]
;B[jp];W[kp];B[ko];W[jo];B[jq];W[jr];B[ir];W[kr];B[iq];W[mr]
;B[nr];W[ls];B[js];W[hp];B[is];W[ks];B[gr];W[fr];B[gq];W[gp]
;B[fq];W[er];B[eq];W[dq];B[fs];W[dr];B[hc];W[je];B[le];W[lc]
;B[he];W[no];B[mp];W[hq];B[ns];W[hr];B[ms];W[cj];B[ck];W[ej]
;B[ci];W[eh];B[dj];W[eg];B[jf];W[dg];B[cg];W[df];B[cf];W[ee]
;B[dd];W[kf];B[jg];W[ke];B[kg];W[lf];B[fk];W[gd];B[hd];W[ge]
;B[gf];W[ff];B[gg];W[ed];B[fg];W[ek];B[el];W[ei];B[fc];W[fd]
;B[gc];W[di];B[bj];W[ch];B[bh];W[gj];B[hk];W[gk];B[gl];W[fj]
;B[hj];W[fl];B[fm];W[gm];B[fk])

User avatar
liviuo
Posts: 8
Joined: Mon Jan 19, 2015 12:21 pm
Rang: 4 d

Re: Leela - software bazat pe retele neurale

Postby liviuo » Sun May 21, 2017 9:54 am

Leela 0100.exe 2000 predictions in 64.78 seconds -> 30 p/s
Leela 090_OpenCL.exe 2000 predictions in 4.45 seconds -> 449 p/s

Cam de 15X mai rapid pe GPU

Procesor AMD FX 6350
Placa Video AMD RX 370

Interesante partidele.

User avatar
Admin
Site Admin
Posts: 401
Joined: Sat Jan 17, 2015 6:30 pm
Rang: 1d

Re: Leela - software bazat pe retele neurale

Postby Admin » Sun May 21, 2017 3:00 pm

Am incercat si eu sa ce ati facut voi, dar m-a izbit antivirusul cu mesajul ca mi-a bagat Leela0100GTP_OpenCL.exe in carantina si ca a detectat PUA/IStartSurf(Cloud) in el
Si cu link-ul asta in raport:
https://www.avira.com/en/support-virus-lab-product?vdl%5Bsq%5D=PUA%2FIStartSurf&noLog=1

Citind despre PUA inteleg ca poate sa nu cauzeze probleme insa un semnal de alarma consider ca tot trebuie tras. Decizia o ia fiecare.

PS: am executat apoi si Leela090GTP_OpenCL.exe. Se pare ca versiunea asta e ok.

La mine statistica pentru v.0.9 este:
Leela GPU (NVidia GeForce GTX 950M): netbench
1000 predictions in 6.33 seconds -> 157 p/s
1000 evaluations in 4.31 seconds -> 232 p/s

Leela CPU (Intel core i7 @ 2.60GHz): netbench
1000 predictions in 42.77 seconds -> 23 p/s
1000 evaluations in 4.38 seconds -> 228 p/s
Iulian Lungu

User avatar
Dan.A
Posts: 460
Joined: Mon Jan 19, 2015 12:58 pm
Location: Bucuresti
Rang: 3Kyu

Re: Leela - software bazat pe retele neurale

Postby Dan.A » Sun May 21, 2017 10:03 pm

Si eu am avut o alerta in win10 cu Leela0100GTP_OpenCL.exe . Pare o alarma falsa. Au mai fost discutii de gen si la unele versiuni mai vechi si se pare ca s-a ajuns la aceeasi concluzie.

Versiunea de windows nu are nici o alerta. Si personal sunt multumit de imbunatatiri, in special de grafic(Score Histogram window) si de posibilitatea de a vedea pe tabla ramificatiile din variatii la analiza. Se pare ca si navigarea cu "analyse on" merge mai fluent decat in ver veche.

P.S. Multzam lu Mihai pentru comanda netbench (e extrem de utila pe viitor)
P.S.S. Stie careva in versiunea GTP comanda pentru a selecta timpul (30min default pentru mine e muuult prea mult) :(
"There are times when the only choices you have left are the bad ones."

User avatar
Dan.A
Posts: 460
Joined: Mon Jan 19, 2015 12:58 pm
Location: Bucuresti
Rang: 3Kyu

Leela 0.11.0 beta 1

Postby Dan.A » Thu Sep 07, 2017 9:44 pm

Pentru cine e interesat a aparut versiunea Leela 0.11 Beta 1. aceasta versiune poate fi gasita aici : https://www.sjeng.org/leela-beta.html

Pe viitor la acest link veti putea gasi versiuni de leela in stadiul de testare inainte de a fi lansate oficial. Cel putin asa banuiesc.
"There are times when the only choices you have left are the bad ones."

User avatar
MihaiL
Posts: 281
Joined: Mon Jan 19, 2015 12:24 pm
Rang: 2d

Netbench - ultimele 3 versiuni de Leela

Postby MihaiL » Fri Sep 08, 2017 9:03 pm

M-am gandit ca intereseaza pe cei 2-3 cititori ai forumului ( :D )...

Am pus toate 6 versiunile de Leela pe care le am in Sabaki si le-am dat netshare

Acestea sunt scorurile:

Leela090GTP 19 / 169
Leela090GTP_OpenCL 47 / 192
Leela0100GTP 62 / 273
Leela0100GTP_OpenCL 47 / 187
Leela0110GTP (beta 1) 63 / 187
Leela0110GTP_OpenCL (beta1 ) 25 / 171


Ca o concluzie personala (legata de configuratia mea...modesta): cea mai puternica ramane (la mine) versiunea 10 pe procesor, insa nu ma joc cu ea pentru ca incalzeste f.f. tare procesorul
- dintre versiunile pe GPU 9 si 10 sunt cam la fel
- versiunea 11 pe GPU este la mine (nu stiu de ce, probabil le "calibreaza" pentru cele mai noi placi grafice) scoate scoruri f.f. scazute. O sa ma joc cu ea la paritate sa vad daca asa e indeed :D


Return to “GO-ul si IT-ul/AI-ul”

Who is online

Users browsing this forum: No registered users and 1 guest

cron