artlite-project/artlite
À propos
The fastest inference engine for the NPU of AMD Ryzen AI processors: LLMs, vision, speech and Stable Diffusion on XDNA 2, with an OpenAI- and Anthropic-compatible server
IA et apprentissage automatiqueProgression mesurée des étoiles
- in 24h
- +1
- in 7 days
- Historique en cours
- in 15 days
- Historique en cours
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
Original
The fastest inference engine for the NPU of AMD Ryzen AI processors
Artlite runs language, vision and speech models and Stable Diffusion on the XDNA 2 NPU of AMD Strix Point, Krackan Point and Strix Halo processors, and serves them to apps and coding agents.
- Fast prompts and generation. Artlite processes prompts 1.7-11x faster than FastFlowLM, the next fastest engine, and generates text 1.1-2.3x faster (Performance).
- A local server for apps and agents. OpenAI- and Anthropic-compatible APIs with tool calls, structured output, a prompt cache and several requests at a time. Claude Code, Codex and opencode work with it.
- Text, images, video and speech. Chat, questions about images and videos, transcripts with speakers, text to speech, voice conversations, embeddings and image generation.
- Built for XDNA 2. Artlite's own JIT toolchain generates every NPU kernel for the model's shapes and weight formats and compiles it at run time.
Quick start
You need a Ryzen AI processor with an XDNA 2 NPU, Linux with the amdxdna driver, libdrm, CMake, a C++23 compiler and
uv. Windows 11, NixOS and the details are in Installation.
git clone https://github.com/artlite-project/artlite && cd artlite
uv venv && source .venv/bin/activate
uv sync --no-dev
Download a model into the models directory (~/.artlite/models, laid out as on Hugging Face) and run it:
uvx --from huggingface_hub hf download ggml-org/gemma-4-E4B-it-GGUF \
gemma-4-E4B-it-Q4_0.gguf mtp-gemma-4-E4B-it-Q4_0.gguf --local-dir ~/.artlite/models/ggml-org/gemma-4-E4B-it-GGUF
M=ggml-org/gemma-4-E4B-it-GGUF/gemma-4-E4B-it-Q4_0.gguf
artlite-cli -m $M -p "Factorize x^2 + x - 6" # answer in the terminal
artlite-server -m $M -rea on # API and web chat on http://127.0.0.1:8080
artlite-server # every downloaded model, with a model picker
artlite-bench -m $M -p 1024,8192 -n 128 # prompt and generation speeds, as llama-bench
Documentation
| Installation | hardware, driver, build on Linux, Windows 11 and NixOS, troubleshooting |
| artlite-cli | text, images and transcripts from the command line |
| artlite-server | the API server and web chat, coding agents |
| artlite-bench, artlite-probe | prompt and generation speeds; the NPU's clock and memory rates |
| Models | supported models and files, how each model runs on the NPU |
| Benchmark methodology | how the charts are measured |
| Where the NPU fits | the NPU vs. the iGPU: memory bandwidth, power, workloads |
| Design, Development | how Artlite works; tests, operators and kernel tools |
All pages: docs/.
Models
| model | what it does |
|---|---|
| Llama 3.2 1B, 3B, Llama 3.1 8B | text |
| Qwen3 0.6B, Qwen3-Embedding, Qwen3-Reranker | text, embeddings, rerank, decisions |
| Gemma 4 E4B | text |
| Qwen3.5 9B, Qwen3.6 27B, Qwen3.8 27B, Qwen3.6 35B-A3B, MiniCPM-V 4.7 | text, images, decisions |
| LFM3 1.7B, LFM3-VL, LFM3-Audio, LFM3-Omni | text, images, video, speech in and out, decisions |
| Spark-X2.6 4B, 1.7B | text |
| Flint | text |
| Inkling 2 Mini | text, images |
| MOSS-Transcribe-Diarize | transcripts with timestamps and speakers |
| Stable Diffusion 1.5 | image generation |
Artlite loads GGUF files, Hugging Face checkpoints and ParoQuant checkpoints. The tested files of each model and the planned models are listed in Models.
Performance
How these are measured: Benchmark methodology.
How it works
Each operator renders a C++ kernel and an IRON design of the array's data movement for its shapes. Peano (LLVM for AI
Engine) and aiecc compile them once into the ELF that configures the array, and the build cache keeps the result. At
load, the weights are packed into one buffer in DRAM. For every step the host builds a transaction and dispatches it to the
NPU through the amdxdna driver (through XRT on Windows). A decode step runs on an overlay design whose cores read
their work from that transaction, and a prompt runs as chunk programs assembled from a library of compiled designs.
Details: Design.
Explorer des projets similaires
Chargement…