--- license: other tags: - inference-engine - cuda - inkling2 - gguf - vision --- ![Ember](banner.png) # Ember Engine A standalone, zero-dependency Windows CUDA inference server for [Ember-2-Mini](https://huggingface.co/Kryzern/Ember-2-Mini-GGUF) (`Inkling-2-Mini`). OpenAI-compatible API, `IQ4_NL` DFlash2 speculative decoding, static 128K context on a 16 GB GPU, and `0.3s` native vision with zero permanent VRAM overhead. **Source code & Releases:** https://github.com/Kryzern/ember-engine **Optional:** `Ember-2-Mini.gguf` runs in `llama.cpp` as well. Ember is just a faster path on NVIDIA cards. ## Speed & 16 GB Fit Same `14.0 GB` GGUF on an RTX 5070 Ti (16 GB Windows), single stream: ![Ember Engine Speed & 128K Fit](bench_speed.png) | | Ember (`IQ4_NL` DFlash2) | `llama.cpp` (b12681) | |---|---|---| | Decode (structured code, Python + tests) | **197 tok/s** (2.9×) | 68 tok/s | | Decode (creative 3D, Three.js scene) | **113 tok/s** | 68 tok/s | | Cold prefill (3K / 12K / 50K tokens) | **2,100 / 1,980 / 1,480 tok/s** | N/A | | Context on 16 GB Windows | **128K static (0 VRAM spill)** | partial offload | | Native Vision (`Q8_0` `mmproj`, 800×450) | **0.31 s, 0 MiB permanent VRAM** | 3.57 s (BF16 CPU) | Prefill is exact (output does not depend on prefill chunk width). Vision weights (`330 MiB`) stay in pinned host RAM and borrow the idle prefill scratch arena during encoding, so vision adds **0 MiB permanent VRAM** and costs **0 tok/s** during generation. ## Quick start (Windows) 1. Download `ember-serve.exe` and `ember.bat` from this repo. 2. Download `Ember-2-Mini.gguf`, `dflash2-Inkling-2-Mini-IQ4_NL.gguf` (required), and `mmproj-Inkling-2-Mini-Q8_0.gguf` (optional, for vision) from [`Kryzern/Ember-2-Mini-GGUF`](https://huggingface.co/Kryzern/Ember-2-Mini-GGUF) into the same folder. 3. Run `ember.bat`. It starts an OpenAI-compatible server on `http://127.0.0.1:19124/v1` at 128K context and enables vision automatically if `mmproj` is present. 4. Point any OpenAI client (Pi, Open WebUI, Continue, curl) at `http://127.0.0.1:19124/v1`. Requirements: NVIDIA driver with CUDA 13 support, 16 GB+ VRAM. No CUDA toolkit or external DLLs required. | GPU generation | Status | |---|---| | RTX 50 series (Blackwell, `sm_120a`) | Tuned and tested | | RTX 40 series (Ada, `sm_89`) | Native cubins built in and verified statically (untested on hardware, please report results) | | RTX 30 series (Ampere, `sm_86`) | Native cubins built in and verified statically (untested on hardware; long-context attention is slower due to software FP8) | ## CLI flags ```text ember-serve --model Ember-2-Mini.gguf ^ --draft dflash2-Inkling-2-Mini-IQ4_NL.gguf --draft-k 7 ^ --mmproj mmproj-Inkling-2-Mini-Q8_0.gguf ^ --max-context 131072 --prefill-width 256 ^ serve --port 19124 --bind 127.0.0.1 ``` - `--prefill-width 512` up to 64K context; `256` at 128K (`ember.bat` picks this automatically). - `set EMBER_DRAFT_HOST=1` (optional): moves the `210 MiB` drafter weights to pinned host RAM if you have lots of Chrome tabs / desktop apps open on a 16 GB card. - `--thinking-budget N` (optional): closes the thinking block after `N` tokens and forces an answer. See [KNOWN_ISSUES.md](KNOWN_ISSUES.md) (the drafter file is currently required for long prompts).