Repository navigation
🚀 [v0.4.9] Release Note:Inkling 2 Mini Vision Chat with DFlash2 / DSpark & Python Inference Migration to llama_batch_ext
#193
JamePeng
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
[0.4.9] — Inkling 2 Mini Vision Chat with DFlash2 / DSpark & Python Inference Migration to
llama_batch_extVersion 0.4.9 marks another important step forward for
llama-cpp-python, delivering faster multimodal speculative decoding, a unified extended-batch inference pipeline, and expanded native API coverage.The headline feature is Inkling 2 Mini image chat with DFlash2 and DSpark speculative decoding, achieving up to 1.61× end-to-end speedup on an RTX 5090 while preserving identical generated text in the tested workloads.
Equally important, the Python inference runtime has now migrated to
llama_batch_ext, unifying text generation, embeddings, MTP, and DFlash under the extended batch API. This lays a stronger foundation for advanced decoding, recurrent model architectures, and future speculative inference optimizations.Highlights
1. Inkling 2 Mini — Faster Multimodal Speculative Decoding
Added image-chat support for Inkling 2 Mini with both DFlash2 and DSpark speculative decoding engines.
RTX 5090 benchmark — identical text and two-image workloads
All three modes generated identical text in the tested workloads.
Resources: [Inkling 2 Mini GGUF models](https://huggingface.co/JamePeng2023/Inkling-2-Mini-GGUF) · [Runnable example and benchmarks](https://github.com/JamePeng/llama-cpp-python/blob/main/docs/wiki/examples/vision/vision-inkling2.md)
2. Python Inference Migrated to
llama_batch_extThe Python runtime now uses the extended batch API across its primary inference paths.
llama_batch_ext.n_ubatch, including range-based submissions.LlamaBatchExtwith per-entry decision groups and decision ordering.This migration reduces differences between inference paths and provides a more consistent foundation for future native decoding capabilities.
3. Expanded GGML and Native API Bindings
ggml_needs_scaleggml_mul_mat_extggml_mul_mat_id_extggml_sigmoid_back, gated delta net replay, andfast_async_host_inputdevice capabilities.Optional GGML bindings preserve compatibility with older builds that do not export the corresponding functions.
4. Runtime Reliability and Regression Testing
5. Documentation and API Updates
LlamaBatchAPI guide with extended batches, decision groups, hidden states, and device embedding references.Text Recognition:prompt.Looking Ahead
Version 0.4.9 represents an important architectural milestone: the Python inference runtime now shares a unified extended-batch execution foundation.
Combined with DFlash2 and DSpark acceleration for Inkling 2 Mini vision chat, this release demonstrates how speculative decoding can improve real-world multimodal workloads without sacrificing output consistency in the tested configurations.
Future development will continue to focus on advanced speculative decoding, efficient multimodal execution, recurrent model support, and deeper alignment with the evolving
llama.cppnative APIs.Full Changelog: [Compare 0.4.9 changes](ef94af5...bcda7a8)
— JamePeng
All reactions