/ Модель

Характеристики

Контекст
262 144 токена
Параметры
3,7 млрд
Лицензия
Apache 2.0
Архитектура
qwen3 · dense
Базовая модель
Qwen3-4B-Instruct-2507
Опубликована
29 сен 2026

Qwen3-4B-Instruct-2507-QNN-Genie

Генерация текстаТекст → текст3 профессии

Квантованная сборка Qwen3-4B-Instruct-2507 для генерации текста и диалогов на Android-устройствах Qualcomm через QNN Genie и Hexagon HTP.

290скачиваний за 30 дней0лайковвеса обновлены29 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Это сборка Qwen3-4B-Instruct-2507, подготовленная для Qualcomm QNN и запуска через Genie на встроенном Hexagon HTP. Артефакт использует архитектуру Qwen3ForCausalLM и квантизацию w4a16; исходная модель содержит около 3,7 млрд параметров. Это конвертированная и перепакованная версия исходной модели, а не новая модель. Лицензия — Apache-2.0.

Сборка предназначена для диалогов и генерации текста по инструкциям непосредственно на Android-устройстве с Qualcomm Snapdragon и поддерживаемым HTP, без обращения к облаку. README описывает интерфейс GenieDialog и утилиту genie-t2t-run; также упоминается интеграция с приложением DroidLLM. В метаданных указана поддержка английского и китайского языков, чата и интерфейса вызова инструментов.

Важное ограничение этой сборки — контекст до 4096 токенов, хотя у исходной модели заявлено до 262 144 токенов. Бинарные файлы рассчитаны на Hexagon V79 и штатно ориентированы на Snapdragon 8 Elite; работа на V81 проверена автором, но совместимость с другими поколениями и версиями QAIRT не гарантируется. Для запуска нужны Qualcomm Genie, QNN HTP runtime и QAIRT 2.45.0 или новее; устройства без Qualcomm HTP не поддерживаются.

Сценарии применения

  • диалоговый помощник без облачного подключения
  • генерация ответов на инструкции на Android-устройстве
  • локальный запуск языковой модели на Snapdragon с Hexagon HTP
  • интеграция генерации текста в приложение через Qualcomm Genie

Ограничения

Сборка ограничена контекстом 4096 токенов и требует Qualcomm Snapdragon с Hexagon HTP, Genie и совместимого QNN HTP runtime. Бинарники предназначены для V79; работа на V81 проверена, но совместимость с другими архитектурами и версиями SDK не гарантируется.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Qwen3-4B-Instruct-2507 — QNN / Genie (w4a16, Hexagon HTP)

中文说明:README.zh-CN.md

A Qualcomm QNN (AI Engine Direct) build of Qwen3-4B-Instruct-2507, quantized to w4a16 and compiled into a Hexagon HTP context binary split across four shards, packaged for the Qualcomm Genie runtime (GenieDialog API / genie-t2t-run CLI).

It runs entirely on the on-device NPU — no cloud, no CPU fallback path.

This is a converted / repackaged artifact, not a new model. Every capability and every limitation of the upstream checkpoint carries over. Only the execution format changed.

Specifications

FieldValue
Base modelQwen/Qwen3-4B-Instruct-2507
ArchitectureQwen3ForCausalLM — 36 layers, hidden 2560, 32 heads / 8 KV heads, head dim 128, intermediate 9728
RuntimeQualcomm Genie (QNN dialog pipeline)
BackendQnnHtp — Hexagon Tensor Processor
Quantizationw4a16 (4-bit weights, 16-bit activations)
Context length4096 tokens (as shipped; see Context length below)
Vocab size151,936
TokenizerQwen2Tokenizer, tokenizer.json (BPE)
Chat templateQwen3 `<
RoPE theta5,000,000
Weight format4 × HTP context binary (.bin)
Weights total3,172,663,296 bytes (≈ 3.17 GB / 2.95 GiB)
Repository size3,184,834,343 bytes (≈ 2.97 GiB / 3.18 GB) across 19 files
Built withQualcomm AI Stack (QAIRT) 2.45.0.260326154327
Source SoCSM8750 (Snapdragon 8 Elite), soc_model 69, DSP arch V79
LicenseApache-2.0 (inherited from the base model)

Repository contents

FileSize (bytes)SHA-256Purpose
qwen3_4b_instruct_2507_w4a16_part_1_of_4.bin778,178,5601a4c55906f129ef6dc7a6258872e0ef44efcec56889a74bf11e5581ac44fa443HTP context binary, shard 1/4
qwen3_4b_instruct_2507_w4a16_part_2_of_4.bin664,707,07296e9cf9d06e417b9f4a68b9d5a93d6af9ee2a5dbe5413ae59c1992ab6efa253bHTP context binary, shard 2/4
qwen3_4b_instruct_2507_w4a16_part_3_of_4.bin664,784,89684488e66202f7957ee71af8b3818a7e8c2e10d75e08b8c3f40bb6fe8cb6219f6HTP context binary, shard 3/4
qwen3_4b_instruct_2507_w4a16_part_4_of_4.bin1,064,992,768a17471cf42dffacefe0586cde481d1191d78a1588f04e47ce84fd0ec9a8404aeHTP context binary, shard 4/4
genie_config.json1,717040629c03da424d76eebfea865753c5a28c97687af5d5a146344f1cbaa979923Main Genie config — dialog / context / sampler / tokenizer / engine (backend + model)
tokenizer.json11,422,654aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4Tokenizer vocabulary and merges
tokenizer_config.json8,1960f7963638a00d3ae66091154dc735b8af2375adb93328b6c9b6e3cf4b5525917Tokenizer metadata + Qwen3 chat_template
config.json7282280d1eb824dbfdc912090c6bbb4062e368f54075081153aa61dbffe638a1dcbUpstream model config (reference only; Genie does not read it)
metadata.json689,93045a53956ff518c933fc3602ae1d094ad3a348d5ee96a5cd790ef7f6d9a781d31Compilation metadata: per-shard tensor names/shapes/dtypes and quantization scales, plus the Genie chat-template fragments
htp_backend_ext_config.json21709d3b915c784116f96fa4d612d8c1f2fac0e32952e5eb2f1a8f79bf48a9cda94HTP backend extension config — pins soc_model 69 / dsp_arch V79
text-generator.json1,725d0507f2f7160bd3b5e86b880215e2c6f15bc9a7861603024b0a2076621ff3abaGenie node config for the genie-app pipeline
genie-app-script.txt51892e0892c403b1d98c6d331510294a43a174a455895cd83ac2230f69a6fb44a9cgenie-app pipeline script (node wiring + sample input)
sample_prompt.txt15953a0f03fee319c52532ebcaae2a04c03278f712bd10b0e5e1b6c0aaa345ee80eSample prompt in Qwen3 chat format
tool-versions.yaml2781bf4ff69aa21421f46dec061cceb441c7200a05187ffa1ec3fc5751ff3577b6QAIRT version used for compilation
LICENSE11,339a1aee62aebd7c746d56c31a8cc25f9c165b9452a4385686b9b935b9f4939fd1aApache-2.0 full text
NOTICE4,685f0b51e6b733ed9506f0478316c24d6bd830eeaec847a14def486fc5d0121c95fCopyright and third-party attribution
.gitattributes659bed8b8661123d1ba2cb997a1f1443c147dd13cf722e8bd2a83c331a26c381d61Git LFS rules for the shards (not a model artifact)

Requirements

ItemRequirement
HardwareSnapdragon SoC with Hexagon Tensor Processor (HTP). Non-Qualcomm devices are unsupported.
SoC / DSP archSee the table in Compatibility below — the shipped binaries target V79.
RuntimeQualcomm Genie + QNN HTP runtime, QAIRT 2.45.0 or newer (validated against 2.50.0).
Device librarieslibGenie.so, libQnnHtp.so, libQnnSystem.so, libQnnHtpV{arch}Stub.so, libQnnHtpNetRunExtensions.so, and the matching unsigned skels libQnnHtpV{arch}Skel.so / libCalculator_skel.so. These are part of the QAIRT SDK and are not included here.
Storage≈ 3.2 GB free for the model directory.
ADSP_LIBRARY_PATHMust include the directory holding libQnnHtpV{arch}Skel.so. The skel is not loaded by the app linker — host-side adsprpc finds it via the search path. Omitting this is the most common cause of GenieDialog_create failed (it fails after ~300 ms with that single log line).

Compatibility — read before filing a bug

  1. The shipped binaries are V79. htp_backend_ext_config.json pins soc_model: 69 / dsp_arch: "v79" (SM8750 / Snapdragon 8 Elite), and all four context binaries were compiled for Hexagon V79.

  2. Verified working on V81 hardware. This exact artifact was loaded and generated text on an SM8850 (Snapdragon 8 Elite Gen 5, soc_model 87, DSP arch V81) device. Loading a V79 context binary on a V81 DSP worked, but cross-architecture safety is not guaranteed by Qualcomm — treat it as empirically verified on SM8850, not as an officially supported configuration.

  3. Override backend.extensions. The bundled htp_backend_ext_config.json targets SM8750. On any other SoC, point backend.extensions at an extension config matching your device (or use the official minimal form that omits soc_model/dsp_arch and lets the backend probe the device). The DroidLLM app does this automatically — see Using with DroidLLM.

  4. SoC → DSP arch reference (per the QAIRT support table):

    SoCsoc_modelHTP archNotes
    SM8850 — Snapdragon 8 Elite Gen 587V81Verified with this artifact
    SM8750 — Snapdragon 8 Elite69V79Native target of this build
    SM8650 — Snapdragon 8 Gen 357V75Not tested
    SM8550 — Snapdragon 8 Gen 243V73Not tested

    For any SoC other than SM8750/SM8850, the four .bin shards would have to be recompiled for the matching arch from the upstream checkpoint. Just editing the JSON is not sufficient.

  5. Context length is 4096 tokens as shipped. The engine was compiled for context sizes 512 / 1024 / 2048 / 3072 / 4096 (metadata.json → genie.context_lengths), and the bundled genie_config.json selects 4096. Although the upstream model advertises 262,144 positions, this build cannot exceed 4096 — prompts + generation beyond that are outside the compiled graph.

  6. Cross-version QAIRT usage. Compiled with QAIRT 2.45.0 and successfully run under a 2.50.0 runtime. QNN context binaries are not guaranteed to be forward/backward compatible across SDK releases; validate on your own SDK before depending on it.

  7. n-threads is inert. The HTP schedules its own work; the n-threads: 3 field in the config is ignored on this backend. Sampling parameters do apply (they are handled by the Genie dialog sampler, not by a CPU sampler).

Measured performance

Single-run acceptance measurement of this artifact on real hardware. Not a benchmark — numbers vary with thermals, clock state, prompt length and generation length.

MetricValue
DeviceHONOR BKQ-AN80, SM8850 (Snapdragon 8 Elite Gen 5), Android 17
Model load6,710 ms
TTFT (prompt → first token)77 ms
Decode throughput97.25 tok/s
Tokens generated132
Total generation time1,467 ms
Process RSS325 MB
Crashes0
Backend runtimeQAIRT 2.50.0

Quick start

A. Genie CLI (genie-t2t-run)

Runs the model without any app, and is the only place where Genie prints its own [ERROR]/[WARN] lines (the Genie SDK logs through an internal callback that Android apps cannot receive).

# 1. Prepare device-side libraries (adjust ARCH to your device: 79, 81, ...)
QAIRT=/path/to/qairt                       # e.g. .../qairt/2.50.0.260828
ARCH=79                                    # SM8750 = 79, SM8850 = 81
DEV=//data/local/tmp/qnnval

adb shell mkdir -p $DEV
adb push "$QAIRT/bin/aarch64-android/qnn-platform-validator" \
         "$QAIRT/bin/aarch64-android/genie-t2t-run" \
         "$QAIRT/lib/aarch64-android/libGenie.so" \
         "$QAIRT/lib/aarch64-android/libQnnHtp.so" \
         "$QAIRT/lib/aarch64-android/libQnnSystem.so" \
         "$QAIRT/lib/aarch64-android/libQnnHtpV${ARCH}Stub.so" \
         "$QAIRT/lib/aarch64-android/libQnnHtpV${ARCH}CalculatorStub.so" \
         "$QAIRT/lib/aarch64-android/libQnnHtpNetRunExtensions.so" \
         "$QAIRT/lib/hexagon-v${ARCH}/unsigned/libQnnHtpV${ARCH}Skel.so" \
         "$QAIRT/lib/hexagon-v${ARCH}/unsigned/libCalculator_skel.so" \
         $DEV/
adb shell "chmod 755 $DEV/*"

# 2. Confirm what your device actually reports (do this before trusting any table)
adb shell "cd $DEV && LD_LIBRARY_PATH=$DEV ADSP_LIBRARY_PATH=$DEV \
  ./qnn-platform-validator --backend dsp --coreVersion --testBackend"
# Expected: "Core Version of the backend DSP: Hexagon Architecture Vxx" + "Passed."

# 3. Push the model directory
adb push . $DEV/model

# 4. In the config, set three paths to their absolute device paths:
#    backend.extensions      -> $DEV/model/htp_backend_ext_config.json  (or a config built for your SoC)
#    tokenizer.path          -> $DEV/model/tokenizer.json
#    model.binary.ctx-bins[] -> $DEV/model/<each .bin>

# 5. Run (the first run reads 3.1 GB of context binaries — allow 2+ minutes, it is not hung)
adb shell "cd $DEV && LD_LIBRARY_PATH=$DEV ADSP_LIBRARY_PATH=$DEV \
  ./genie-t2t-run -c model/genie_config.json -p 'Hi'; echo EXIT=\$?"

Two failure modes worth knowing in advance:

  • Missing libQnnHtpNetRunExtensions.so → [WARN] Failure in initializing backend extensions followed by a segmentation fault (EXIT=139). The load failure is not reported as an error by the library — the crash happens inside GenieDialog_create before the model is read.
  • Missing ADSP_LIBRARY_PATH → GenieDialog_create failed after ~300 ms, with nothing else in the log.

B. Android app (DroidLLM)

DroidLLM is an Android app that runs this artifact through the same Genie runtime, and handles the two pitfalls above for you:

  • sets ADSP_LIBRARY_PATH to the app's nativeLibraryDir before touching the Genie SDK;
  • bundles the required QNN libraries (including libQnnHtpNetRunExtensions.so);
  • rewrites backend.extensions in genie_config.json to an HTP config matching Build.SOC_MODEL (SM8850 → V81, SM8750 → V79, SM8650 → V75, SM8550 → V73), so the SM8750-targeted config shipped here is replaced on the fly.

Import: Models → + → Genie → select the model directory. A directory is accepted when it contains genie_config.json, tokenizer.json and at least one *.bin.

Prompt format

Qwen3 chat markup. The default system prompt used during validation was You are a helpful AI assistant.

<|im_start|>system
You are a helpful AI assistant<|im_end|>
<|im_start|>user
What is gravity? Keep the answer under ten words.<|im_end|>
<|im_start|>assistant

Role prefixes/suffixes are also stored in metadata.json under genie.chat_template, which is what the Genie-based integrations read.

Sampling defaults

From the shipped genie_config.json:

ParameterValue
temp0.8
top-k40
top-p0.95
seed42
n-threads3 (ignored on HTP)

seed: 42 is a fixed default from the compilation toolchain — change it if you need varied sampling, or set seed: -1 / omit it in your own config.

How this was produced

Converted from the upstream Qwen/Qwen3-4B-Instruct-2507 checkpoint with the Qualcomm QNN toolchain (Qualcomm AI Hub export pipeline; QAIRT 2.45.0.260326154327, recorded in tool-versions.yaml):

  1. weights quantized to w4a16;
  2. the graph compiled to Hexagon HTP context binaries for context sizes 512–4096, emitted as four shards;
  3. Genie dialog/node configs generated, with metadata.json recording per-tensor shapes, dtypes and quantization scales.

No fine-tuning, no weight modification, no merge was performed. Only quantization and compilation.

License, attribution and disclaimer

Model weights: Apache-2.0, © Alibaba Group / Qwen team. This repository redistributes a derived artifact of Qwen/Qwen3-4B-Instruct-2507 under the same license; the full license text is in LICENSE, and attribution is in NOTICE. If you redistribute this artifact or a product built on it, keep LICENSE and NOTICE with it.

Qualcomm SDK: the QNN / Genie runtime (QAIRT SDK, including libQnnHtp*.so and the Hexagon skels) is proprietary Qualcomm software and is not distributed in this repository. You must obtain it from Qualcomm and comply with the Qualcomm AI Stack license. This repository contains only the compiled model artifact.

No affiliation. This is an independent conversion. It is not affiliated with, endorsed by, or supported by Alibaba Group or Qualcomm Technologies, Inc. "Qualcomm", "Snapdragon" and "Hexagon" are trademarks of Qualcomm Technologies, Inc.

Disclaimer. Provided as-is, without warranty of any kind, express or implied. It is an experimental on-device artifact: device compatibility is limited to the configurations described above, output quality is that of the base model (including its biases and failure modes), and nothing here is suitable for safety-critical use. Verify on your own hardware before relying on it.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3ForCausalLM
Ревизия весов
034019a

0 моделей