Skip to main content

Train and quantize

Fine-tune and quantize models.

  • Fine-tune a model

    LocalAI supports fine-tuning LLMs directly through the API and Web UI. Fine-tuning is powered by pluggable backends that implement a generic gRPC interface, allowing support for different training frameworks and model types.

  • Quantize a model

    LocalAI supports model quantization directly through the API and Web UI. Quantization converts HuggingFace models to GGUF format and compresses them to smaller sizes for efficient inference with llama.cpp. Note This feature is experimental and may change in future releases.