aikit

kaito-projectMIT活跃维护

用 Docker 和 BuildKit 把开源大模型的微调、构建与部署串成一条流水线,并直接发布到 Kubernetes 上运行推理。

🏗️ Fine-tune, build, and deploy open-source LLMs easily!

v0.23.2发布于 2026-10-09 18:02 UTC543star +1 / 7 天56fork同步于 2026-11-10 17:58 UTC

怎么上手

由 README 提炼,执行前请确认
docker run -d --rm -p 8080:8080 ghcr.io/kaito-project/aikit/qwen3.5:4b
硬件要求按 README 说明

CPU 即可运行(AMD64/ARM64 均可,自动选最优指令集),无需 GPU;GPU 加速支持 NVIDIA CUDA 和 AMD ROCm,用 --gpus all 启用。README 未给出具体显存要求。

纯 CPU 可运行支持 Apple Silicon需要 CUDA支持 ROCm / AMD有 Docker 镜像
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

用 Docker 一条命令跑起开源 LLM,还能微调、打包成 OCI 镜像分发

用 Docker 和 BuildKit 把开源大模型的微调、构建与部署串成一条流水线,并直接发布到 Kubernetes 上运行推理。

核心能力

  • 基于 LocalAI 提供 OpenAI 兼容 REST API
  • 用 Unsloth 做快速省显存的微调
  • 把模型打包成 OCI 制品推到任意兼容仓库
  • 声明式配置推理与微调,支持 GGUF/GGML
  • 单镜像可托管多个模型,支持多模态与图像生成

容易踩的坑

需先装 Docker 或 Podman;GPU 加速要额外按文档配置并加 --gpus all;部分模型(如 Llama)有独立许可证需自行确认

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v0.23.2
  1. v0.23.2最新正式版2026-10-09 · 2026-10-09 18:02 UTC

    Chores

  2. v0.23.12026-10-09 · 2026-10-09 06:52 UTC
    查看更新说明

    Chores

  3. v0.23.02026-09-18 · 2026-09-18 22:13 UTC
    查看更新说明

    Features

    Bug Fixes

    Chores

  4. v0.22.12026-08-08 · 2026-08-08 20:26 UTC
    查看更新说明

    Notable Changes

    • 🎯 Major fine-tuning improvements. Train with more dataset formats and sources, combine multiple datasets, tune preferences with DPO, focus training on assistant responses, and export portable PEFT LoRA adapters. Fine-tuning is also more reproducible and cache-efficient, with safer GPU access and immutable model snapshots. Existing Alpaca, full-sequence loss, and GGUF behavior remain the defaults. #814 #815 #827 #830 #831 #832 #833 #834 #835 #837 #838
    • 🟠 AMD ROCm and Strix Halo support. Build hardware-accelerated inference images for supported AMD GPUs. Thanks @keithmattix for this contribution. #771
    • ⚡ Faster builds and smaller images. Project benchmarks show large BuildKit graphs improving by up to 82% and 1,000-file packaging operations by 76–89%. Measured llama.cpp runner images are also 29–38% smaller. #805 #819
    • 🚀 Preload models at startup. The new opt-in loadToMemory setting can warm selected LocalAI models when a container starts. #836

    What's changed?

    Features

    • Add AMD ROCm and Strix Halo inference support. #771
    • Expand fine-tuning dataset formats, loaders, and multi-dataset support. #827 #830 #831 #832 #833 #834
    • Add DPO preference tuning. #835
    • Load configured inference models at startup. #836
    • Export portable PEFT LoRA adapter bundles. #838

    Bug Fixes

    • Restore compatibility with the current Unsloth and TRL stack. #814
    • Regenerate cached model configurations when switching inference backends. #818
    • Harden remote dataset loading, validation, timeouts, and cache handling. #837

    Performance Improvements

    • Optimize BuildKit graphs, local contexts, and model packaging. #805
    • Make Unsloth builds reproducible and cache-aware. #815
    • Reduce published inference runner image sizes. #819

    Chores

    • Update LocalAI to v4.7.1. #813
    • Update Unsloth and Unsloth Zoo to 2026.8.3. #828

    New Contributors

    Full Changelog: https://github.com/kaito-project/aikit/compare/v0.21.0...v0.22.1

  5. v0.21.02026-03-17 · 2026-03-17 22:08 UTC
    查看更新说明

    Features

    Bug Fixes

    Documentation

    Chores

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    AIKit ✨

    AIKit is a comprehensive platform to quickly get started to host, deploy, build and fine-tune large language models (LLMs).

    AIKit offers three main capabilities:

    • Inference: AIKit uses LocalAI, which supports a wide range of inference capabilities and formats. LocalAI provides a drop-in replacement REST API that is OpenAI API compatible, so you can use any OpenAI API compatible client, such as Kubectl AI, Chatbot-UI and many more, to send requests to open LLMs!

    • Fine-Tuning: AIKit offers an extensible fine-tuning interface. It supports Unsloth for fast, memory efficient, and easy fine-tuning experience.

    • OCI Packaging: Package models as OCI artifacts for distribution through any OCI-compliant registry. Supports CNCF ModelPack specification and generic artifact packaging.

    👉 For full documentation, please see AIKit website!

    Features

    Quick Start

    You can get started with AIKit quickly on your local machine without a GPU!

    docker run -d --rm -p 8080:8080 ghcr.io/kaito-project/aikit/qwen3.5:4b
    

    After running this, navigate to http://localhost:8080/chat to access the WebUI!

    API

    AIKit provides an OpenAI API compatible endpoint, so you can use any OpenAI API compatible client to send requests to open LLMs!

    curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d '{
        "model": "qwen-3.5-4b",
        "messages": [{"role": "user", "content": "explain kubernetes in a sentence"}]
      }'
    

    Output should be similar to:

    {
      // ...
        "model": "qwen-3.5-4b",
        "choices": [
            {
                "index": 0,
                "finish_reason": "stop",
                "message": {
                    "role": "assistant",
                    "content": "Kubernetes is an open-source container orchestration system that automates the deployment, scaling, and management of applications and services, allowing developers to focus on writing code rather than managing infrastructure."
                }
            }
        ],
      // ...
    }
    

    That's it! 🎉 API is OpenAI compatible so this is a drop-in replacement for any OpenAI API compatible client.

    Pre-made Models

    AIKit comes with pre-made models that you can use out-of-the-box!

    If it doesn't include a specific model, you can always create your own images, and host in a container registry of your choice!

    CPU

    [!NOTE] AIKit supports both AMD64 and ARM64 CPUs. You can run the same command on either architecture, and Docker will automatically pull the correct image for your CPU.

    Depending on your CPU capabilities, AIKit will automatically select the most optimized instruction set.

    ModelOptimizationParametersCommandModel NameLicense
    Qwen 3.5Instruct2Bdocker run -d --rm -p 8080:8080 ghcr.io/kaito-project/aikit/qwen3.5:2bqwen-3.5-2bApache 2.0
    Qwen 3.5Instruct4Bdocker run -d --rm -p 8080:8080 ghcr.io/kaito-project/aikit/qwen3.5:4bqwen-3.5-4bApache 2.0
    Qwen 3.5Instruct9Bdocker run -d --rm -p 8080:8080 ghcr.io/kaito-project/aikit/qwen3.5:9bqwen-3.5-9bApache 2.0
    Qwen 3.8Instruct27Bdocker run -d --rm -p 8080:8080 ghcr.io/kaito-project/aikit/qwen3.8:27bqwen-3.8-27bApache 2.0
    Qwen3-TTS BaseText to speech1.7Bdocker run -d --rm -p 127.0.0.1:8080:8080 --mount "type=bind,source=$(pwd)/reference.wav,target=/models/reference.wav,readonly" ghcr.io/kaito-project/aikit/qwen3-tts:1.7b-baseqwen3-ttsApache 2.0
    🔡 Gemma 4 E2BInstruct5.1Bdocker run -d --rm -p 8080:8080 ghcr.io/kaito-project/aikit/gemma4:e2bgemma-4-e2b-instructApache 2.0
    Devstral Small 2Code24Bdocker run -d --rm -p 8080:8080 ghcr.io/kaito-project/aikit/devstral-small2:24bdevstral-small-2-24b-instructApache 2.0
    🦙 Llama 3.2Instruct1Bdocker run -d --rm -p 8080:8080 ghcr.io/kaito-project/aikit/llama3.2:1bllama-3.2-1b-instructLlama
    🦙 Llama 3.2Instruct3Bdocker run -d --rm -p 8080:8080 ghcr.io/kaito-project/aikit/llama3.2:3bllama-3.2-3b-instructLlama
    🦙 Llama 3.1Instruct8Bdocker run -d --rm -p 8080:8080 ghcr.io/kaito-project/aikit/llama3.1:8bllama-3.1-8b-instructLlama
    🦙 Llama 3.3Instruct70Bdocker run -d --rm -p 8080:8080 ghcr.io/kaito-project/aikit/llama3.3:70bllama-3.3-70b-instructLlama
    🅿️ Phi 4Instruct14Bdocker run -d --rm -p 8080:8080 ghcr.io/kaito-project/aikit/phi4:14bphi-4-14b-instructMIT
    🤖 GPT-OSS20Bdocker run -d --rm -p 8080:8080 ghcr.io/kaito-project/aikit/gpt-oss:20bgpt-oss-20bApache 2.0
    🤖 GPT-OSS120Bdocker run -d --rm -p 8080:8080 ghcr.io/kaito-project/aikit/gpt-oss:120bgpt-oss-120bApache 2.0

    NVIDIA CUDA

    [!NOTE] To enable NVIDIA GPU acceleration, please see GPU Acceleration.

    Published pre-made GPU images include NVIDIA CUDA libraries. For models also listed in the CPU section, the NVIDIA CUDA commands below add the --gpus all flag.

    ModelOptimizationParametersCommandModel NameLicense
    Qwen 3.5Instruct2Bdocker run -d --rm --gpus all -p 8080:8080 ghcr.io/kaito-project/aikit/qwen3.5:2bqwen-3.5-2bApache 2.0
    Qwen 3.5Instruct4Bdocker run -d --rm --gpus all -p 8080:8080 ghcr.io/kaito-project/aikit/qwen3.5:4bqwen-3.5-4bApache 2.0
    Qwen 3.5Instruct9Bdocker run -d --rm --gpus all -p 8080:8080 ghcr.io/kaito-project/aikit/qwen3.5:9bqwen-3.5-9bApache 2.0
    Qwen 3.8Instruct27Bdocker run -d --rm --gpus all -p 8080:8080 ghcr.io/kaito-project/aikit/qwen3.8:27bqwen-3.8-27bApache 2.0
    Qwen3-TTS BaseText to speech1.7Bdocker run -d --rm --gpus all -p 127.0.0.1:8080:8080 --mount "type=bind,source=$(pwd)/reference.wav,target=/models/reference.wav,readonly" ghcr.io/kaito-project/aikit/qwen3-tts:1.7b-baseqwen3-ttsApache 2.0
    🔡 Gemma 4 E2BInstruct5.1Bdocker run -d --rm --gpus all -p 8080:8080 ghcr.io/kaito-project/aikit/gemma4:e2bgemma-4-e2b-instructApache 2.0
    Devstral Small 2Code24Bdocker run -d --rm --gpus all -p 8080:8080 ghcr.io/kaito-project/aikit/devstral-small2:24bdevstral-small-2-24b-instructApache 2.0
    📸 Flux 2 KleinText to image4Bdocker run -d --rm --gpus all -p 8080:8080 ghcr.io/kaito-project/aikit/flux2:klein-4bflux-2-klein-4bApache 2.0
    🦙 Llama 3.2Instruct1Bdocker run -d --rm --gpus all -p 8080:8080 ghcr.io/kaito-project/aikit/llama3.2:1bllama-3.2-1b-instructLlama
    🦙 Llama 3.2Instruct3Bdocker run -d --rm --gpus all -p 8080:8080 ghcr.io/kaito-project/aikit/llama3.2:3bllama-3.2-3b-instructLlama
    🦙 Llama 3.1Instruct8Bdocker run -d --rm --gpus all -p 8080:8080 ghcr.io/kaito-project/aikit/llama3.1:8bllama-3.1-8b-instructLlama
    🦙 Llama 3.3Instruct70Bdocker run -d --rm --gpus all -p 8080:8080 ghcr.io/kaito-project/aikit/llama3.3:70bllama-3.3-70b-instructLlama
    🅿️ Phi 4Instruct14Bdocker run -d --rm --gpus all -p 8080:8080 ghcr.io/kaito-project/aikit/phi4:14bphi-4-14b-instructMIT
    🤖 GPT-OSS20Bdocker run -d --rm --gpus all -p 8080:8080 ghcr.io/kaito-project/aikit/gpt-oss:20bgpt-oss-20bApache 2.0
    🤖 GPT-OSS120Bdocker run -d --rm --gpus all -p 8080:8080 ghcr.io/kaito-project/aikit/gpt-oss:120bgpt-oss-120bApache 2.0

    AMD ROCm (experimental)

    [!NOTE] AMD GPU acceleration is currently available for custom llama-cpp images built with runtime: rocm. Published pre-made model images are currently CUDA-based, so for AMD GPUs please create your own image and follow the ROCm instructions in GPU Acceleration.

    ROCm support currently applies to the llama-cpp backend on linux/amd64.

    Apple Silicon (experimental)

    [!NOTE] To enable GPU acceleration on Apple Silicon, please see Podman Desktop documentation. For more information, please see GPU Acceleration.

    Apple Silicon is an experimental runtime and it may change in the future. This runtime is specific to Apple Silicon only, and it will not work as expected on other architectures, including Intel Macs.

    Only gguf models are supported on Apple Silicon.

    ModelOptimizationParametersCommandModel NameLicense
    Qwen 3.5Instruct2Bpodman run -d --rm --device /dev/dri -p 8080:8080 ghcr.io/kaito-project/aikit/applesilicon/qwen3.5:2bqwen-3.5-2bApache 2.0
    Qwen 3.5Instruct4Bpodman run -d --rm --device /dev/dri -p 8080:8080 ghcr.io/kaito-project/aikit/applesilicon/qwen3.5:4bqwen-3.5-4bApache 2.0
    Qwen 3.5Instruct9Bpodman run -d --rm --device /dev/dri -p 8080:8080 ghcr.io/kaito-project/aikit/applesilicon/qwen3.5:9bqwen-3.5-9bApache 2.0
    Qwen 3.8Instruct27Bpodman run -d --rm --device /dev/dri -p 8080:8080 ghcr.io/kaito-project/aikit/applesilicon/qwen3.8:27bqwen-3.8-27bApache 2.0
    Qwen3-TTS BaseText to speech1.7Bpodman run -d --rm --device /dev/dri -p 127.0.0.1:8080:8080 --mount "type=bind,source=$(pwd)/reference.wav,target=/models/reference.wav,readonly" ghcr.io/kaito-project/aikit/applesilicon/qwen3-tts:1.7b-baseqwen3-ttsApache 2.0
    🔡 Gemma 4 E2BInstruct5.1Bpodman run -d --rm --device /dev/dri -p 8080:8080 ghcr.io/kaito-project/aikit/applesilicon/gemma4:e2bgemma-4-e2b-instructApache 2.0
    Devstral Small 2Code24Bpodman run -d --rm --device /dev/dri -p 8080:8080 ghcr.io/kaito-project/aikit/applesilicon/devstral-small2:24bdevstral-small-2-24b-instructApache 2.0
    🦙 Llama 3.2Instruct1Bpodman run -d --rm --device /dev/dri -p 8080:8080 ghcr.io/kaito-project/aikit/applesilicon/llama3.2:1bllama-3.2-1b-instructLlama
    🦙 Llama 3.2Instruct3Bpodman run -d --rm --device /dev/dri -p 8080:8080 ghcr.io/kaito-project/aikit/applesilicon/llama3.2:3bllama-3.2-3b-instructLlama
    🦙 Llama 3.1Instruct8Bpodman run -d --rm --device /dev/dri -p 8080:8080 ghcr.io/kaito-project/aikit/applesilicon/llama3.1:8bllama-3.1-8b-instructLlama
    🅿️ Phi 4Instruct14Bpodman run -d --rm --device /dev/dri -p 8080:8080 ghcr.io/kaito-project/aikit/applesilicon/phi4:14bphi-4-14b-instructMIT

    Contributing

    Want to contribute to AIKit? Check out our Contributing Guide for development setup, testing instructions, and contribution guidelines.

    What's next?

    👉 For more information and how to fine tune models or create your own images, please see AIKit website!