Introduction

ModelStill turns one narrow LLM task into a small model you own, proves it is as good as the cloud model, serves it with the cloud model as fallback, and keeps checking it.

ModelStill is a library and a self-hosted dashboard for one job: deciding, with numbers you can trust, whether a cheaper or self-trained model can take over a call your application sends to a cloud LLM today.

It is a library first. You can use it only to write evals and gates, or go all the way to training a small student model and serving it.

What it does

  • Record. Read the calls you already log (Langfuse, Braintrust, OpenTelemetry GenAI spans, LiteLLM spend logs, any JSONL) into a dataset.
  • Build eval sets. Turn records into benchmark cases, version them in the dashboard, and send disagreements to a human review queue.
  • Score with intervals. Every score carries a 95% interval: exact Clopper-Pearson for pass/fail scores, a seeded bootstrap otherwise. A single number is never the result.
  • Gate changes. Compare a candidate with the accepted baseline case by case. The gate checks the lower bound of the paired difference, flip rate, cost ratio and p95 latency, and stores every threshold and measured value.
  • Distil. Train a LoRA or full-weight student on recorded answers, on your own GPU host or on Modal.
  • Serve. Put the student behind the task's existing LiteLLM name with the ModelStill plugin. Roll out off, then shadow, then serve. Roll back with mode: off.
  • Watch. Known-answer canaries, temperature-0 drift hashes and a log-prob watchdog catch a model that changes behind an unchanged name.

How a task moves through it

  1. Spec. One YAML file per task: instruction, output schema, requirements, teachers, judge, gate thresholds, training, serving and monitoring settings.
  2. Label. Calls are answered by two teacher models; disagreements go to a person.
  3. Train. A small model is trained with several seeds.
  4. Score. A judge from a different model family scores it, and scores are reported with exact intervals.
  5. Gate. Quality lower bound, cost, latency and flip rate decide whether it ships.
  6. Serve. The student answers when it is confident; otherwise the cloud model answers. Both answers are logged.
  7. Watch. Canaries and drift checks, with a fallback to the cloud model when something breaks.

ModelStill is self-hosted today. There is no hosted service and no public URL. The examples use the local defaults: the API on http://localhost:8787, the dashboard on http://localhost:4323 and the MCP server on http://localhost:3104/mcp. The Python package is not on PyPI yet; install it from the repository.

A first look

Terminal
modelstill spec validate tasks/<task>/spec.yaml
modelstill eval runs history.jsonl
modelstill eval compare history.jsonl <before> <after>

Explore the docs

On this page