KataGo icon indicating copy to clipboard operation
KataGo copied to clipboard

Improve KataGo performance on M2 Mac

Open trunterzx opened this issue 1 year ago • 10 comments

I just got a new M2 Mac recently and I tried running KataGo on it through Lizzie. The good thing is it ran without changing any configurations from my Intel Mac. However, I saw that the visits/s hovered at around 600~800 only.

Is there a way to improve the KataGo performance on my M2 Mac? I'm using the OpenCL option.

I saw another thread about converting the KataGO to OpenML. Is it faster than OpenCL?

trunterzx avatar Nov 28 '23 18:11 trunterzx

Try this v1.13.2-coreml1 which implements the Core ML backend for KataGo.

Replace xcodebuild by xcodebuild -derivedDataPath DerivedData/KataGo if DerivedData is not found.

ChinChangYang avatar Nov 29 '23 12:11 ChinChangYang

Try this v1.13.2-coreml1 which implements the Core ML backend for KataGo.

Replace xcodebuild by xcodebuild -derivedDataPath DerivedData/KataGo if DerivedData is not found.

Do you have plan to merge your coreml implementation to main repository?

taeuk-works avatar Aug 04 '24 13:08 taeuk-works

Metal, the GPU framework, is compatible with KataGo’s design, and I plan to merge the Metal backend into the main branch of KataGo. However, CoreML, which uses the ANE, is not compatible with KataGo’s design. Therefore, I don’t have any plans to merge the CoreML backend into the main branch.

ChinChangYang avatar Aug 04 '24 14:08 ChinChangYang

@ChinChangYang Then, may I expect your CoreML fork maintained in the future?

taeuk-works avatar Aug 04 '24 15:08 taeuk-works

Yes. The latest update can be found in #865.

ChinChangYang avatar Aug 04 '24 22:08 ChinChangYang

@ChinChangYang Thanks for your works. hope that I can contribute your repo someday.

taeuk-works avatar Aug 05 '24 05:08 taeuk-works