Hemant Kumar

Hemant Kumar

AI systems engineer · Inference, calibrated small models, and agent sandboxes

I build AI systems end to end: inference engines, open-source decision models, isolated microVM sandboxes, and evaluation harnesses. By day, I work in Applied AI at BNY on agentic RAG, multi-agent tooling, and high-throughput financial platforms.

Outside work, I train small models on laptop hardware, patch llama.cpp in C++ and Metal, build pure-Go Firecracker sandboxes, and fix bugs upstream in inference and agent infrastructure.

254,187+
Hugging Face downloads, and growing still
9 solved
open conjectures in Lean 4 · merged in Google DeepMind
~$100B / day
financial platforms supported at BNY
vLLM · K8s
merged upstream fixes (+ Supabase, Skyvern)

Now · December 2026

Proved
Formalized the first kernel-verified Lean 4 refutation of IJCAI 2016 Bayesian security game interchangeability (3×3 counterexample) among 9 solved open conjectures, with the first merged into Google DeepMind formal-conjectures (#8470).
Published
Sandboxes from Zero to One, a first-principles walkthrough of Linux isolation, Firecracker microVMs, and Copy-on-Write snapshots.
In review
Open fixes across vLLM, SGLang, llama.cpp, and NVIDIA Dynamo.
Focus
Looped MoE inference on tight RAM, agent containment, formal math in Lean 4, and calibrated small models.

Built and measured

openJev Verdict

2026 · 424 stars · 254K+ HF downloads

A 151M-param decision model that makes typed decisions in 20 ms, beat models up to 230 times its size on JevBench, and crossed 254,187 Hugging Face downloads.

Most AI apps ask a chat model for JSON and retry when it breaks. Verdict skips writing text and returns a choice, score, or yes/no with confidence in one step, so normal code knows when to act and when to ask a person. It hit #1 among open models on JevBench with a browser demo, and Verdict 2.0 trained in 8.8 hours on a 6 GB laptop GPU.

JevBench scores, 20 September 2026 leaderboard Horizontal bars of JevBench scores on an axis from 50 to 80. Jev 1.13.0 (TypeSafe AI, closed) scores 75.4. openJev Verdict v1.4* (151M, open) scores 74.9. Semlf (Qwen3.5-4B) scores 74.7. djev (diffusion-gemma) scores 74.3. Laya (ModernBERT-large, 421M) scores 70.1. OpenJev (DiffusionGemma 26B-A4B) scores 67.7. openjev-sglang (Qwen3.6-35B-A3B) scores 66.3. GPT-5.6 Luna (OpenAI, low reasoning) scores 66.2. Bespoke Nimble 9B (Bespoke Labs) scores 63.7. Gemini 3.1 Flash-Lite (Google) scores 60.9. DeepSeek V4.1 Flash (thinking default) scores 57.8. openJev Verdict v1.4, a 151M model, is highlighted. Jev 1.13.0 TypeSafe AI, closed 75.4 openJev Verdict v1.4* 151M, open 74.9 Semlf Qwen3.5-4B 74.7 djev diffusion-gemma 74.3 Laya ModernBERT-large, 421M 70.1 OpenJev DiffusionGemma 26B-A4B 67.7 openjev-sglang Qwen3.6-35B-A3B 66.3 GPT-5.6 Luna OpenAI, low reasoning 66.2 Bespoke Nimble 9B Bespoke Labs 63.7 Gemini 3.1 Flash-Lite Google 60.9 DeepSeek V4.1 Flash thinking default 57.8 50 60 70 80
JevBench scores, 20 September 2026 leaderboard Horizontal bars of JevBench scores on an axis from 50 to 80. Jev 1.13.0 (TypeSafe AI, closed) scores 75.4. openJev Verdict v1.4* (151M, open) scores 74.9. Semlf (Qwen3.5-4B) scores 74.7. djev (diffusion-gemma) scores 74.3. Laya (ModernBERT-large, 421M) scores 70.1. OpenJev (DiffusionGemma 26B-A4B) scores 67.7. openjev-sglang (Qwen3.6-35B-A3B) scores 66.3. GPT-5.6 Luna (OpenAI, low reasoning) scores 66.2. Bespoke Nimble 9B (Bespoke Labs) scores 63.7. Gemini 3.1 Flash-Lite (Google) scores 60.9. DeepSeek V4.1 Flash (thinking default) scores 57.8. openJev Verdict v1.4, a 151M model, is highlighted. Jev 1.13.0TypeSafe AI, closed 75.4 openJev Verdict v1.4*151M, open 74.9 SemlfQwen3.5-4B 74.7 djevdiffusion-gemma 74.3 LayaModernBERT-large, 421M 70.1 OpenJevDiffusionGemma 26B-A4B 67.7 openjev-sglangQwen3.6-35B-A3B 66.3 GPT-5.6 LunaOpenAI, low reasoning 66.2 Bespoke Nimble 9BBespoke Labs 63.7 Gemini 3.1 Flash-LiteGoogle 60.9 DeepSeek V4.1 Flashthinking default 57.8 50 60 70 80
JevBench score from the 20 September 2026 leaderboard: intelligence, calibration, speed, and cost, 25% each. *Verdict v1.4 was scored on the 231 public tasks; the other rows on all 534.
254,187+
Hugging Face downloads (204,500 in 30 days), and growing still
74.9
JevBench score, #1 open model (beats 35B and GPT-5.6 Luna)
77.10%
accuracy on 2,000 held-out decisions (0.0636 Brier, 1.44% ECE)
8.8 h
fine-tuning on one 6 GB GTX 1660 Ti ($0 cloud spend)

branchvm

2026 · Go / Firecracker KVM · $0/mo local

Give coding agents isolated local microVM sandboxes on your own machine, so you can test competing features in parallel with minimal RAM and near-zero disk cost.

Running several coding agents on one repo breaks normal tools: git worktrees share one database, Docker restarts each copy from scratch, and cloud sandboxes charge per second. branchvm runs any Docker stack locally in isolated sandboxes for $0/month. Boot your app once, save a snapshot, and fork new copies in milliseconds using shared disk and memory. Your API keys stay on your laptop while each sandbox runs offline.

branchvm copy-on-write disk, RAM density, and snapshot boot benchmarks Three comparisons of branchvm against standard approaches. Disk clone: full rootfs copy writes 1.5+ GB, while branchvm XFS reflink clones in about 1 ms with 0 extra bytes upfront. Host RAM for 10 running 1 GiB branches: private copies take 10,240 MiB, while branchvm shared CoW RAM takes 620 MiB total (62 MiB per clone, 16.5x less). Boot time: cold microVM boot takes 6,234 ms, while snapshot restore takes 190 ms (33x faster, 1,111 ms first DB query). Below, workflow: 1 golden snapshot to N isolated microVMs to inspect and apply. DISK CLONE PER BRANCH (XFS REFLINK COW) Full rootfs copy 1.5+ GB written branchvm reflink ~1 ms · +0 B upfront (4 KB alloc on write) HOST RAM AT 10 CONCURRENT 1 GIB BRANCHES (SHARED 4 KB PAGES) Private RAM copies 10,240 MiB branchvm CoW RAM 620 MiB (62/clone) 16.5x less RAM BOOT TIME TO SERVING ISOLATED BRANCH (124 SAMPLES) Cold microVM boot 6,234 ms Snapshot restore 190 ms 33x faster (1,111 ms 1st DB query, uffd) 1 golden snapshotDockerfile or OCI image N isolated branchesnetns · nftables · no keys Inspect & applylogs · shell · forward · diff
branchvm copy-on-write disk, RAM density, and snapshot boot benchmarks Three comparisons of branchvm against standard approaches. Disk clone: 1.5+ GB copied vs about 1 ms and 0 bytes upfront via XFS reflink. Host RAM at 10 branches: 10,240 MiB private copies vs 620 MiB total (62 MiB per clone, 16.5x less). Boot time: 6,234 ms cold boot vs 190 ms snapshot restore (33x faster). DISK CLONE (XFS REFLINK COW) Full rootfs copy 1.5+ GB branchvm reflink ~1 ms · +0 B upfront HOST RAM · 10 CONCURRENT 1 GIB BRANCHES Private RAM copies 10,240 MiB branchvm CoW RAM 620 MiB (62/clone · 16.5x less) BOOT TIME TO SERVING BRANCH Cold microVM boot 6,234 ms Snapshot restore 190 ms · 33x faster 1 golden snapshot → N microVMs → applyAny Dockerfile/OCI · logs · shell · forward
Measured across 124 samples on 4 arm64 CPUs / 6 GiB RAM (Firecracker v1.18.0), with Linux page caches dropped before cold runs.
~1 ms · +0 B
XFS reflink disk clone (4 KB blocks allocated on write)
62 MiB
RAM per clone at 10 up vs 1,024 MiB private copies (16.5x less)
190 ms
snapshot restore vs 6,234 ms cold boot (33x faster; 1,111 ms DB query)
6 / 6
live attacks blocked · 0 Go deps · any Dockerfile/OCI stack

inkling-lab

2026 · C++ / Metal / llama.cpp

15x faster long-context speed on a 16 GB MacBook Air and three llama.cpp patches for Thinking Machines' Inkling 2 Mini (26.4B looped MoE).

Built within 48 hours of Inkling 2 Mini's release. On a 16 GB Mac, long prompts overflowed RAM onto disk and slowed the model to 1.2 tokens a second. Cutting its temporary memory 8x kept it in RAM and restored 18.4 tokens a second. I also patched llama.cpp to measure layer speed, cut 893 extra GPU steps per token with identical output, and inspect how its weights work.

Inkling 2 Mini 32K context decode throughput on 16 GB M4 Two horizontal bars on a 0 to 20 tok/s axis. Default batch (-b 512) runs at 1.2 tok/s due to swap. Tuned batch (-b 64) runs at 18.4 tok/s, 15x faster. Default (-b 512) 1.2 tok/s (3,404 MiB buffer) Tuned (-b 64) 15x faster 18.4 tok/s 0 5 10 15 20 tokens per second at 32K context
Inkling 2 Mini 32K context decode throughput on 16 GB M4 Two horizontal bars on a 0 to 20 tok/s axis. Default batch (-b 512) runs at 1.2 tok/s due to swap. Tuned batch (-b 64) runs at 18.4 tok/s, 15x faster. Default batch (-b 512) 1.2 tok/s Tuned batch (-b 64) 18.4 tok/s · 15x faster 0 5 10 15 20 tokens per second at 32K context
Inkling 2 Mini 32K-context decode speed on a 16 GB MacBook Air M4. Shrinking the working buffer 8x keeps the 7.35 GiB model out of swap.
18.4 tok/s
32K decode vs 1.2 tok/s default (15x faster; 18.1 tok/s at 65K)
8x
smaller working buffer (3,404 MiB down to 425 MiB)
-893
Metal GPU dispatches cut per token (6,961 to 6,068), bit-exact
3
C++/Metal llama.cpp patches (GPU profiler, inkscope, graph edits)

expert-stream

2026 · C / C++ / llama.cpp

A 284B model running on a 16 GB laptop against a 96 GB memory requirement, with identical output to stock llama.cpp.

DeepSeek V4-Flash is 82.5 GB on disk, so stock llama.cpp crashes after two tokens on a 16 GB laptop. Since each token only needs 6 of 256 experts per layer, my engine caps RAM and streams just those active slices from the SSD. That cuts prompt time from 124 to 95 seconds with identical output, caches 36% of repeat reads, and rules out ten common memory shortcuts.

An 82.5 GB model streamed from SSD into 16 GB of RAM Three bars on one 0 to 100 GB scale: published memory floor of 96 GB, model on disk of 82.5 GB shown as a dashed outline, and this laptop's RAM of 16 GB, highlighted. Below, a flow: the SSD holds 256 experts across 43 layers, each token uses the top 6 per layer, and 1.649 GiB is streamed into RAM. Published memory floor 96 GB Model on disk (NVMe SSD) 82.5 GB This laptop's RAM 16 GB 0 50 100 GB SSD: 256 experts× 43 layers Per token:top 6 per layer RAM: 1.649 GiBstreamed in
An 82.5 GB model streamed from SSD into 16 GB of RAM Three bars on one 0 to 100 GB scale: published memory floor of 96 GB, model on disk of 82.5 GB shown as a dashed outline, and this laptop's RAM of 16 GB, highlighted. Below, a flow: the SSD holds 256 experts across 43 layers, each token uses the top 6 per layer, and 1.649 GiB is streamed into RAM. Published memory floor 96 GB Model on disk (NVMe SSD) 82.5 GB This laptop's RAM 16 GB 0 50 100 GB SSD: 256 experts× 43 layers Per token:top 6 per layer RAM: 1.649 GiBstreamed in
Every token reads 1.649 GiB of expert weights from disk to produce about 700 KB of activations.
82.5 GB
284B model running on 16 GB RAM (published floor: 96 GB)
124 → 95 s
same prompt via overlapped NVMe streaming, byte-identical
36.0%
expert arena hit rate over 32 tokens (0 failed reads)
15 / 15
quality smoke test with thinking enabled (12/15 immediate)

Blogs

Sandboxes from Zero to One

Nov 2026 · 41.7K views on X

Kernels, virtual machines, memory, isolation, and the infrastructure behind AI agents.

When you hand an AI model a terminal, what stops it from stepping outside its task? I wrote this guide while building branchvm to explain sandboxes from the ground up: system calls, containers versus Firecracker microVMs, snapshot restores, shared disk and memory, and offline host proxies, illustrated with nine diagrams and real benchmarks.

Open source

Merged upstream fixes in inference engines, sandbox controllers, MCP servers, and formal math.

  • vLLMFixed frontend chat renderers so PIL image parts render cleanly for Inkling multimodal inputs (#70511).
  • Kubernetes agent-sandboxUpdated the SandboxClaim controller to surface rejected environment-variable injections as EnvVarsInjectionRejected (#2442).
  • Google DeepMind formal-conjecturesMerged Palomar-verified Lean 4 disproof of the ECAI 2025 stability threshold conjecture for all odd N ≥ 7 (#8470).
  • Supabase MCPFixed edge-function import-map path resolution, stale import-map reuse on redeploy, and us-west-2 project region handling (#588, #591, #639).
  • SkyvernReplaced a database-specific distinct step count query with a portable SQL query (#7769).

How I build with agents

I don't think we're constrained by any tech stack anymore. What constrains us now is the system we build for our agents to work in, and how clear we are on what we want to build.

If we don't give our agents a clear goal and talk back and forth on what to build, why it matters, and how it should work, they drift. They fill in the gaps with their own assumptions, and those assumptions are probabilistic because that's all an LLM is: probabilities over numbers. We can't trust them blindly, yet we can't slow down either because everyone is moving fast.

So before starting a project, I figure out what I'm building, why it matters, and what the finished state looks like, with no ambiguity left for the model to guess around. From there, I design the system around the agent: give it the right context and access, push it to check edge cases from every angle, and tell it never to assume. Always verify and source claims in real data. That's how I do agentic development, and how I move across stacks without slowing down.

Experience

BNY Applied AI Engineer

Jul 2024 to now

Banking is a strict place to run probabilistic models: latency budgets are tight, sensitive data cannot leak, and silent failures are unacceptable. I own architecture, evaluation design, and production reliability across our agentic RAG systems, multi-agent workflows, MCP servers, and Python/Go services supporting platforms that move about $100B a day.

Papers reproduced

When a paper or benchmark looks useful, I implement or test it on local hardware to see where the claims hold.

Also built

  • solved-conjectures-HNine open math conjectures solved in pure Lean 4 (zero Mathlib, zero sorry), verified on dual kernels with papers and Python checks.
  • FractalMemAppend-only SQLite and MCP memory for long-running coding agents that preserves prompt caching and exact symbol lookup.
  • nanoserveMLX inference engine for Apple Silicon with continuous batching and prefix caching: 67.7% faster warm-prefix TTFT (77.76 ms), 178.8 tok/s median.
  • ThreadGraphZero-instrumentation Go trace analyzer for goroutine leaks and deadlocks: caught 64 of 68 GoBench bugs with 0 false positives.
  • scout-deterministicFour rule-based reward-hacking scanners for Inspect Scout: 0.4 s vs 560 s for the LLM judge on 26 episodes, $0 token cost, 100% recall.
  • Router Outcome LedgerOffline evaluation harness mining model-routing failure signals with deterministic replay and HMAC privacy. 45/45 tests.
  • Agent BoardPlanner, executors, and a review gate. Nothing commits until the verifier passes.
  • PalimpA local context graph for agents with provenance, temporal recall, and contradiction tracking.
  • Hallucination SentinelA single-pass risk score for LLM output, calibrated into allow, warn, or block.
  • NexusCacheDistributed cache in Go with consistent hashing and etcd discovery. 23.4K ops/s at 713 µs p50.
  • TitanQueueA Redis task queue in Go. When a worker dies, its lease expires and the task comes back.
  • ContextRAGLocal hybrid retrieval: dense vectors plus BM25, rank fusion, and a reranker, served over MCP.
  • GitHub Trending ReportDaily GitHub Trending, sorted into categories and scored by repeat appearances.
  • UnslopAn agent skill that strips AI-writing tells from prose without touching the facts.

Stack

Languages
Python, Go, C, C++, TypeScript, Java, SQL, Lean 4
AI & ML
PyTorch, MLX, llama.cpp, vLLM, Hugging Face, ONNX, WebGPU, fine-tuning, calibration, RAG, evals, MCP
Systems
Apple Metal profiling, Firecracker KVM, Linux netns, nftables, cgroups v2, XFS reflink, overlapped NVMe I/O
Backend
FastAPI, Spring Boot, Node.js, gRPC, Kafka, Redis, PostgreSQL, SQLite
Infra
Docker, Kubernetes, Prometheus, GitHub Actions

About

I like working across the full stack, down to NVMe queue depth and Metal GPU dispatches and up to model calibration and agent tool use. Away from the keyboard, I travel with friends, lift, and spend time outdoors.

If a problem doesn't break the laws of physics, it can be solved, however hard it is. I'm open to research collaborations and Applied AI, ML Systems, or Research Engineering roles focused on inference, post-training, evals, or agent infrastructure. Reach out on X, LinkedIn, or by email.