# Unifying <1 ms tabular scoring + TreeSHAP and frontier GPU LLM serving behind one zero-Python Kubernetes control plane (SMILE Serve Engine & Cluster)

> Source: <https://discuss.huggingface.co/t/unifying-1-ms-tabular-scoring-treeshap-and-frontier-gpu-llm-serving-behind-one-zero-python-kubernetes-control-plane-smile-serve-engine-cluster/192738#post_1>
> Published: 2026-11-27 17:04:29+00:00

**Key takeaway:** SMILE Serve Engine keeps exact TreeSHAP on the synchronous hot path at 0.91 ms p99 for GradientTreeBoost and 2.88 ms p99 for RandomForest on 300-tree, 64-feature models, versus 0.47 ms and 0.54 ms without inline SHAP.

Most production AI stacks I run into split into three disconnected deployments: a Python microservice for tabular scoring and SHAP explanations, a separate GPU cluster for vLLM or SGLang, and custom glue in front for auth, weight verification, and audit logs. Over the past few months we built SMILE Serve Engine and SMILE Serve Cluster ([GitHub - haifengl/smile: Statistical Machine Intelligence & Learning Engine · GitHub](https://github.com/haifengl/smile) and [https://aihalo.dev](https://aihalo.dev)) to collapse those layers into one zero-Python runtime and Kubernetes control plane.

A few engineering choices that made the biggest difference in practice:

Keeping classical ML and exact TreeSHAP on the synchronous hot path. On 300-tree, 64-feature models over 100,000 loopback requests, SMILE Serve Engine on Java 25 scores XGBoost ONNX at 0.43 ms p99, GradientTreeBoost at 0.47 ms p99 (0.91 ms p99 with inline exact TreeSHAP), and RandomForest at 0.54 ms p99 (2.88 ms p99 with inline exact TreeSHAP). For edge or sidecar footprints, the GraalVM native latest-micro image is around 200 MB with 0.4s cold start, 140 to 178 MiB RSS with 19 models loaded, and zero Python packages.

Serving frontier open-weight LLMs over the same canonical /v1 API. Our Java 25 + Project Panama FFM + CUDA/FlashInfer v0.7.5.post1 engine runs DeepSeek-V4.1-Flash (92.8 tok/s single-request with 2.33x DSpark speculative speedup, 888 tok/s at 32 concurrent requests on 8x A100 80 GB), GLM-5.3-Flash (95 tok/s single, 906 tok/s at 32 concurrent), and Qwen3.8-27B (80.1 tok/s FP8 on 1x A100-40GB, 906 tok/s batched BF16 TP=4).

Treating cluster security and caching as control-plane primitives rather than ad-hoc scripts. SMILE Serve Cluster deploys via a single Helm chart and runs SMILE Serve Engine alongside vLLM, SGLang, and TensorRT-LLM worker pods behind Envoy Gateway OIDC/JWT auth, node-local NVMe weight caching with SHA-256 verification and LRU eviction, declarative init-time LoRA loading for vLLM and SGLang, Ed25519 model signing before deserialization, and hash-chained SIEM audit logs.

For local development and evaluation, we also ship SMILE Agent Studio, a free local-first desktop workspace with 9 specialist agents, a deterministic human-in-the-loop approval queue for background routines, and polyglot notebooks plus DuckDB that talk directly to local /v1 endpoints.

Curious how others running both tabular risk/routing models and self-hosted frontier LLMs are handling weight caching, auth, and side-by-side serving today. Happy to share benchmark harnesses or dig into any piece of the architecture.
