Inkling 2 Mini for Inkling 2 Mini
Can a 27B-class model automatically optimize its own inference infra for a specific workload?
Task-specific engine is emerging
The more specific the workload, the faster the inference engine we can build, almost without exception. HPC has always advanced on the back of narrower workloads and tighter constraints. If you know the shape of the traffic that's coming, you can design and tune kernels for exactly that shape.
This used to be out of reach. Co-optimizing the model, the hardware and the software stack for each individual workload is extremely labor-intensive, so in practice people stopped at model-level, general-purpose engines. LLMs and agents change that. State-of-the-art coding agents such as Claude Code and Codex are now very good at writing kernels, so task-specific engines have become possible, and they are the way forward.
Does it hold for a model on your desk?
One question kept bugging us, though. Frontier-scale models with hundreds of billions or even trillions of parameters can already optimize their own inference engines to some degree. Does that hypothesis of self-optimization still hold for models small enough to run on a desktop?
To find out, we ran an “Inkling 2 Mini for Inkling 2 Mini” experiment with ELLIS and EvolveVista.
The workload
We picked an everyday workload: read a codebase locally and answer questions about it. It serves a single local user, so the batch size is small. The codebase is the input, so the input is long, and the answers are short. That makes it a classic long-input, short-output, small-batch workflow.
Our baseline was the latest branch of llama.cpp. We asked Inkling 2 Mini to build a task-specific inference engine for this workload, with one goal: be as much faster than llama.cpp on this workload as possible.
What the agent tried
Using ELLIS's iteration loop, Inkling 2 Mini ran for 30+ rounds, with Claude Code as its harness. Along the way it showed the full range of inference-engineering skills:
- FrameworksTried both MLX-LM and llama.cpp.
- Inference optimizationTried speculative decoding, quantization and kernel optimization.
- Borrowing from the communityTried porting existing community kernels into its own engine.
Staying out of local optima
The most common failure of coding agents on systems-optimization tasks is getting stuck in a local optimum during exploration. ELLIS handles this with tree-structured version management. The agent always knows where it sits in the iteration history, and a set of algorithms helps choose which node each new round starts from. Past exploration is kept and built on, without the search getting trapped in a local optimum.
Result
The final engine was 1.49× faster than the latest llama.cpp branch on the hidden test set. That is exactly the kind of speedup we wanted the agent to find for this workload.
Every version of the engine Inkling 2 Mini wrote for itself is open source, one branch per session, in Inkling2Mini-for-Inkling2Mini.
How fast this has changed
- Before 2025This kind of optimization typically took an inference engineer several weeks.
- Before 2026It typically took Claude Code or Codex paired with a state-of-the-art closed model.
- The last month of 2026A 27B-class model that runs on a personal computer did it on its own in 20 hours.
This means that in the future, even fully offline, a local model could adapt its own inference engine to a specific local workload. And as models get better, those 20 hours will keep shrinking.
Task-specific inference engines are emerging. Feel free to try ELLIS on similar tasks.
The pieces in the video
- ELLISA self-evolving framework for verifiable optimization. Fresh agent runs investigate the current state of the search and exploit or explore accordingly.
- EvolveVistaWatch the search unfold. Each run joins the lineage tree as it lands, and the curve beside it tracks how far performance has climbed.
- TraceVistaSee what an agent actually did. Start from the big picture, unfold phases and actions, and trace any claim back to the original records.