Downloads · 30 days
51
19% of all-time downloads
PrismPhi/gemma4-e2b-q6a-qcs6490-litertlm-npu
gemma4-e2b-q6a-qcs6490-litertlm-npu is a text generation model from PrismPhi. Use it when you need the model to write or continue text. It is set up for litert-lm. The card lists the license as apache-2.0.
This repository hosts a .litertlm model container prepared for an unofficial Radxa Dragon Q6A / Qualcomm QCS6490 LiteRT-LM NPU route.
Downloads · 30 days
51
19% of all-time downloads
All-time downloads
263
Public
Repo size
5.2 GB
Likes
1
Public
Click a slice to open those files.
.litertlm2.6 GB · 100%
From the Hugging Face model README
This repository hosts a .litertlm model container prepared for an unofficial
Radxa Dragon Q6A / Qualcomm QCS6490 LiteRT-LM NPU route.
This is not an official Google, Radxa, or Qualcomm release.
gemma4_e2b_q6a_qcs6490_ctx1024_npu.litertlm0d72585954b3855df20735b666926b5617c0e4a43528be6c00abe06fa08123472.42.0.251225135753_193295497e7e28bd89c2b4e0d88e75035b045a21bc33faThis artifact is a Q6A/QCS6490-oriented LiteRT-LM .litertlm package derived
from Gemma 4 E2B / the LiteRT-LM Gemma4 artifact family. It is intended to be
used with the patched runtime and wrapper documented in the companion GitHub
repository:
https://github.com/PrismPhi/radxa-dragon-q6a-qcs6490-gemma4-litertlm-npu
The GitHub repository contains runtime patches, scripts, reproduction notes,
and license/distribution notes. It does not contain this .litertlm file.
Use the runtime build instructions there rather than a stock upstream
litert_lm_main.
This repository does not include:
libQnn*.solibLiteRtDispatch_Qualcomm.solibGemmaModelConstraintProvider.soUsers must provide Qualcomm runtime libraries from their own properly licensed Q6A/QAIRT/Qualcomm AI Runtime environment.
This artifact follows the Apache-2.0 licensing lineage of the published Gemma 4 E2B model and LiteRT-LM Gemma4 artifact family.
Relevant upstream references:
This repository includes LICENSE, NOTICE, and SHA256SUMS. If you use or
redistribute this artifact, also follow the upstream Gemma and LiteRT-LM terms
and any Qualcomm/Radxa licensing terms for runtime libraries you use locally.
Recommended Q6A layout:
~/q6a-gemma4-npu/
packages/
gemma4_e2b_q6a_qcs6490_ctx1024_npu.litertlm
runtime/
litert_lm_main_q6a_gemma4_npu
q6a-gemma4-npu
libGemmaModelConstraintProvider.so
libLiteRtDispatch_Qualcomm.so
libQnnHtp.so
libQnnHtpPrepare.so
libQnnHtpV68.so
libQnnHtpV68Skel.so
libQnnHtpV68Stub.so
libQnnSystem.so
After installing the companion GitHub repository and preparing runtime libraries:
printf '%s' 'MSsx44Gv77yf55+t44GP562U44GI44Gm' | base64 -d > /tmp/q6a_prompt.txt
/home/radxa/bin/q6a-gemma4-npu run \
~/q6a-gemma4-npu/packages/gemma4_e2b_q6a_qcs6490_ctx1024_npu.litertlm \
--backend npu \
--temperature 0 \
--prompt-file /tmp/q6a_prompt.txt
Expected answer:
2
Expected route marker:
Q6A_GEMMA4_NPU_ROUTE_SELECTED=ctx1024_direct_q6a_package
In the original Q6A project, the ctx1024 Direct NPU route was the practical default. It was faster than the longer ctx4096 Direct route for short and medium prompts, while the ctx4096 route remained useful as a long-context fallback. Full Gemma4 decode/verify QNN-context execution was investigated but was not adopted as the fastest practical route.
See the companion GitHub repository for detailed benchmark notes.
This artifact and its documentation were prepared as part of an experimental Codex-assisted engineering project. The result should be treated as an unofficial community artifact for reproducibility and further experimentation.