katrain icon indicating copy to clipboard operation
katrain copied to clipboard

android version / katago compiling

Open Fly143 opened this issue 3 years ago • 16 comments

Would katrain consider releasing an Android version?Katrain features I like, I hope Android can also have.

Fly143 avatar Sep 03 '21 17:09 Fly143

Compiling katago for android is the hardest part, the available versions with analysis engine are quite old. If you want to look into ndk compiling that'd be a big help here.

sanderland avatar Sep 03 '21 21:09 sanderland

Compiling katago for android is the hardest part, the available versions with analysis engine are quite old. If you want to look into ndk compiling that'd be a big help here.

AlthoughI would like to help with this, I am not a relevant person and do not know the relevant knowledge. But I know that the author of badukaai has compiled the relevant data. Maybe you can try to communicate with him, but I don't know if he will be willing to provide it.

https://github.com/aki65/aki65.github.io @sanderland

Fly143 avatar Sep 04 '21 01:09 Fly143

I know part of the situation. It seems that you have communicated with him before, but he is not willing to provide it. I got a compiled copy of katago engine 1.9.1 from someone else. I took out his[.so] file. The author says it can be used directly. arm64-v8a.zip armeabi-v7a.zip

Fly143 avatar Sep 04 '21 03:09 Fly143

He wanted me to ask.He wanted me to ask if he could use katrain's UI? Because his UI is not very beautiful.

Fly143 avatar Sep 04 '21 03:09 Fly143

I know part of the situation. It seems that you have communicated with him before, but he is not willing to provide it. I got a compiled copy of katago engine 1.9.1 from someone else. I took out his[.so] file. The author says it can be used directly. arm64-v8a.zip armeabi-v7a.zip

Is this from aki65 or someone else? I think the former are without the analysis engine.

sanderland avatar Sep 04 '21 07:09 sanderland

I know part of the situation. It seems that you have communicated with him before, but he is not willing to provide it. I got a compiled copy of katago engine 1.9.1 from someone else. I took out his[.so] file. The author says it can be used directly. arm64-v8a.zip armeabi-v7a.zip

Is this from aki65 or someone else? I think the former are without the analysis engine.

This belongs to someone else, a friend of mine.

Fly143 avatar Sep 04 '21 07:09 Fly143

Doesn't belong to aki65.

Fly143 avatar Sep 04 '21 07:09 Fly143

This is an important piece of information. Just now, my friend told me that his version of katago engei 1.9.1 can only load weights like aki65. Cannot load normal weights.

Fly143 avatar Sep 04 '21 09:09 Fly143

This is an important piece of information. Just now, my friend told me that his version of katago engei 1.9.1 can only load weights like aki65. Cannot load normal weights.

That is certainly remarkable. They independently made the same modifications to the engine? Can they come here and comment?

sanderland avatar Sep 04 '21 19:09 sanderland

This is an important piece of information. Just now, my friend told me that his version of katago engei 1.9.1 can only load weights like aki65. Cannot load normal weights.

That is certainly remarkable. They independently made the same modifications to the engine? Can they come here and comment?

I already told him, and he said he would send you a private message at discord later. Please watch your chat list.

Fly143 avatar Sep 05 '21 00:09 Fly143

This is an important piece of information. Just now, my friend told me that his version of katago engei 1.9.1 can only load weights like aki65. Cannot load normal weights.

That is certainly remarkable. They independently made the same modifications to the engine? Can they come here and comment?

@sanderland Hi Sander, would you like to discuss it on discord? I've sent you a PM :)

joseki3691 avatar Sep 05 '21 01:09 joseki3691

Just an update on this. Between buildozer being a bit outdated and android studio being not easy to work with (hard crashes and emulators not starting), I've not managed to get it working yet.

sanderland avatar Oct 13 '21 19:10 sanderland

@joseki3691 @Fly143 I finally have it working, although it's rather a hack with LD_LIBRARY_PATH, but it crashes on loading models. Neither .bin.gz nor .tflite models work

terminating with uncaught exception of type StringError: Error loading or parsing model file katrain/models/15b.tflite: Model file should end with .txt, .bin, .txt.gz, .bin.gz, or possibly just .gz. (If it doesn't have one of these extensions already, it's probably the wrong file, renaming will probably NOT help).
After dedups: nnModelFile0 = katrain/models/10b.bin.gz useFP16 auto useNHWC auto
03-15 11:41:52.715  5860  6983 I python  : terminating with uncaught exception of type StringError: Error loading or parsing model file katrain/models/10b.bin.gz: conv1: bnlayer failed to parse num channels and epsilon and hasScale and hasBias

sanderland avatar Mar 15 '22 10:03 sanderland

Is there any new progress now?

Fly143 avatar Aug 25 '22 09:08 Fly143

Is there any new progress now?

I never got a reply from anyone here, or on discord, to the model issue.

sanderland avatar Aug 25 '22 10:08 sanderland

This is not good news.I'd love to help you too, but I don't have any knowledge of this at all

Fly143 avatar Aug 25 '22 12:08 Fly143

Are there any new developments now? Is the research still ongoing?

Fly143 avatar Jan 12 '24 17:01 Fly143

No, the probability of this ever happening is very low.

sanderland avatar Jan 13 '24 17:01 sanderland