MORRIS LOCAL AI FIELD NOTES 繁體中文 ↗

03 / 07 · Inference runtime

Choose an LLM inference runtime and serving framework

LLM Inference Engines and Serving Frameworks

Key concepts

Checkpoint

Colleagues need local coding and document tools. What should the inference software optimize first?

  1. Fast onboarding · Ollama

    Fits repeatable onboarding and common client integrations.

    Tradeoffs · Convenience still requires feature checks, authentication, and monitoring for shared service.

    Verify · Rebuild from a clean environment and verify local execution, API, and real tool calls.

  2. Control residency · llama.cpp / Strata

    Fits explicit tuning of backends, context, quantization, or supported hybrid MoE.

    Tradeoffs · More controls require pinned versions, launch configurations, and regression records.

    Verify · Save reproducible commands and measure quality, memory peaks, and latency.

  3. Shared serving · vLLM / SGLang

    Fits concurrent requests and service-level throughput targets.

    Tradeoffs · Requires supported models and accelerators, deployment work, and capacity planning.

    Verify · Load-test mixed request lengths and inspect queueing, first-token, and completion latency.

Hands-on check

Record the model, runtime version, and launch method, then reproduce one local inference run.

References

Illustration credits

← Back to the field lab