Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

GenieX

> AI 编程
Open source

Run frontier LLMs and VLMs locally on Qualcomm devices across NPU, GPU, and CPU with a few lines of code

8.3K stars0 likes0 views
WebsiteGitHub

About

Run frontier LLMs and VLMs locally on Qualcomm devices across NPU, GPU, and CPU with a few lines of code


GenieX is an on-device Gen AI inference runtime for Qualcomm devices. Bring almost any GGUF model from Hugging Face — or a pre-compiled bundle from Qualcomm AI Hub — and run it locally on the Hexagon NPU, Adreno GPU, or CPU in a few lines of code. One C SDK underneath, exposed through a CLI, Python, Kotlin/Java, Docker, and an OpenAI-compatible server. It is the community version of Qualcomm GENIE.

Supported platforms

GenieX runs only on Qualcomm Snapdragon. Find your platform, then jump straight to the interface you want to use.

Platform Example devices Jump to a quickstart
Windows ARM64 (Compute) Snapdragon X · X Elite CLI · Python · Local server
Android (Mobile) Snapdragon 8 Elite · 8 Elite Gen 5 Android SDK
Linux ARM64 (IoT) Dragonwing QCS9075 CLI · Docker · Python

No device on hand? Spin up a remote session on Qualcomm Device Cloud.


Quickstart

Pick your interface below. Each one follows the same three steps — Install, Run, and Docs — and shows both runtimes: a GGUF model from Hugging Face (llama_cpp) and a pre-compiled bundle from Qualcomm AI Hub (qairt, NPU).

CLI

Install

  • Windows ARM64 — download the installer, run it, then open a new terminal.
  • Linux ARM64 — one line, no sudo:
    bash
    curl -fsSL https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-geniex/install.sh | sh

Run — chat with any model in one line (drag in an image for VLMs):

bash
# GGUF from Hugging Face → llama.cpp (NPU / GPU / CPU)
geniex infer google/gemma-4-E4B-it-qat-q4_0-gguf

# Pre-compiled bundle from Qualcomm AI Hub → Qualcomm AI Engine Direct (NPU)
geniex infer ai-hub-models/Qwen2.5-VL-7B-Instruct

# GGUF from Docker Hub (https://hub.docker.com/u/ai) → llama.cpp (NPU / GPU / CPU)
geniex infer docker.io/ai/gemma3

Docs — Install · Quickstart · Command reference

Python

Install

bash
pip install geniex

Run — mirrors Hugging Face transformers (from_pretrained() → .generate()):

python
# GGUF from Hugging Face → llama.cpp
from geniex import AutoModelForCausalLM

model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen3.5-2B-GGUF", precision="Q4_0")

messages = [{"role": "user", "content": "What is 2+2?"}]
prompt = model.tokenizer.apply_chat_template(messages, add_generation_prompt=True)

for chunk in model.generate(prompt, max_new_tokens=256, stream=True):
    print(chunk, end="", flush=True)

model.close()
python
# Pre-compiled bundle from Qualcomm AI Hub → Qualcomm AI Engine Direct (NPU)
from geniex import AutoModelForCausalLM

model = AutoModelForCausalLM.from_pretrained("ai-hub-models/Qwen3-4B")

messages = [{"role": "user", "content": "What is 2+2?"}]
prompt = model.tokenizer.apply_chat_template(messages, add_generation_prompt=True)

for chunk in model.generate(prompt, max_new_tokens=256, stream=True):
    print(chunk, end="", flush=True)

model.close()

Docs — Install · Quickstart · API reference

OpenAI-compatible server

Install — ships with the CLI (install above).

Run — pull any model (GGUF or Qualcomm AI Hub bundle), then serve an OpenAI-compatible API:

bash
geniex pull ai-hub-models/Qwen3-4B-Instruct-2507
geniex serve   # serves http://127.0.0.1:18181/v1
bash
curl http://127.0.0.1:18181/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "ai-hub-models/Qwen3-4B-Instruct-2507",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Point any OpenAI client at http://127.0.0.1:18181/v1 — no code changes.

Docs — Local server guide

Android (Kotlin / Java)

Install — add the SDK to your app module's build.gradle.kts:

kotlin
dependencies {
    implementation("com.qualcomm.qti:geniex-android:0.3.1")
}

Run — fastest path is the sample app (chat UI, model picker for GGUF + Qualcomm AI Hub bundles, VLM support):

The Android demo app lives in qualcomm/ai-hub-apps. Clone it, open the sample app in Android Studio, and hit Run.

Docs — Install · Quickstart · API reference

Docker

Install

bash
docker pull docker.io/qualcomm/geniex:latest

Run — the container wraps the CLI, so geniex infer … works exactly as above.

Docs — Docker guide

C / C++ SDK

Install — link against the single C header sdk/include/geniex.h; every other interface is a thin wrapper over it.

Docs — sdk/README.md · notes/build.md


Models

GenieX has two runtimes so you get broad model coverage and peak Snapdragon performance in one stack. Both LLMs and VLMs are supported.

llama.cpp (llama_cpp) Qualcomm AI Engine Direct (qairt)
Get models from Hugging Face (any GGUF) Qualcomm AI Hub (pre-compiled)
Format GGUF Per-chipset bundle
Compute units NPU · GPU · CPU NPU only
Best for Bringing your own GGUF Highest NPU performance

For llama.cpp, pick the Q4_0 precision when prompted — it has the best Hexagon NPU support. See the Models guide → for the full list, precisions, and how to run a local model.

Contributing

Contributions are welcome! Before opening a PR, please read CONTRIBUTING.md for branch naming, commit / PR title format, pre-commit checks, and the FFI-update rule for public SDK headers.

️ Build the CLI, SDK, or Python bindings notes/build.md
▶️ Run & select compute units / pull models notes/run.md
️ Release — SemVer tags, channels, HTP signing notes/release.md
All developer docs docs/README.md

Community & Contact

Questions, ideas, or want to show off what you built? Come say hi.

  • Slack — ask questions and chat with the community in real time.
  • GitHub Issues — report a bug or request a feature.
  • LinkedIn — follow Qualcomm AI Hub for news and updates.

Contributors

Thanks to everyone building GenieX


License

BSD 3-Clause — see LICENSE and NOTICE.

Use of this project is also subject to Qualcomm's Terms of Use.

Issues· 58 open

View all issuesOpen on GitHub
  • #1498

    Error: received error while streaming: SDKError(Input prompt too long)

    Updated Sep 30, 2026
  • #1454

    QAIRT backend: tools parameter silently dropped in apply_chat_template, tool calling non-functional

    Updated Sep 29, 2026
  • #1494

    Phi-3.5-Mini-Instruct doesn't load in Elite X (12 cores) X1E80100 Hexagon NPU

    Updated Sep 28, 2026
  • #1493

    Poor performance of Qwen models in the X Elite (12 cores) X1E80100 chip

    Updated Sep 28, 2026
  • #1390

    ggml-hexagon NPU backend: remote session open fails on Snapdragon X Elite WoA (HND driver v1.0.0.14) — GGML_ASSERT(device) in v0.5.0 NPU inference

    Updated Sep 26, 2026
  • #1489

    Malformed ZIP64 extra metadata can panic AI Hub pulls

    Updated Sep 24, 2026
  • #1487

    Complete progress bitmap can publish a missing or zero-filled model

    Updated Sep 24, 2026
  • #1485

    Range retry can publish duplicated model bytes after a short read

    Updated Sep 24, 2026
  • #1479

    Gemma-4-26B (GGUF, GenieX-served) does not reliably conform to provided tool-call JSON schema — flattens nested arguments and guesses tool/parameter names instead of reading the schema

    Updated Sep 24, 2026
  • #1478

    GenieX: chat template mishandles empty-thought boundary tokens and occasionally drops `tool_calls` entirely after a tool-error correction turn (Gemma-4-26B GGUF, NPU backend)

    Updated Sep 24, 2026

> Tags

Rustgemma4gogpt-ossgranite4

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.