LFM2.5-1.2B-Instruct for the Snapdragon 8 Gen 1 NPU — LiteRT-LM (untested)
LiquidAI/LFM2.5-1.2B-Instruct packaged for LiteRT-LM and compiled for the Hexagon NPU of the Snapdragon 8 Gen 1 (SM8450, Hexagon v69).
Not tested on a phone. This bundle was built on a PC as a side build and has never been run on a device: no speed, no answers, no load check. It may not load or may answer badly. Treat it as an experiment; the sibling repos below were all checked on a Galaxy S22 Ultra.
Where to use it: AutoDroid Studio on Google Play, an Android app that runs LiteRT-LM bundles on the phone's NPU and serves them through an OpenAI-style endpoint. To run it from a shell instead, see "Running it".
What it is
| File | lfm25-1.2b-ctx4096_sm8450.litertlm (1.31 GB) |
| Base model | LiquidAI/LFM2.5-1.2B-Instruct (16 layers: 10 short-convolution, 6 attention) |
| Context | 4096 tokens, shared by prompt and answer |
| On the NPU | all decoder layers, 5 QNN contexts in one process (1.18 GB) |
| Weights / activations | 8-bit / 16-bit |
| Graph | one decode graph, one token per call (prompt speed = decode speed) |
| QNN SDK | QAIRT 2.50.0.260828 |
The chat template is rewritten for LiteRT-LM's template engine (the model's own uses .get(),
which it does not handle), with <|endoftext|> added as a stop token and <think> … </think>
declared as the reasoning channel.
Running it
Besides the bundle you need the QAIRT 2.50 runtime (libQnnHtp.so, libQnnSystem.so,
libQnnHtpV69Stub.so, libQnnHtpV69Skel.so; not included), LiteRT's
libLiteRtDispatch_Qualcomm.so from the LiteRT commit your LiteRT-LM embeds, and
litert_lm_advanced_main from LiteRT-LM built for
Android arm64. The contexts total 1.18 GB, inside one process's DSP budget, so the stock dispatch
library should do.
cd /data/local/tmp/litert
export LD_LIBRARY_PATH=$PWD ADSP_LIBRARY_PATH=$PWD
./litert_lm_advanced_main --backend=npu --model_path=$PWD/lfm25-1.2b-ctx4096_sm8450.litertlm \
--litert_dispatch_lib_dir=$PWD --use_session --async=false \
--max_num_tokens=4096 --input_prompt_file=$PWD/prompt.txt
prompt.txt holds the rendered conversation (--use_session takes raw text):
<|startoftext|><|im_start|>user
What is the capital of France?<|im_end|>
<|im_start|>assistant
The stop token is <|im_end|>. The NPU executor is greedy: temperature, top-k and seed have no
effect.
More on running LiteRT-LM bundles on this chip (runtime versions, one NPU model per process, v69 workarounds) is on the cards of the tested siblings: Qwen3.5-2B, Gemma 4 E2B, LFM2.5-8B-A1B.
Limitations
- Untested on any device (above).
- Snapdragon 8 Gen 1 (SM8450, Hexagon v69) only.
- Text only. Tool calling was not tested.
- Built on a PC with a custom pipeline; an unofficial community build, provided as is, with no warranty.
Files
| File | SHA-256 |
|---|---|
lfm25-1.2b-ctx4096_sm8450.litertlm |
9dae8d26308ed718c97280745f490ed4e1c4b45c6a42a3266544146ef6746b9c |
Licence and credits
The weights derive from LiquidAI/LFM2.5-1.2B-Instruct
and are under the LFM Open License v1.0 (copy in LICENSE); read it before use, in
particular its terms on commercial use. Changes from the original: 8-bit weight / 16-bit activation
quantization, compilation for the Hexagon NPU, a rewritten chat template. Compiled with Google's
LiteRT / LiteRT-LM
tooling and Qualcomm AI Engine Direct. This is an unofficial community build, not affiliated with
Liquid AI, Google or Qualcomm.