K2-Horizon-3.7B for Android: GPU and CPU, LiteRT-LM
IFM/K2-Horizon-3.7B packaged for LiteRT-LM in one bundle that runs on the phone's GPU or CPU.
Where to use it: AutoDroid Studio on Google Play, an Android app that runs this bundle on the phone and serves it through an OpenAI-style endpoint. To run it from a shell instead, see "Running it".
| File | Runs on | Context | Decode | Size |
|---|---|---|---|---|
k2-horizon-3.7b-ekv4096_gpu.litertlm |
GPU or CPU, arm64 phone with the RAM | 4096 | 5.38 tok/s (GPU), 3.52 tok/s (CPU) | 2.89 GB |
Measured on a Samsung Galaxy S22 Ultra (Snapdragon 8 Gen 1), LiteRT-LM CLI. Text only.
Thinking mode works: the model reasons in <ifm|think> … </ifm|think> and then answers.
What it is
- Weights: GPTQ int4 fully-connected layers, with int8 embedding rows. Int4 embeddings broke this model (half sentences, "I need to thinking about the the"), so the stock int4 recipe is not used.
- Two graphs: prefill of 128 tokens, and decode.
- fp32 activations: the bundle asks the GPU for them (
prefer_activation_type=fp32). The first token produces very large activations, more than fp16 handles comfortably. - Context 4096. An 8192 build took free memory from 5.1 to 1.1 GB in 8 seconds and rebooted the S22 Ultra on the GPU. It is not published.
- Chat template rewritten for LiteRT-LM's template engine, without tools and without the
original's checks (it raises on an assistant turn that has no thinking field, which LiteRT-LM's
history never has). The bundle declares one reasoning channel,
<ifm|think>..</ifm|think>, because the model closes its lower-effort blocks with that tag about as often as with their own. - Conversion to the Llama form used for export was checked against the original (cosine 0.99999).
Measured (Galaxy S22 Ultra)
| GPU | CPU | |
|---|---|---|
| Decode | 5.38 tok/s | 3.52 tok/s |
| Load | 13.8 s (CLI), 37 s in the app | 19.7 s |
| First token | 2.8 s | not recorded |
| RAM | ~5.4 GB | ~1.5 GB, plus the XNNPACK cache file, mapped |
On the GPU all nodes were delegated. Free memory went from 7.9 to 2.5 GB and Android killed 3 cached apps to make room, so close other work first. 17 × 23 came out as 391 on both backends.
Benchmarks in AutoDroid Studio
GPU, thinking on, reasoning budget 1024, using the app's own benchmark suites:
| Suite | Score | Passed | Speed | First token | Time |
|---|---|---|---|---|---|
| quick | 100 | 6/6 | 4.16 tok/s | ||
| tier_t2 | 85.96 | 20/28 | 3.92 tok/s | 7.1 s | 60 min |
tier_t2's failures: math_trains, reason_direction, code_roman, code_balanced, safe_ssn and
3 agent tasks. Free memory stayed at 2.15 GB or more throughout. These suites are small; they are
not a comparison with the scores on the original model's card.
Running it
./litert_lm_advanced_main --backend=gpu --model_path=$PWD/k2-horizon-3.7b-ekv4096_gpu.litertlm \
--use_session --async=false --max_num_tokens=4096 --input_prompt_file=$PWD/prompt.txt
--backend=cpu runs the same file. Tested with the litert_lm_advanced_main CLI built from
LiteRT-LM and with the litertlm-android 0.18.0 AAR.
Prompt format
With --use_session the prompt file holds the rendered conversation:
<|ifm|im_start|>user
What is 17 * 23?<|ifm|im_end|><|ifm|im_start|>assistant
<ifm|think>
Through LiteRT-LM's Conversation API the template inside the bundle does this. With
enable_thinking false it writes a closed, empty block (<ifm|think>\n</ifm|think>) and the model
answers directly. A reasoning_effort of medium or low opens <ifm|think_fast> or
<ifm|think_faster>. The stop token is <|ifm|im_end|>.
Limitations
- Follow-up questions in the app: with litertlm-android 0.18.0, a follow-up after an answer that reasoned climbed about 45 MB/s until Android killed the app. AutoDroid Studio's fix (2026-11-05) rebuilds the follow-up from history instead. If the app closes on your second message, update it. Other apps on that library with its default conversation settings can hit the same thing.
- Measured on one phone, the 12 GB S22 Ultra. Phones with less memory were not tested, and the GPU needs about 5.4 GB free.
- Text only. The template has no tool section.
- Int4 weights: quality is below the full model, by an amount not measured beyond the suites above.
- Built on a PC with a custom pipeline; an unofficial community build, provided as is, with no warranty.
Files
| File | SHA-256 |
|---|---|
k2-horizon-3.7b-ekv4096_gpu.litertlm |
d9aca7c7e7a85e5d6478e7f4ecd0b5f58a2d87a3312bb50024ae7bff97b652f2 |
The tokenizer, chat template and generation metadata are inside the .litertlm.
Licence and credits
The weights derive from IFM/K2-Horizon-3.7B and are
under the Apache License 2.0 (copy in LICENSE). Changes from the original: GPTQ int4
quantization with int8 embeddings, conversion to a Llama-form LiteRT graph with a 4096 context, and a
rewritten chat template. Compiled with Google's LiteRT /
LiteRT-LM tooling. This is an unofficial community
build, not affiliated with IFM or Google.