Serve Engine
Inference on your machines
SMILE Serve Engine is the unified inference runtime for the JVM and the edge—serving classic ML (.sml), ONNX graphs (.onnx), and local LLMs in one Quarkus process with zero Python sidecars. A Production Runtime license ($12,000/year for up to 4 CPU predictive nodes + 1 standalone GPU node, internal Core Engine use, and 5 Agent Studio seats) covers production use without the AGPL network source offer; scaling to 2+ Kubernetes GPU servers upgrades smoothly to SMILE Serve Cluster with 100% prorated credit.
Start Enterprise features See Edge AI use cases See pricing & licensing Read the license
What you run
Classic models with local TreeSHAP / KernelSHAP explanations, ONNX graphs, and OpenAI-compatible LLM chat run in the same process—from an 80 MiB GraalVM native edge binary (0.2 GB image, 0.4 s boot) up to multi-GPU clusters. A React UI and Prometheus metrics are served from that process.
Classic ML & Local SHAP
Serialized SMILE models (.sml)—classification, regression, clustering, vector quantization, and anomaly detection—with online updates and built-in TreeSHAP, LinearSHAP, and KernelSHAP behind /v1/smile.
ONNX Runtime
Any model in the ONNX open format (.onnx), including computer vision and custom graphs, behind /v1/onnx.
LLM Chat, Tool Calling & Kirin Agent
OpenAI-compatible chat completions, multimodal vision/video, tool calling, radix KV caching, MTP / DSpark speculative decoding, and the built-in server-side Kirin personal assistant (latest-gpu, OAuth-gated) behind /v1/chat/completions.
Web UI, Kirin Mode & Hot-Reload
A bundled React interface for chat, SMILE, and ONNX models with interactive SHAP plots, Google/Microsoft OAuth sign-in into isolated per-user Kirin workspaces (web search, email, calendar, custom skills), and atomic model hot-swapping.
docker run -it \
-v /path/to/model/folder:/model \
-p 8888:8080 \
ghcr.io/haifengl/smile-serve:latest
Measured tabular & TreeSHAP latency
Verified over loopback HTTP across 100,000 requests per scenario with 300-tree / 64-feature ensembles and zero errors. See the full 18-model operating envelope (50 to 500 trees, up to 200 features) on Edge AI Benchmarks →
0.24 ms p50
0.47–1.22 ms p99
Single-row HTTP JSON scoring for 300-tree / 64-feature Gradient Boosting and Random Forest models across JVM and GraalVM native (latest-micro), plus 208 µs p50 / 0.43 ms p99 for 300-tree XGBoost ONNX models.
0.69 ms p50
0.91–2.88 ms p99
Exact in-process TreeSHAP explanations returned inline on ?explain=true—under 1 ms p99 for 300-tree Gradient Boosting on JVM (2.24 ms p99 on latest-micro native) and 2.88 ms p99 for depth-6 Random Forests.
19,200+ rows/s
140–178 MiB RSS
Streaming JSONL batch throughput on /v1/smile/{id}/stream, while holding 18 tree ensembles + 1 ONNX model inside a 140–178 MiB native memory footprint.
For agent loops
While Chatbots optimize for high throughput and long context streaming, agentic workflows care about something different: TTFT (Time to First Token) on frequent short prompts, rapid tool-call latency, and predictable memory overhead when running parallel loops. Our Serve Engine is built for that: a fast first token, a fast tool round trip, and a memory budget reserved when the model loads.
Tool results stay in the prefix
A tool result extends the same context. The cache is not rebuilt, and it does not grow one unbounded copy at a time.
Short turns are not held back
A request is admitted when its own prompt and token window fit. An interactive loop is not stalled until a large cohort fills.
Memory is reserved up front
KV and speculation checkpoints are sized at load. A long session does not grow the pool one request at a time.
The draft keeps its prefix
The draft head holds the prefix instead of recomputing it every round.
No second forward
On a partial accept, saved DeltaNet state is restored instead of another forward pass.
The gain holds in a full batch
Other serving engines lose the speculative advantage as the batch fills. SMILE holds it.
How it compares
vLLM
SMILE matches or slightly exceeds vLLM in raw decode throughput while outperforming it in speculative decoding scaling and hybrid architecture state management.
SGLang
SMILE achieves comparable token throughput and FlashInfer integration efficiency while offering a tighter execution pipeline for native speculative heads like MTP.
TensorRT-LLM
SMILE achieves TRT-LLM levels of low-level optimization (CUDA graphs for ragged verification batches, Marlin INT4 execution) without requiring heavy C++ compilation workflows or rigid engine builds.