aha

Library Listed

aha model inference library, now supports Qwen(2.5VL/3/3VL/3.5/ASR/3Embedding/3Reranker), MiniCPM(4/5), VoxCPM(0.5B/1.5/2), DeepSeek-OCR/2, Hunyuan-OCR, PaddleOCR-VL/1.5, RMBG2.0, GLM(ASR-Nano-2512/OCR), Fun-ASR-Nano-2512, LFM(2/2.5/2VL/2.5VL)

Checked · Sources

Downloads
180
Dependents
0
Stars
396
Forks
57
Contributors
13
Commits
293
Latest release
0.2.6 ·

About

From the project README ·

aha logo

简体中文 | English

Official Website: https://s5dgj23f.pub.makeit.coderbox.cn/

Lightweight AI Inference Engine — All-in-one Solution for Text, Vision, Speech, and OCR

aha is a high-performance, cross-platform AI inference engine built with Rust and the Candle framework. It brings state-of-the-art AI models to your local machine—no API keys, no cloud dependencies, just pure, fast AI running directly on your hardware.

Supported Models
CategoryModels
TextQwen3, MiniCPM4, MiniCPM5, LFM2, LFM2.5
VisionQwen2.5-VL, Qwen3-VL, Qwen3.5,
LFM2.5-VL, LFM2-VL
OCRDeepSeek-OCR, DeepSeek-OCR-2 , PaddleOCR-VL
PaddleOCR-VL1.5, PaddleOCR-VL1.6, Hunyuan-OCR
GLM-OCR
ASRGLM-ASR-Nano, Fun-ASR-Nano, Qwen3-ASR
TTSVoxCPM, VoxCPM1.5, VoxCPM2, Moss-TTS-Nano
ImageRMBG-2.0 (background removal)
EmbeddingQwen3-Embedding, all-MiniLM-L6-v2
RerankerQwen3-Reranker

Changelog

2026-06-06
  • add PaddleOCR-VL-1.6
2026-05-29
  • generate code refactored
2026-05-28
  • generate code refactoring progress 1/3
2026-05-27
  • add MiniCPM5
2026-05-24
  • update doc
2026-05-11
  • add Moss-TTS-Nano,its performance is worse than the original Python version

View full changelog →

Read the full README

Why aha?

  • 🚀 High-Performance Inference - Powered by Candle framework for efficient tensor computation and model inference
  • 🔧 Unified Interface — One tool for text, vision, speech, and OCR
  • 📦 Local-First — All processing runs locally, no data leaves your machine
  • 🎯 Cross-Platform — Works on Linux, macOS, and Windows
  • ⚡ GPU Accelerated — Optional CUDA support for faster inference
  • 🛡️ Memory Safe — Built with Rust for reliability
  • 🧠 Attention Optimization - Optional Flash Attention support for optimized long sequence processing

Quick Start

Installation
git clone https://github.com/jhqxxx/aha.git
cd aha
cargo build --release

Optional Features:

# CUDA (NVIDIA GPU acceleration)
cargo build --release --features cuda

# Metal (Apple GPU acceleration for macOS)
cargo build --release --features metal

# Flash Attention (faster inference)
cargo build --release --features cuda,flash-attn

# FFmpeg (multimedia processing)
cargo build --release --features ffmpeg
CLI Quick Reference

# List all supported models
aha list

# Download model only
aha download -m Qwen/Qwen3-ASR-0.6B

# Download model and start service
aha cli -m Qwen/Qwen3-ASR-0.6B

# Run inference directly (without starting service)
aha run -m Qwen/Qwen3-ASR-0.6B -i "audio.wav"

# Run local all-MiniLM-L6-v2 embedding (native safetensors)
aha run -m all-minilm-l6-v2 -i "Rust embedding test" --weight-path D:\model_download\all-MiniLM-L6-v2

# Start service only (model already downloaded)
aha serv -m Qwen/Qwen3-ASR-0.6B -p 10100
Chat
aha serv -m Qwen/Qwen3-0.6B -p 10100

Then use the unified (OpenAI-compatible) API:

curl http://localhost:10100/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "Qwen/Qwen3-0.6B",
    "messages": [{"role": "user", "content": "Hello!"}],
    "stream": false
  }
'
aha-ui
cd aha-ui
use npm
install npm

refer to https://nodejs.org/en/download

# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash
# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"
# Download and install Node.js:
nvm install 24
# Verify the Node.js version:
node -v # Should print "v24.15.0".
# Verify npm version:
npm -v # Should print "11.12.1".
npm run aha-ui
# Make sure in the aha-ui directory
# and make sure that aha has been compiled
npm install
npm run tauri dev
npm build & install & run
npm run tauri build
# target in
# -- aha-ui/src-tauri/target/release/bundle/deb/aha-ui_0.1.0_amd64.deb
# -- aha-ui/src-tauri/target/release/bundle/rpm/aha-ui-0.1.0-1.x86_64.rpm
# -- aha-ui/src-tauri/target/release/bundle/appimage/aha-ui_0.1.0_amd64.AppImage
use pnpm
install pnpm
curl -fsSL https://get.pnpm.io/install.sh | sh -
pnpm run aha-ui
# Make sure in the aha-ui directory
# and make sure that aha has been compiled
pnpm run tauri dev
pnpm build & install & run
pnpm run tauri build
# target in
# -- aha-ui/src-tauri/target/release/bundle/deb/aha-ui_0.1.0_amd64.deb
# -- aha-ui/src-tauri/target/release/bundle/rpm/aha-ui-0.1.0-1.x86_64.rpm
# -- aha-ui/src-tauri/target/release/bundle/appimage/aha-ui_0.1.0_amd64.AppImage

Documentation

DocumentDescription
Getting StartedFirst steps with aha
InstallationDetailed installation guide
CLI ReferenceCommand-line interface
API DocumentationLibrary & REST API
Supported ModelsAvailable AI models
ConceptsArchitecture & design
DevelopmentContributing guide
ChangelogVersion history

Development

Using aha as a Library

cargo add aha

// VoxCPM example
use aha::models::voxcpm::generate::VoxCPMGenerate;
use aha::utils::audio_utils::save_wav_mono;
use anyhow::Result;

fn main() -> Result<()> {
    let model_path = "xxx/OpenBMB/VoxCPM2/";

    let mut voxcpm_generate = VoxCPMGenerate::init(model_path, None, None)?;
    let generate = voxcpm_generate.inference(
        "aha是一个基于Rust和Candle框架的本地AI推理引擎,支持多模态模型(文本、视觉、语音、OCR)。".to_string(),
        None,
        None,
        2,
        1000,
        10,
        2.0,
        6.0,
    )?;

    save_wav_mono(&generate, "voxcpm2.wav", voxcpm_generate.sample_rate() as u32)?;
    Ok(())
}
Extending New Models
  • Create new model file in src/models/
  • Export in src/models/mod.rs
  • Add support for CLI model inference in src/exec/
  • Add tests and examples in tests/

Features

  • High-performance inference via Candle framework
  • Multi-modal model support (vision, language, speech)
  • Clean, easy-to-use API design
  • Minimal dependencies, compact binaries
  • Flash Attention support for long sequences
  • FFmpeg support for multimedia processing

License

Apache-2.0 — See LICENSE for details.

Acknowledgments

  • Candle - Excellent Rust ML framework
  • All model authors and contributors

Wechat & Donate

Wechat GroupDonate
Wechat GroupDonate

Built with ❤️ by the aha team

We're continuously expanding our model support. Contributions are welcome!

If this project helps you, please consider giving us a ⭐ Star!

Runs on
CUDA, Metal
What shows it
  • CUDA: aha feature cuda
  • Metal: aha feature metal
Native code
Required
  • Binds native code: sentencepiece-sys, ffmpeg-sys-next (feature ffmpeg)
Python bindings
No Python binding crate found
License
Apache-2.0

Compare with similar projects

Order: strongest tier first, then most downloads, then name, with unmeasured values last. A library counts downloads over 30 days. An app counts binary downloads per release. An app with none counts its crate downloads over 30 days. ML Rust runs this catalogue, so its closest project always gets a row.

aha beside the projects that share a topic with it
ProjectDownloadsDependentsStarsLatest releaseRuns on (GPU)Native codeLicense
aha This page Listed

aha model inference library, now supports Qwen(2.5VL/3/3VL/3.5/ASR/3Embedding/3Reranker), MiniCPM(4/5), VoxCPM(0.5B/1.5/2), DeepSeek-OCR/2, Hunyuan-OCR, PaddleOCR-VL/1.5, RMBG2.0, GLM(ASR-Nano-2512/OCR), Fun-ASR-Nano-2512, LFM(2/2.5/2VL/2.5VL)

180 downloads over 30 days 0 396 0.2.6 CUDA, Metal Binds native code: sentencepiece-sys, ffmpeg-sys-next (feature ffmpeg) Apache-2.0

High level API for stable-diffusion.cpp

241 downloads over 30 days 2 56 0.1.20 CUDA, Metal, Vulkan Binds native code: diffusion-rs-sys, stable-diffusion. Build uses a native toolchain: bindgen, cmake MIT
lele Listed

Bare-metal machine learning inference library in Rust

132 downloads over 30 days 1 183 0.2.0 GPU support unknown No native code found MIT
higgs App Listed

A rust mlx server, ui, and model router for fast, dependency free inference on apple architecture

23 binary downloads per release Not applicable 34 Not measured Not measured MIT
blazr App Listed

Inference server for LLMs, speech and embeddings: OpenAI-compatible routes with streaming, plus speech synthesis (TTS) and transcription (ASR). Serves Llama, Mistral, Qwen, Mamba2, MLA+MoE and hybrid models from SafeTensors, AWQ, GPTQ and GGUF.

8 binary downloads per release Not applicable 7 0.7.1 CUDA, WebGPU Binds native code: ring (feature distributed) Apache-2.0
sipp New

Unified Rust library for extensible Sipp inference

0 downloads over 30 days 0 124 0.1.4 CUDA, Metal, Vulkan Binds native code: cxx, sipp, sipp-sys, link-cplusplus. Build uses a native toolchain: cc, cmake, cxx-build Apache-2.0
Why ListedNo archive, New or Featured rule places it, so it is Listed.

What it lacks for Featured

  • It has 0 active dependents and 0 new dependents in 365 days. Featured needs 11 active dependents or 9 new dependents in 365 days. The repository route reads 396 stars, 57 forks and 13 contributors. It needs 4,539 stars, 434 forks and 79 contributors together.

What else the check found

  • The last activity is on 7 Jun 2026, 155 days ago. The rules expect an update within 450 days. Dormancy rule

Exact rules: Listed, Featured library. The check on applied thresholds version 9.

Every rule outcome, as the check records it
  • expected-interval: version 0.2.6 base 450: E = 450 days
  • dormancy: last activity 2026-06-07, 155 days ago, E = 450: active
  • featured: not featured: active_users 0 < 11 and new_adopters 0 < 9 and repository route stars 396 (needs 4539), forks 57 (needs 434), contributors 13 (needs 79)
  • listed: listed: no archive, new or featured rule applies

Measurements and sources

Each signal row shows the raw value, its source and the fetch date. The Sources list gathers every distinct source on this page. Movement needs more history.

Sources6 sources
Adoption0 active dependents, 0 new dependents in 365 days1 not measured
Adoption measurements
SignalValueSourceFetchedCounts
Active dependents0crates.io database dumpYes
New dependents (365 days)0crates.io database dumpYes
Peak active dependents0crates.io database dumpYes
Active dependents as a share of the peak1crates.io database dumpYes
Binary downloads per releaseNot measuredYes
MaintenanceLatest human commit: 5 months ago3 not measured
Maintenance measurements
SignalValueSourceFetchedCounts
Latest human commit2026-06-07GitHub repositoryYes
Latest release2026-05-29crates.io database dumpYes
First release2025-09-21crates.io database dumpYes
Latest version0.2.6crates.io database dumpYes
Days the oldest outside issue waits for a reply240GitHub repositoryYes
Maintainer replies over 365 days47GitHub repositoryYes
Repository archivedfalseGitHub repositoryYes
Repository gonefalseGitHub repositoryYes
Release commit or manifest in the repotruecrates.io packageYes
Published docstruecrates.io database dumpYes
Latest release fails cargo checkNot measuredYes
Build check dateNot measuredYes
Build check toolchainNot measuredYes
SecurityUnpatched vulnerabilities: none
Security measurements
SignalValueSourceFetchedCounts
Unpatched vulnerabilities past the grace windownoneRustSec advisory databaseYes
RustSec unmaintained advisorynoneRustSec advisory databaseYes
Deprecation noticenonecrates.io database dumpYes
Deprecated requirementnonecrates.io database dumpYes
Distribution17 releases, 180 downloads over 30 days5 not measured
Distribution measurements
SignalValueSourceFetchedCounts
Releases17crates.io database dumpYes
Downloads over 30 days180crates.io database dumpYes
Binary downloads over the last 3 releasesNot measuredYes
Homebrew installs on request over 365 daysNot measuredYes
Repology repository familiesNot measuredYes
Docker pull growth over 90 daysNot measuredYes
Docker pulls at the growth baselineNot measuredYes
Every version a prereleasefalsecrates.io database dumpYes
Every version 0.0.xfalsecrates.io database dumpYes
Every version yankedfalsecrates.io database dumpYes
Crate deleted from crates.iofalsecrates.io database dumpYes
Repository396 stars, 57 forks, 13 contributors, 293 commits. Stars alone never qualify a project.
Repository measurements
SignalValueSourceFetchedCounts
GitHub stars396GitHub repositoryYes — one part of the repository route
GitHub forks57GitHub repositoryYes — one part of the repository route
Contributors with a GitHub account13GitHub contributorsYes — one part of the repository route
Commits on the default branch293GitHub repositoryNo
Repository's main crate left out of the entrynonecrates.io database dumpYes
Facts that never count
Facts that never count measurements
SignalValueSourceFetchedCounts
LicenseApache-2.0crates.io database dumpNo
Runs on, from listed crates and their direct dependenciesCUDA, Metalcrates.io database dumpNo
What shows each backendCUDA: aha feature cuda; Metal: aha feature metalcrates.io database dumpNo
Native code, from listed crates and their dependenciesBinds native code: sentencepiece-sys, ffmpeg-sys-next (feature ffmpeg)crates.io database dumpNo
Python bindings, from direct dependencies of listed cratesNo Python binding crate foundcrates.io database dumpNo
Crates that depend on a listed crate directly0crates.io database dumpNo

Corrections and review history

Report a correction

No correction applies to this entry.

Judgments

A judgment enters only through an approved issue and a merged pull request.

No judgment applies to this entry.