Skip to content

About

Unified local AI engine for LLM chat, vision, speech, transcription, and native GPU image/video/3D/music generation (CUDA, Metal, Vulkan, iOS, Android, WebGPU). Your models, your device, no cloud.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Eureka Engine

Platforms

CUDA Metal Vulkan Android WebGPU

OpenAI-compatible API GGUF Written in Bend + C11

Your models, your device, no cloud. One unified local AI engine for LLM chat, vision, speech, transcription, and native GPU image/video/3D/music generation.

Try Eureka Engine Live in Your Browser (WebGPU + GGUF Inspector + Local Bridge) →


Try It on the Web (Zero Install)

Open phenomenon0.github.io/eureka-engine in any WebGPU browser (Chrome, Edge, Safari 26+) to:

  • Run Qwen3.5 GGUF models directly on your local GPU over HTTP byte-ranges (1-click 0.8B / 2B / 4B / OmenWorks 4B Q8_0) or drag-and-drop any local .gguf file with 0 B uploaded and OPFS local caching.
  • Inspect any GGUF header & VRAM footprint across 2K–128K contexts (works in every browser, even without WebGPU).
  • Bridge to a local native daemon (CUDA / Metal / Vulkan) for full-speed /v1/chat/completions and Creative Studio /v1/images/generations.

Backends

Backend Runs on Measured speed Guide
CUDA NVIDIA, Linux and Windows 144 tok/s 35B-A3B · 94 tok/s 9B · 38.8 tok/s 27B cuda, windows
Metal macOS 70.2 tok/s 9B metal
Vulkan AMD / Intel / NVIDIA SPIR-V LLM + Creative T1–T5 HAL vulkan, architecture
iOS iPhone 20.6 tok/s 4B ios
Android Android phones 3.2 s per reply, 4B android
WebGPU WebGPU browsers (live web app) 169 tok/s 0.8B · 35.8 tok/s 9B webgpu, live web

All five backends pass all five verbs on a real HTTP route (2026-10-21). Devices, conditions, and gaps: docs/backends.md.

Windows (2026-11-16): the CUDA engine runs natively on an RTX 3090. Chat speeds are 94 tok/s on the 9B, 38 tok/s on the 27B Q4_K_M, and 144 tok/s on the 35B-A3B MoE Q4_K_S, with the first token in about 60 ms. The CPU build is the fallback. Build and status: backends/windows, WINDOWS-TEST-STATUS.md.

Next: a hybrid placement for MoE experts. The most-used experts stay in VRAM, and the CPU computes the rest. This would run a 35B-A3B on 6 to 16 GB cards: design.

What it does

Five panels, one per verb. chat: POST /v1/chat/completions, What is the capital of France? in, Paris. out. decide: POST /v1/decide, three choices (refund, escalate, ignore), refund out. see: an image in chat, a box labeled cup out. hear: POST /v1/audio/transcriptions, audio in, turn on the lights out. speak: POST /v1/audio/speech, hello in, speech audio out.

What each verb takes in and gives back, and the model behind it.

Verb What you get Model
chat Text generation, streaming, tool calls, JSON output Qwen3.5 family, on the Bend engine
decide A labeled choice with probabilities Decision head on the same model
see Object detection on an image D-FINE-N
hear Speech to text Whisper
speak Text to speech Kokoro-82M
create Native GPU image, video, 3D PBR, 3DGS, and 8-stem music Z-Image-Turbo 6.15B, FLUX.2, Wan 2.2, LTX-2.3 22B, TRELLIS.2 4B, ACE-Step 1.5-XL, IDOL 1M 3DGS

Unified Creative Stack (3-Backend HAL: CUDA · Metal · Vulkan)

Eureka includes a zero-Python, single-binary creative engine (creative/eureka-creative-serve) sharing the same local HTTP surface and VRAM lease broker:

  • Images: Z-Image-Turbo 6.15B (8-step with on-manifold RF-SDE batch diversity + dynamic shift) and FLUX.2 Dev/HiRes (1.99 s 1024² via Q8_G64 DiT + SageAttn-I8).
  • Video & Audio-Video: Wan 2.2 (BT.709 / RES / Hero-I2V / Lightning) and LTX-2.3 22B Joint Audio+Video.
  • 3D & Music: TRELLIS.2 4B 512³ O-Voxel Multi-Material PBR, IDOL 1M 3D Gaussian Splatting (.ply), and ACE-Step 1.5-XL 4B 8-stem music mastering.

Results

Metric Score
Decode speed vs llama.cpp (↑), 27B Q4_K_M 1.011x
Prefill speed vs llama.cpp (↑), 3,011-token prompt 0.953x
Speculative decoding (↑), same tokens as greedy 65.4 tok/s
Cold load from GGUF (↓), 27B 17.9 s
Same decide answer on CUDA, Metal, WebGPU (↑) 30 / 30

Install

Linux (x86-64, NVIDIA):

curl -fsSL https://github.com/phenomenon0/eureka-engine/releases/latest/download/install.sh | sh

The installer detects your platform, checks the download's sha256 before it unpacks anything, and installs llb to ~/.local/bin. To see what it would do without installing, end the command with sh -s -- --dry-run instead of sh.

Quick start from source

Step 1: Build the engine

LLB_BEND=BEND_CHECKOUT LLB_OUT=$PWD/build ./build.sh

BEND_CHECKOUT is the pinned Bend compiler. On a Mac, add LLB_BACKEND=metal.

Step 2: Package it

tools/unify/bundle.sh 0.2.0 build && cd release/llb-linux-x86_64-cuda-0.2.0

Step 3: Run a model

LLB_MODELS=MODELS_DIR ./llb run 27b "The capital of France is" -n 16

MODELS_DIR holds Qwen3.8-27B-Q4_K_M.gguf.

Step 4: Call the API

curl -s localhost:8080/v1/chat/completions -H 'Content-Type: application/json' \
  -d '{"messages": [{"role": "user", "content": "Hello"}], "max_tokens": 32}'

Start the server with the server quickstart.

Directory structure

eureka-engine/
├── engine_qwen35_gpu.bend   # The LLM engine, in Bend
├── kernels/                 # Bend kernels
├── host/                    # Modular C11 host: GGUF reader, sampler, grammar, tool calls, Cowrie
├── creative/                # Unified 3-backend Creative stack (CUDA PTX / Metal / Vulkan SPIR-V)
├── backends/                # CUDA, Metal, Vulkan, iOS, Android, WebGPU, Windows, Linux
├── web/                     # Hosted WebGPU Studio, GGUF Inspector & Local Native Bridge
├── tools/                   # Build, server (sys1dual/), CLI (llb/), gates
├── vision/                  # Vision encoder
├── release/                 # Release templates
├── docs/                    # Architecture, guides, reference, records
└── reports/, receipts/      # Measurements and raw logs

Documentation

Page Description
Backends Status, devices, and gaps for each backend
Run on CUDA Full build and run guide
HTTP API Endpoints, fields, streaming, errors
Multimodal content Images, audio, and video in requests
Structured output JSON schema, grammars, tool calls
Build on Windows CPU and CUDA engines on Windows
Hybrid experts Design: MoE experts split between VRAM and the CPU
All docs Full index

License

Apache 2.0. See LICENSE.

Figures drawn in the iso-glow style (MIT). Sources: docs/img/src/.

About

Unified local AI engine for LLM chat, vision, speech, transcription, and native GPU image/video/3D/music generation (CUDA, Metal, Vulkan, iOS, Android, WebGPU). Your models, your device, no cloud.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages