Android + OpenCL implementation — runs on-device on non-flagship phones (Adreno 6xx)

#11
by a8nova - opened

Hi! I wanted to share an Android + OpenCL implementation of LFM2.5-350M, in case anyone wants to run it on a phone:

It's tuned and tested on Adreno 6xx GPUs — the GPU class in mid-range and older Android phones (verified on a 2020 Motorola Razr / Adreno 620) — and should run on most arm64 Android phones with OpenCL, though the optimizations are Adreno-specific. It ships in fp16, int8, and Q4: on the Adreno 620, Q4 decodes at ~14.5 tok/s (+27% over fp16) with a ~0.8 s TTFT. The same port also runs LFM2.5-230M, which hits ~20.4 tok/s in Q4.

Hope it's useful — happy to answer questions!

Sign up or log in to comment