Lattice
Skip to content

Marlin

librarySelf-hostedgithub.com

Marlin is a self-hosted library in the Inference & Serving layer of the AI stack. Quantised GEMM kernels for near-GPU speed at 4-bit.

By Facts verifiedmethod

Licence
Apache-2.0
Language
CUDA
Cost
free
Owned by
AI Infrastructure

Use Marlin when

Near-GPU throughput from 4-bit weights, as a kernel inside another runtime.

Skip Marlin when

You need a scheduler and a server as well as a kernel.

Turns weights into throughput. See every inference tool.

Badge this entry
Lattice badge: Marlin verified 2026-09
[![Marlin on Lattice: verified 2026-09](https://lattice.kunjshah.in/inference-serving/marlin/badge.svg)](https://lattice.kunjshah.in/inference-serving/marlin)

Rules of thumb

  • Benchmark at your concurrency, not at batch size one. A runtime that wins a single-stream demo can lose badly at fifty concurrent users.
  • Measure time to first token and tokens per second separately. Users feel the first; your GPU bill feels the second.
  • Self-host only when a hosted API fails a measured requirement: cost at volume, data residency or latency. Owning GPUs is an operations job, not a config flag.

Quick answers

Is Marlin open source?
Yes. Marlin is open source under the Apache-2.0 licence. It is free to use.
What are the alternatives to Marlin?
Other options in Inference & Serving include vLLM, SGLang, llama.cpp, Ollama and TensorRT-LLM.

Ask an AI about this page

Opens the assistant with this page’s link and a question already filled in.

Reading on inference

Also in inference

  • vLLM
  • SGLang
  • llama.cpp
  • Ollama
  • TensorRT-LLM
  • Text Generation Inference
  • LM Studio
  • Triton Inference Server
  • llamafile
  • KoboldCpp
  • PowerInfer