WhoBuilt

The Small Model Infrastructure Nobody Built (So We Did)

May 5, 2026· 18 min· 35K views·Watch on YouTube

Speaker

Filip Makraduli of Superlinked explains how the Superlinked Inference Engine supports small model inference for AI search and document processing, drawing on trials with Chroma, Qdrant, Weaviate, and LanceDB.

Why small models matter for agents

Makraduli says context quality degrades as context grows, so preprocessing data with small models can help agents work with less context. He gives examples including named entity recognition for building knowledge graphs, filtering input, and using models for tool calling. At Superlinked, the team used the inference engine for taxonomy classification in an e-commerce store.

Why adding GPUs is not enough

Embedding models, rerankers, and named entity recognition models can fit in a few gigabytes of memory, so dedicating a GPU to each can leave resources idle. The engine can hot-swap models on one GPU and uses least recently used eviction. Makraduli also describes routing, autoscaling, queuing, and GPU provisioning as production needs beyond serving a model through an API.

Adapting support across model architectures

Makraduli frames inference as a combination of model support and infrastructure. Models such as BERT, Qwen, ModernBERT, and ColBERT differ in attention, normalization, positional embeddings, and outputs, so a universal runtime cannot handle them all as-is. The team adapts forward passes and attention, including variable-length FlashAttention to reduce computation spent on padding.

Packaging the infrastructure

The system exposes three API primitives: encode, score, and extract. A router and queue distribute work across GPU pools, while Prometheus metrics and KEDA autoscaling help provision resources and avoid idle GPUs. Makraduli says users can switch models through configuration and deploy with Terraform, Helm charts, or Docker images; the project is open source under the name Sie.

Takeaways

  • Preprocess and organize data with small models to give agents more useful, manageable context.
  • Share GPUs across small models with hot-swapping and eviction instead of reserving one GPU per model.
  • Supporting many model families requires adapting their forward passes and attention mechanisms.
  • Treat routing, queues, autoscaling, and GPU provisioning as part of inference infrastructure.
  • Make model selection configurable so teams can change models without rebuilding their deployment.

Mentioned in this talk

Search inside this talk

What was claimed 12

Show all 12 facts

Related talks