Screenshot del progetto
Panoramica
memra is a high-performance LLM inference engine written from scratch in Rust and CUDA. It targets two specific GPU architectures—NVIDIA RTX 50-series Blackwell (sm_120a) and H100 Hopper (sm_90a)—with auto-detection at build time. The engine differentiates itself through a strict exactness discipline: speculative and graph-replay outputs are guaranteed token-identical to plain decode, and greedy serving is isolated-identical under concurrent load, ensuring that speed and batching never alter model outputs. It features hand-written kernels tuned against measured hardware limits and includes comprehensive per-model performance benchmarking against llama.cpp and vLLM.
Funzionalità principali
- From-scratch Rust + CUDA engine with no ggml dependency
- Auto-detected dual-architecture support for RTX 5090 (sm_120a) and H100 (sm_90a)
- Strict exactness-gated inference ensuring token-identical outputs
- MTP speculative decoding with adaptive draft depth and confidence cuts
- MoE on 24GB via resident-if-fits expert residency and AUTO-KQUANT
- Hopper wgmma/TMA kernels and FA3-class prefill attention
- CUDA-graph decode with minimal host traffic
- OpenAI-compatible server with batched decode and cross-request prefill batching
- m-invariant prefill router ensuring isolated-identical concurrent serving
Requisiti, installazione e avvio rapido
Utilizzo
Compatibilità del modello e casi d'uso
Supported models include Qwen3.5-9B, Qwen3.6-27B, Qwen3.6-35B-A3B MoE, Gemma-4 12B, Gemma-4 26B-A4B MoE, Gemma-4 31B, Gemma-4 E4B, Ornith-1.0-9B, and Ornith-1.0-35B. Hy3 Layer103.5 is supported but under tuning. KAT-Coder-V2.5 and Qwen-AgentWorld-35B-A3B are in bring-up. MiniMax-M3 REAP50 is in progress.
Note su licenza e rischi
Repository metadata declares MIT. Before publishing or commercial use, review the repository LICENSE file, copyright notices and dependency terms.
Editorial verification 2026-08-02: repository URL, owner, description, license and repository statistics were reviewed. License metadata: MIT. README was fetched for the channel draft; re-check repository dependencies, releases and model terms before production use.
Rilascio e manutenzione
Not stated in the repository metadata