Overview of llmaz ModelLoader
maininitContainer within an inference Service to prepare model weights before the main inference process begins.repository·main·Indexed 43 days ago
https://github.com/inftyai/llmazA production-ready inference platform for running Large Language Models (LLMs) on Kubernetes. It abstracts the management of diverse inference backends—including vLLM, SGLang, llama.cpp, TensorRT-LLM, TGI, and ollama—across heterogeneous hardware and distributed serving environments. Features include Horizontal Pod Autoscaling (HPA), speculative decoding, multi-host inference, and GPU-aware autoscaling integration with Karpenter for AWS Spot instances.
initContainer within an inference Service to prepare model weights before the main inference process begins./lima:z/) is a production-ready inference platform for large language models (LLMs) designed to run on Kubernetes. It is built to integrate closely with state-of-the-art inference backends, enabling the deployment of leading-edge research into cloud environments.The llmaz repository is organized into several key directories that separate binaries, deployment logic, and core application code:
bin/: Contains binaries used by the project (e.g., kustomize, ginkgo).chart/: Contains Helm charts for deployment.cmd/: Contains the main entry points for the application.docs/: Contains documentation, including examples and installation guidance.llmaz/: Contains the model loader logic.pkg/: Contains the primary logic for Kubernetes controllers.llmaz # root
├── bin # where the binaries locates, like the kustomize, ginkgo, etc.
├── chart # where the helm chart locates
├── cmd # where the main entry locates
├── docs # where all the documents locate, like examples, installation guidance, etc.
├── llmaz # where the model loader logic locates
├── pkg # where the main logic for Kubernetes controllers locatesllmaz is a production-ready inference platform for LLMs on Kubernetes with the following capabilities:
llmaz supports a wide variety of inference backends, allowing you to integrate different serving frameworks depending on your hardware and performance requirements. Supported backends include:
Heterogeneous Cluster Support allows the InftyAI scheduler to manage workloads across different GPU types (e.g., mixing A100, A10, and 4090 GPUs). This concept is known as Resource Fungibility.
By using the ResourceFungibility plugin in the InftyAI scheduler, you can schedule workloads on up to 8 alternative GPU types when high-end GPUs are unavailable. This helps maintain Service Level Objectives (SLOs) and optimizes costs by utilizing available, diverse hardware.
The Metric Aggregator is a proposed component designed to handle the unique scheduling challenges of GenAI workloads. Unlike traditional services that use simple round-robin or least-connection algorithms, GenAI inference requires advanced scheduling based on heavy computational metrics.
The aggregator collects indicators from inference engines to enable latency-aware and resource-aware dispatching. This allows for more intelligent routing decisions in clusters where inference time is significant and variable.
When implementing or using metric-based routing with the aggregator, the following constraints and behaviors apply:
llmaz separates concerns between two primary roles to hide infrastructure complexity:
This separation allows users to use high-level templates while still allowing the platform to optimize configurations or allowing advanced users to override them.
The Metrics Aggregator (MA) currently functions as both a control plane (to sync metrics) and a data plane. It consists of two primary components: