moonshine-streaming on Samsung Galaxy S26+ (LiteRT)

Ported and verified on a real Samsung Galaxy S26+ by nnopt.dev β€” AI agents that port and optimize models for the hardware you ship.

The model is moonshine-ai/moonshine-streaming by Moonshine AI, and it is theirs. The LiteRT port in this repository is nnopt's work: nnopt job NN-466F3D.

Device Samsung Galaxy S26+, Android 16
Chip Snapdragon 8 Elite Gen 5 (SM8850)
Processor NPU (Hexagon HTP v81) for every model graph; CPU for WAV I/O, chunking, argmax, detokenizing
Runtime LiteRT 2.3.1 (Qualcomm dispatch), QNN 2.50.0
Precision FP16 on the HTP (fp32-exported graphs, AOT-compiled; fp16 cross/self KV cache I/O)
Modality speech -> text (streaming ASR)
Weights included: models/*.tflite (4 graphs AOT-compiled for SM8850 by nnopt, Moonshine v2 Streaming Medium) and models/vocab.bin; Qualcomm's QNN runtime is fetched
nnopt job NN-466F3D (port)
Folder sm8850-npu-fp16/

Verified results

nnopt built the folder from a clean copy, deployed it to the device and checked it against the model's reference code on hidden inputs. The full report is report.html in the folder.

  • Passed. Word error rate vs reference 0.0% (bar at most 2.0%, original precision)
  • full check passed
  • no speculative decoding
  • Real-time factor 0.076 (faster than real time)
  • Latency 436 ms
  • Decode 40.3 tokens/s
  • Load time 286 ms
  • Peak memory 623 MB
  • 4 graphs, NPU 100%

Use it

mkdir moonshine-streaming-LiteRT && cd moonshine-streaming-LiteRT
curl -fsSL https://huggingface.co/nnopt-dev/moonshine-streaming-LiteRT/resolve/main/config.json -o config.json
hf download nnopt-dev/moonshine-streaming-LiteRT --include "sm8850-npu-fp16/*" --local-dir .
cd sm8850-npu-fp16
bash fetch.sh
bash deploy.sh /data/local/tmp/moonshine     # adb: runner, LiteRT, QNN libs, 4 NPU graphs
adb push demo/input.wav /data/local/tmp/moonshine/in.wav
adb shell 'cd /data/local/tmp/moonshine && sh ./run.sh --audio in.wav --out out.json --metrics m.json'

Needs: A Snapdragon SM8850 phone (Galaxy S26+), adb, ~1.3 GB free storage; curl and unzip on the host. Rebuilding the runner (bash build.sh) fetches the NDK itself.

README.md in the folder has every flag, the requirements and the known limits; REPRO.md (where present) reproduces the measurements.

License

MIT, like moonshine-ai/moonshine-streaming: see LICENSE and NOTICE. LiteRT in vendor/litert/ is Apache 2.0. Qualcomm's QNN runtime is not here: fetch.sh gets it from Maven Central, under Qualcomm's license.

Made with nnopt

nnopt is a platform where AI agents port, optimize and benchmark a model for a specific device. They write the runtime code on the real device, and a locked verification kit then checks the result against the model's own reference code before anything ships. Every number on this page comes from that check.

Want your model on your device? Start a job at nnopt.dev.

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for nnopt-dev/moonshine-streaming-LiteRT

Finetuned
(1)
this model