It is currently Thu Mar 28, 2024 4:15 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 20 posts ] 
Author Message
Offline
 Post subject: KataGo on Mac
Post #1 Posted: Wed Oct 16, 2019 10:54 am 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
In the interest of saving time investigating this myself, I'll ask a noob question.

I compiled katago source on a mac, and I want to use it with lizzie. I saw the announcement here that I can use katago with lizzie:
https://github.com/featurecat/lizzie/releases/tag/0.7

I have the `katago` executable that I compiled locally - what do I do with it to get it working with lizzie?

_________________
be immersed


This post by Kirby was liked by: Bill Spight
Top
 Profile  
 
Offline
 Post subject: Re: KataGo on Mac
Post #2 Posted: Wed Oct 16, 2019 11:34 am 
Lives with ko
User avatar

Posts: 172
Location: Santa Barbara, CA
Liked others: 235
Was liked: 77
Universal go server handle: fireproof
Hmmm, I'm not sure -- the README is certainly sparse on details. For leelaz I simply made a symlink in the Lizzie directory. perhaps the same would work for KataGo?

Top
 Profile  
 
Offline
 Post subject: Re: KataGo on Mac
Post #3 Posted: Thu Oct 17, 2019 4:57 pm 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
Marcel Grünauer wrote:
I use macOS and have one directory containing Lizzie 0.7.1, and another directory where I've compiled KataGo and have downloaded the g104-b20c256 network. Let's call this second directory /path/to/katago

Then I edited Lizzie's config.txt:

Code:
"engine-command": "/path/to/katago/katago gtp -model /path/to/katago/g104-b20c256-s447913472-d241840887.txt.gz -config /path/to/katago/my.cfg"


where my.cfg is basically a copy of configs/gtp_example.cfg that comes with katago, but I've changed a few parameters, I've commented out "maxVisits = ..." so as to not limit the search and set:

Code:
numSearchThreads = 10
chosenMoveTemperatureEarly = 0.9


Brilliant! You saved me a ton of time, and things are working, now. I can see that I can tweak things in the config, too, which is great.

Image

Thanks a ton!

_________________
be immersed

Top
 Profile  
 
Offline
 Post subject: Re: KataGo on Mac
Post #4 Posted: Mon Oct 21, 2019 2:10 pm 
Lives in sente
User avatar

Posts: 866
Liked others: 318
Was liked: 345
I am pulling out my hair. I have deleted and reinstalled katago and given it its initial run. It seems to recognize my eGPU, so that's promising. But then it just stops there, and doesn't go back to a command line.
Quote:
...
[ 98%] Building CXX object CMakeFiles/katago.dir/main.cpp.o
[100%] Linking CXX executable katago
[100%] Built target katago
Bradys-MacBook-Pro-2018:cpp bradydaniels$ ./katago gtp -model /Users/bradydaniels/KataGo/cpp/models/g104-b20c256-s447913472-d241840887/model.txt.gz -config /Users/bradydaniels/KataGo/cpp/configs/my.cfg
KataGo v1.2
Using OpenCL Device 1: AMD Radeon Pro 580 Compute Engine (AMD) OpenCL 1.2
Loaded tuning parameters from: /Users/bradydaniels/.katago/opencltuning/tune_gpuAMDRadeonPro580ComputeEngine_x19_y19_c256_mv5.txt
Loaded model /Users/bradydaniels/KataGo/cpp/models/g104-b20c256-s447913472-d241840887/model.txt.gz
GTP ready, beginning main protocol loop


How do I know if it is working?

Per Marcel's idea, I created a folder called Katafiles, and placed the three key KataGo files (KataGo exectutable, model.txt.gz, and my.config) in it. I then placed that in the Lizzie folder. I am not 100% sure where / how Marcel inserted his text in the lizzie config file. Here is what I tried.

Quote:
{
"leelaz": {
"engine-preload-list": [
false,
false,
false,
false,
false,
false,
false,
false,
false
],
"engine-command-list": [
"engine-command": “katafiles/katago gtp -model katafiles/model.txt.gz -config katafiles/my.cfg",
"",
...


When I run lizzie configured like this it crashes."The Java JAR file "lizzie.jar" could not be launched. check the console for possible error messages."

If I delete katago from the config, lizzie runs fine. What am I doing wrong? How can I tell if katago is even working?

Thanks.

_________________
- Brady
Want to see videos of low-dan mistakes and what to learn from them? Brady's Blunders

Top
 Profile  
 
Offline
 Post subject: Re: KataGo on Mac
Post #5 Posted: Mon Oct 21, 2019 2:27 pm 
Lives in sente

Posts: 757
Liked others: 114
Was liked: 916
Rank: maybe 2d
wineandgolover wrote:
I am pulling out my hair. I have deleted and reinstalled katago and given it its initial run. It seems to recognize my eGPU, so that's promising. But then it just stops there, and doesn't go back to a command line.
Quote:
...
[ 98%] Building CXX object CMakeFiles/katago.dir/main.cpp.o
[100%] Linking CXX executable katago
[100%] Built target katago
Bradys-MacBook-Pro-2018:cpp bradydaniels$ ./katago gtp -model /Users/bradydaniels/KataGo/cpp/models/g104-b20c256-s447913472-d241840887/model.txt.gz -config /Users/bradydaniels/KataGo/cpp/configs/my.cfg
KataGo v1.2
Using OpenCL Device 1: AMD Radeon Pro 580 Compute Engine (AMD) OpenCL 1.2
Loaded tuning parameters from: /Users/bradydaniels/.katago/opencltuning/tune_gpuAMDRadeonPro580ComputeEngine_x19_y19_c256_mv5.txt
Loaded model /Users/bradydaniels/KataGo/cpp/models/g104-b20c256-s447913472-d241840887/model.txt.gz
GTP ready, beginning main protocol loop


How do I know if it is working?

"GTP ready, beginning main protocol loop" is a very good sign, seems like everything in KataGo is working - KataGo is saying it's ready to accept GTP protocol input, which is what all Go engines and GUIs speak. To give some example input, you can type "genmove b" <enter>, "genmove w" <enter>, in alternation to have it play black and white moves and "showboard" to have it show the state of the board.

At that point KataGo is fully working and any further problem you are encountering has nothing to do with it.

wineandgolover wrote:
Per Marcel's idea, I created a folder called Katafiles, and placed the three key KataGo files (KataGo exectutable, model.txt.gz, and my.config) in it. I then placed that in the Lizzie folder. I am not 100% sure where / how Marcel inserted his text in the lizzie config file. Here is what I tried.

Quote:
{
"leelaz": {
"engine-preload-list": [
false,
false,
false,
false,
false,
false,
false,
false,
false
],
"engine-command-list": [
"engine-command": “katafiles/katago gtp -model katafiles/model.txt.gz -config katafiles/my.cfg",
"",
...


When I run lizzie configured like this it crashes."The Java JAR file "lizzie.jar" could not be launched. check the console for possible error messages."

If I delete katago from the config, lizzie runs fine. What am I doing wrong? How can I tell if katago is even working?

Thanks.


Sounds like you should check the Java console like the error message says (I forget how to do that, but it should be Googleable). Probably the problem is that there is a syntax error in the config (maybe a missing or extra punctuation mark), so that Lizzie upon startup crashes when trying to parse the config?


This post by lightvector was liked by: wineandgolover
Top
 Profile  
 
Offline
 Post subject: Re: KataGo on Mac
Post #6 Posted: Mon Oct 21, 2019 3:01 pm 
Lives in sente
User avatar

Posts: 866
Liked others: 318
Was liked: 345
lightvector wrote:
"GTP ready, beginning main protocol loop" is a very good sign, seems like everything in KataGo is working - KataGo is saying it's ready to accept GTP protocol input, which is what all Go engines and GUIs speak. To give some example input, you can type "genmove b" <enter>, "genmove w" <enter>, in alternation to have it play black and white moves and "showboard" to have it show the state of the board.

At that point KataGo is fully working and any further problem you are encountering has nothing to do with it.


Thanks Lightvector. Indeed, I am excited that this seemed to work:
Quote:
Bradys-MacBook-Pro-2018:lizzie bradydaniels$ katafiles/katago gtp -model katafiles/model.txt.gz -config katafiles/my.cfg
KataGo v1.2
Using OpenCL Device 1: AMD Radeon Pro 580 Compute Engine (AMD) OpenCL 1.2
Loaded tuning parameters from: /Users/bradydaniels/.katago/opencltuning/tune_gpuAMDRadeonPro580ComputeEngine_x19_y19_c256_mv5.txt
Loaded model katafiles/model.txt.gz
GTP ready, beginning main protocol loop
genmove b
= Q16

genmove w
= D16




Per Marcel's idea, I created a folder called Katafiles, and placed the three key KataGo files (KataGo exectutable, model.txt.gz, and my.config) in it. I then placed that in the Lizzie folder. I am not 100% sure where / how Marcel inserted his text in the lizzie config file. Here is what I tried.

Quote:
{
"leelaz": {
"engine-preload-list": [
false,
false,
false,
false,
false,
false,
false,
false,
false
],
"engine-command-list": [
"engine-command": “katafiles/katago gtp -model katafiles/model.txt.gz -config katafiles/my.cfg",
"",
...


When I run lizzie configured like this it crashes."The Java JAR file "lizzie.jar" could not be launched. check the console for possible error messages."

If I delete katago from the config, lizzie runs fine. What am I doing wrong? How can I tell if katago is even working?

lightvector wrote:
Sounds like you should check the Java console like the error message says (I forget how to do that, but it should be Googleable). Probably the problem is that there is a syntax error in the config (maybe a missing or extra punctuation mark), so that Lizzie upon startup crashes when trying to parse the config?


I'm hoping somebody sees that I did something wrong in the Lizzie Config file. To see the console, it suggested I try to run the lizzie jar in the command line, but then it says "To use the "java" command-line too you need to install a JDK" which I think would open up a new can of worms.

Marcel? Kirby? How did I blunder the config?

Thanks again, Lightvector. I am getting closer!

_________________
- Brady
Want to see videos of low-dan mistakes and what to learn from them? Brady's Blunders

Top
 Profile  
 
Offline
 Post subject: Re: KataGo on Mac
Post #7 Posted: Mon Oct 21, 2019 4:15 pm 
Lives in sente
User avatar

Posts: 866
Liked others: 318
Was liked: 345
Marcel Grünauer wrote:
I don't use "engine-preload-list"; here is the top of my Lizzie config file:
...

Everything is the default except for the "engine-command" value.

Did you try to use absolute paths to katago, the model and the config? If so, try to run that line in the terminal; does KataGo start up ok?

Maybe even relative paths can work, but then you could try "./katafiles/..." instead of just "katafiles/...",

Also, try to set "print-comms" to "true"; does it print extra debugging output?


Hi Marcel, and thanks.

I don't even know what the engine preload is. I think this is just the way my config file came, and I don't think I've changed anything except this katago command.

When I run katago in the terminal it works fine, so that is good. (Note it takes nearly 10 seconds to load, could that be the problem?):
Quote:
Last login: Mon Oct 21 15:37:35 on ttys000
Bradys-MacBook-Pro-2018:~ bradydaniels$ /Users/bradydaniels/Desktop/Lizzie.0.7.Mac-Linux/Lizzie/katafiles/katago gtp -model /Users/bradydaniels/Desktop/Lizzie.0.7.Mac-Linux/Lizzie/katafiles/model.txt.gz -config /Users/bradydaniels/Desktop/Lizzie.0.7.Mac-Linux/Lizzie/katafiles/my.cfg
KataGo v1.2
Using OpenCL Device 1: AMD Radeon Pro 580 Compute Engine (AMD) OpenCL 1.2
Loaded tuning parameters from: /Users/bradydaniels/.katago/opencltuning/tune_gpuAMDRadeonPro580ComputeEngine_x19_y19_c256_mv5.txt
Loaded model /Users/bradydaniels/Desktop/Lizzie.0.7.Mac-Linux/Lizzie/katafiles/model.txt.gz
GTP ready, beginning main protocol loop
genmove b
= D4


I've modified my lizzie config file to mimic yours above (but with the command that works in my terminal), but I get the same crash as before. Here is my entire lizzie config file (sorry for length):
Code:
{
  "leelaz": {
    "max-analyze-time-minutes": 99999,
    "analyze-update-interval-centisec": 10,
    "network-file": "lznetwork.gz",
    "_comment": "note, network-file is obselete in Lizzie 0.7+, ignore network-file, kept for compatibility",
    "max-game-thinking-time-seconds": 2,
    "engine-start-location": ".",
    "avoid-keep-variations": 30,
    "engine-command": “/Users/bradydaniels/Desktop/Lizzie.0.7.Mac-Linux/Lizzie/katafiles/katago gtp -model /Users/bradydaniels/Desktop/Lizzie.0.7.Mac-Linux/Lizzie/katafiles/model.txt.gz -config /Users/bradydaniels/Desktop/Lizzie.0.7.Mac-Linux/Lizzie/katafiles/my.cfg",
    "print-comms": false,
    "show-lcb-winrate": false
  },
  "ui": {
    "comment-font-size": 0,
    "hold-bestmoves-to-sgf": true,
    "shadow-size": 100,
    "show-winrate": true,
    "autosave-interval-seconds": -1,
    "limit-best-move-num": 0,
    "stone-indicator-type": 1,
    "win-rate-always-black": false,
    "board-width": 19,
    "show-border": false,
    "show-move-number": false,
    "winrate-stroke-width": 3,
    "show-next-moves": true,
    "comment-node-color": [
      0,
      0,
      255
    ],
    "show-comment": true,
    "show-leelaz-variation": true,
    "show-bestmoves-by-hold": true,
    "min-playout-ratio-for-stats": 0.1,
    "fancy-stones": true,
    "resume-previous-game": false,
    "comment-font-color": [
      255,
      255,
      255
    ],
    "show-coordinates": false,
    "shadows-enabled": true,
    "show-katago-estimate-onsubboard": true,
    "show-variation-graph": true,
    "show-dynamic-komi": true,
    "gtp-console-style": "body {background:#000000; color:#d0d0d0; font-family:Consolas, Menlo, Monaco, 'Ubuntu Mono', monospace; margin:4px;} .command {color:#ffffff;font-weight:bold;} .winrate {color:#ffffff;font-weight:bold;} .coord {color:#ffffff;font-weight:bold;}",
    "katago-scoremean-alwaysblack": false,
    "katago-notshow-winrate": false,
    "minimum-blunder-bar-width": 3,
    "large-winrate": false,
    "confirm-exit": false,
    "show-katago-estimate-onmainboard": true,
    "scoremean-line-color": [
      255,
      0,
      255
    ],
    "show-katago-estimate": false,
    "show-best-moves": true,
    "board-color": [
      217,
      152,
      77
    ],
    "append-winrate-to-comment": false,
    "fancy-board": true,
    "color-by-winrate-instead-of-visits": false,
    "show-captured": true,
    "replay-branch-interval-seconds": 1,
    "panel-ui": false,
    "blunder-bar-color": [
      255,
      0,
      0,
      150
    ],
    "weighted-blunder-bar-height": false,
    "katago-estimate-mode": "small",
    "theme": "Default",
    "show-winrate-in-suggestion": true,
    "show-scoremean-in-suggestion": true,
    "new-move-number-in-branch": true,
    "winrate-line-color": [
      0,
      255,
      0
    ],
    "blunder-node-colors": [],
    "show-katago-boardscoremean": false,
    "show-playouts-in-suggestion": true,
    "limit-branch-length": 0,
    "blunder-winrate-thresholds": [],
    "board-position-proportion": 4,
    "show-blunder-bar": false,
    "only-last-move-number": 0,
    "board-height": 19,
    "winrate-miss-line-color": [
      0,
      0,
      178
    ],
    "show-status": true,
    "handicap-instead-of-winrate": false,
    "large-subboard": false,
    "comment-background-color": [
      0,
      0,
      0,
      200
    ],
    "dynamic-winrate-graph-width": false,
    "show-subboard": true,
    "show-katago-scoremean": true,
    "show-comment-node-color": false,
    "board-size": 19
  }
}

When I delete the engine-command line Lizzie / LZ works fine, and the its original language reappears.I am so confused.

I've read others say their config file was corrupted. Could this be it? Is there an easy way to download a clean one? Should I just delete lizzie and try to install it again?

Regarding setting print-comms to true, when lizzie runs (LZ only), there is now a black text box to the left that seems to update when I play moves, When it crashes because I try to use katago, the board and text box don't ever appear, it just crashes. I also can't find a log.

Getting closer! Thanks again.

_________________
- Brady
Want to see videos of low-dan mistakes and what to learn from them? Brady's Blunders

Top
 Profile  
 
Offline
 Post subject: Re: KataGo on Mac
Post #8 Posted: Tue Oct 22, 2019 10:45 am 
Lives in sente
User avatar

Posts: 866
Liked others: 318
Was liked: 345
Thanks Marcel,

This too failed, same crash as usual. So I guess its not the config file, but my lizzie install. I will delete everything Lizzie related and reinstall. Fingers crossed.

Again, I appreciate your patience and help, as well as that of others.

-Brady

_________________
- Brady
Want to see videos of low-dan mistakes and what to learn from them? Brady's Blunders

Top
 Profile  
 
Offline
 Post subject: Re: KataGo on Mac
Post #9 Posted: Tue Oct 22, 2019 10:50 am 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
With this release of Lizzie:
https://github.com/featurecat/lizzie/releases/tag/0.7

You can specify the engine and the commands through the graphical interface. That'll populate the engine-command in Lizzie's config.txt.

_________________
be immersed


This post by Kirby was liked by: wineandgolover
Top
 Profile  
 
Offline
 Post subject: Re: KataGo on Mac
Post #10 Posted: Tue Oct 22, 2019 2:58 pm 
Lives in sente
User avatar

Posts: 866
Liked others: 318
Was liked: 345
I am such an idiot. I deleted and reinstalled everything, and still had the same problem.

I tried to run the lizzie jar from the command line, but was told I needed jdk, so with trepidation, I installed it and used the terminal.

Got this feedback in terminal:

Code:
Bradys-MacBook-Pro-2018:lizzie bradydaniels$ java -jar Lizzie.jar
Exception in thread "main" org.json.JSONException: Expected a ',' or '}' at 377 [character 24 line 10]
   at org.json.JSONTokener.syntaxError(JSONTokener.java:505)
   at org.json.JSONObject.<init>(JSONObject.java:263)
   at org.json.JSONTokener.nextValue(JSONTokener.java:431)
   at org.json.JSONObject.<init>(JSONObject.java:244)
   at featurecat.lizzie.Config.loadAndMergeConfig(Config.java:131)
   at featurecat.lizzie.Config.<init>(Config.java:188)
   at featurecat.lizzie.Lizzie.main(Lizzie.java:31)


Counted lines and characters, and turns out I had a weird quotation mark in my config text.
Code:
"engine-command": “/Users

And this was enough to screw up the app. I assume that my Mac did an auto-format? I dunno. Anyway, I changed it and it's working now.

Kirby, installing LZ (hopefully using the GUI) is my next step, I didn't realize that installing katago the way would drop LZ, but it makes sense. I think Lizzie 0.71 should be able to switch between LZ and Katago, without relaunching, right? That'd be cool. Maybe minigo, too? edit - I have both LZ and Katago running now, using the engine config in the gui. yay!

Oh yeah, lightvector, you'll be pleased to know that when I check the Activity Monitor, KataGo is using my external GPU, as I hoped. The auto-tune worked without my forcing it. It's nowhere near as fast as LZ, but I will take a look at suggestions on how to optimize it.

Thanks to lightvector, Marcel, and Kirby. Your help is truly appreciated. I am delighted to finally have katago up and running!

_________________
- Brady
Want to see videos of low-dan mistakes and what to learn from them? Brady's Blunders


This post by wineandgolover was liked by: lightvector
Top
 Profile  
 
Offline
 Post subject: Re: KataGo on Mac
Post #11 Posted: Tue Oct 22, 2019 5:10 pm 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
This must be at least the third time I've seen bug due to different format of quotation mark. I have to remember that for when their are weird issues.

I believe you can switch back and forth between engines.

_________________
be immersed

Top
 Profile  
 
Offline
 Post subject: Re: KataGo on Mac
Post #12 Posted: Fri Nov 01, 2019 9:36 am 
Honinbo

Posts: 10905
Liked others: 3651
Was liked: 3374
I have a 2014 MacBook Pro, and this year is when I would usually get a new computer. However, looking around the web for what is available, it seems like a lot of things are changing about hardware to run neural nets, so it may be best to wait a while. One thing I am thinking of is getting an NVIDIA RTX 2080 Ti, which seems to be the thing to get these days, and using it as an external GPU. The Macbook has Thunderbolt, but not Thunderbolt 3. Apparently that can be handled with an adapter. If I go that route I have two concerns. First, I have only 16 GB of RAM, which might not be enough for good performance. I have seen 64 GB recommended. Second, one possible problem may be overheating the MacBook. OC, the external GPU will have its own cooling. But the one guy I found using an external GPU with a 2014 MacBook Pro had a silent video about his setup, which showed a temperature monitoring program on his machine.

I welcome any ideas and suggestions. Many thanks. :)

_________________
The Adkins Principle:
At some point, doesn't thinking have to go on?
— Winona Adkins

Visualize whirled peas.

Everything with love. Stay safe.


Last edited by Bill Spight on Fri Nov 01, 2019 9:40 am, edited 1 time in total.
Top
 Profile  
 
Offline
 Post subject: Re: KataGo on Mac
Post #13 Posted: Fri Nov 01, 2019 2:32 pm 
Lives in sente
User avatar

Posts: 866
Liked others: 318
Was liked: 345
Bill Spight wrote:
I have a 2014 MacBook Pro, and this year is when I would usually get a new computer. However, looking around the web for what is available, it seems like a lot of things are changing about hardware to run neural nets, so it may be best to wait a while. One thing I am thinking of is getting an NVIDIA RTX 2080 Ti, which seems to be the thing to get these days, and using it as an external GPU. The Macbook has Thunderbolt, but not Thunderbolt 3. Apparently that can be handled with an adapter. If I go that route I have two concerns. First, I have only 16 GB of RAM, which might not be enough for good performance. I have seen 64 GB recommended. Second, one possible problem may be overheating the MacBook. OC, the external GPU will have its own cooling. But the one guy I found using an external GPU with a 2014 MacBook Pro had a silent video about his setup, which showed a temperature monitoring program on his machine.

I welcome any ideas and suggestions. Many thanks. :)


From https://9to5mac.com/guides/egpu/

Quote:
eGPUs require a Thunderbolt 3 connection to work with Macs, meaning only Thunderbolt 3-enabled Macs are eligible.


Pretty sure this is for speed, not just a connection, which means an adaptor won’t do the trick, and you'd need a more recent MBP, sorry.

I bought the basic BlackMagic eGPU, and it works well with my 2018 MBP, using Thunderbolt 3. Regarding RAM, I have 8gb and it’s fine, but I’d get more given the choice.

One huge red flag about buying a new Mac for these bots, though. Apple has deprecated OpenCL support, meaning that it works fine now, but isn’t supported going forward, and future changes in either OpenCL or Mac OS could / will break it. I believe Apple doesn’t support CUDA either, all this in favor of their own Metal approach. This would be fine if anybody was developing these apps to support Metal, but I don’t think they are.

Even though I've built a highly Apple oriented ecosystem in my house, I suspect my next purchase might be a PC-gaming rig. :tmbdown:

For a portable solution, the current generation iPad Air, Mini, and Pro are all very fast using “A Master of Go”, as are the iPhone 10S's and 11’s. (Anything post 10)

I wish I had a better answer for you, Bill.

_________________
- Brady
Want to see videos of low-dan mistakes and what to learn from them? Brady's Blunders


This post by wineandgolover was liked by 2 people: Bill Spight, Bonobo
Top
 Profile  
 
Offline
 Post subject: Re: KataGo on Mac
Post #14 Posted: Fri Nov 01, 2019 4:05 pm 
Honinbo

Posts: 10905
Liked others: 3651
Was liked: 3374
Marcel, Brady,

Thank you both very much. :) It sounds like I need to get a gamer desktop, which was my first thought, anyway. Maybe I can get a nice one on sale this month, quien sabe? :)

_________________
The Adkins Principle:
At some point, doesn't thinking have to go on?
— Winona Adkins

Visualize whirled peas.

Everything with love. Stay safe.

Top
 Profile  
 
Offline
 Post subject: Re: KataGo on Mac
Post #15 Posted: Mon Nov 11, 2019 11:12 am 
Honinbo

Posts: 10905
Liked others: 3651
Was liked: 3374
Having failed in the spring, and doubtful that I'll find a good bargain GPU this month or next month, I am giving another try to implementing Lizzie an my 2014 MacBook Pro. Apple says my graphics card, NVIDIA GeForce GT 750M, is compatible with Open CL 1.2. But from the installation instructions it is unclear whether I have to do anything about Open CL or if it is taken care of. No problemo, or do I have to do something? Thanks. :)

_________________
The Adkins Principle:
At some point, doesn't thinking have to go on?
— Winona Adkins

Visualize whirled peas.

Everything with love. Stay safe.

Top
 Profile  
 
Offline
 Post subject: Re: KataGo on Mac
Post #16 Posted: Mon Nov 11, 2019 2:06 pm 
Honinbo

Posts: 10905
Liked others: 3651
Was liked: 3374
Thanks very much, Marcel. Hope I don't get the weird error message this time. :)

_________________
The Adkins Principle:
At some point, doesn't thinking have to go on?
— Winona Adkins

Visualize whirled peas.

Everything with love. Stay safe.

Top
 Profile  
 
Offline
 Post subject: Re: KataGo on Mac
Post #17 Posted: Tue Nov 12, 2019 2:40 am 
Dies with sente

Posts: 113
Liked others: 11
Was liked: 27
Rank: 1d
Universal go server handle: iopq
Bill Spight wrote:
I have a 2014 MacBook Pro, and this year is when I would usually get a new computer. However, looking around the web for what is available, it seems like a lot of things are changing about hardware to run neural nets, so it may be best to wait a while. One thing I am thinking of is getting an NVIDIA RTX 2080 Ti, which seems to be the thing to get these days, and using it as an external GPU. The Macbook has Thunderbolt, but not Thunderbolt 3. Apparently that can be handled with an adapter. If I go that route I have two concerns. First, I have only 16 GB of RAM, which might not be enough for good performance. I have seen 64 GB recommended. Second, one possible problem may be overheating the MacBook. OC, the external GPU will have its own cooling. But the one guy I found using an external GPU with a 2014 MacBook Pro had a silent video about his setup, which showed a temperature monitoring program on his machine.

I welcome any ideas and suggestions. Many thanks. :)


I tried using 16 GB with KataGo, but with normal-ish settings you never hit even close to that. I bought a new computer and it's 16GB for this reason.

I'm going to use an RTX 2060 for KataGo and Leela Zero. That should be enough, about half of the performance of 2080Ti, but for only $300.

FWIW, I built a new system completely for it instead of going the eGPU route. It only cost $900 total in a 5.5L case (okay, I still got a wireless keyboard and mouse, putting it to $1000, but that's going to be useful anyway). I'm still waiting for components, but my whole computer is the size of an eGPU enclosure and can run independently (I plan to SSH into it to run KataGo). I can connect it to the TV to install the OS.

With this solution it won't interfere with other programs (RAM-wise, CPU-wise, etc.), since KataGo uses the CPU heavily as well. I got an AMD 3600 for its ability to use 12 threads (should be good enough to feed even a V100) and a B450 motherboard since I don't need extra features from the newer motherboards (I hope it's flashed with a new BIOS, lol)

You can build a bigger one as well for more, since you probably will need better air flow in your case for beefier components


This post by iopq was liked by: Bill Spight
Top
 Profile  
 
Offline
 Post subject: Re: KataGo on Mac
Post #18 Posted: Tue Nov 12, 2019 10:10 am 
Honinbo

Posts: 10905
Liked others: 3651
Was liked: 3374
Bill Spight wrote:
I have a 2014 MacBook Pro, and this year is when I would usually get a new computer. However, looking around the web for what is available, it seems like a lot of things are changing about hardware to run neural nets, so it may be best to wait a while. One thing I am thinking of is getting an NVIDIA RTX 2080 Ti, which seems to be the thing to get these days


iopq wrote:
I'm going to use an RTX 2060 for KataGo and Leela Zero. That should be enough, about half of the performance of 2080Ti, but for only $300.

FWIW, I built a new system completely for it instead of going the eGPU route. It only cost $900 total in a 5.5L case (okay, I still got a wireless keyboard and mouse, putting it to $1000, but that's going to be useful anyway). I'm still waiting for components, but my whole computer is the size of an eGPU enclosure and can run independently (I plan to SSH into it to run KataGo). I can connect it to the TV to install the OS.


Many thanks, iopq! Very helpful. :D :bow:

One recommendation I have seen for an independent computer is to have 4 GPU slots, even if you only install one GPU, for later expansion. But instead of getting the pricey 2080 Ti, maybe three 2060 GPUs (plus fans) would provide better performance for comparable cost. What do you think? Thanks. :)

_________________
The Adkins Principle:
At some point, doesn't thinking have to go on?
— Winona Adkins

Visualize whirled peas.

Everything with love. Stay safe.

Top
 Profile  
 
Offline
 Post subject: Re: KataGo on Mac
Post #19 Posted: Tue Nov 12, 2019 4:22 pm 
Dies with sente

Posts: 113
Liked others: 11
Was liked: 27
Rank: 1d
Universal go server handle: iopq
It would work, but it may not scale perfectly on all programs. I personally haven't tried it, but there's been some reports on LZ issue tracker:

https://github.com/leela-zero/leela-zero/issues/2525

YMMV, it may still be better


This post by iopq was liked by: Bill Spight
Top
 Profile  
 
Offline
 Post subject: Re: KataGo on Mac
Post #20 Posted: Tue Nov 12, 2019 5:49 pm 
Honinbo

Posts: 10905
Liked others: 3651
Was liked: 3374
@ iopq

Many thanks. :) :bow: :bow: :bow:

_________________
The Adkins Principle:
At some point, doesn't thinking have to go on?
— Winona Adkins

Visualize whirled peas.

Everything with love. Stay safe.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group