Coder Social home page Coder Social logo

miklosbarabas / aikit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sozercan/aikit

0.0 0.0 0.0 1.4 MB

๐Ÿ—๏ธ AI + BuildKit = AIKit: Build and deploy open-source LLMs easily!

License: MIT License

Go 75.67% Makefile 3.29% Dockerfile 0.76% Python 6.82% JavaScript 9.02% CSS 4.45%

aikit's Introduction

AIKit โœจ


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

AIKit offers two 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-source LLMs!

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

๐Ÿ‘‰ 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/sozercan/llama3:8b
curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d '{
    "model": "llama-3-8b-instruct",
    "messages": [{"role": "user", "content": "explain kubernetes in a sentence"}]
  }'

Output should be similar to:

{"created":1713494426,"object":"chat.completion","id":"fce01ee0-7b5a-452d-8f98-b6cb406a1067","model":"llama-3-8b-instruct","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."}}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

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

Model Optimization Parameters Command Model Name License
๐Ÿฆ™ Llama 3 Instruct 8B docker run -d --rm -p 8080:8080 ghcr.io/sozercan/llama3:8b llama-3-8b-instruct Llama
๐Ÿฆ™ Llama 3 Instruct 70B docker run -d --rm -p 8080:8080 ghcr.io/sozercan/llama3:70b llama-3-70b-instruct Llama
๐Ÿฆ™ Llama 2 Chat 7B docker run -d --rm -p 8080:8080 ghcr.io/sozercan/llama2:7b llama-2-7b-chat Llama
๐Ÿฆ™ Llama 2 Chat 13B docker run -d --rm -p 8080:8080 ghcr.io/sozercan/llama2:13b llama-2-13b-chat Llama
โ“‚๏ธ Mixtral Instruct 8x7B docker run -d --rm -p 8080:8080 ghcr.io/sozercan/mixtral:8x7b mixtral-8x7b-instruct Apache
๐Ÿ…ฟ๏ธ Phi 3 Instruct 3.8B docker run -d --rm -p 8080:8080 ghcr.io/sozercan/phi3:3.8b phi-3-3.8b MIT

NVIDIA CUDA

Model Optimization Parameters Command Model Name License
๐Ÿฆ™ Llama 3 Instruct 8B docker run -d --rm --gpus all -p 8080:8080 ghcr.io/sozercan/llama3:8b-cuda llama-3-8b-instruct Llama
๐Ÿฆ™ Llama 3 Instruct 70B docker run -d --rm --gpus all -p 8080:8080 ghcr.io/sozercan/llama3:70b-cuda llama-3-70b-instruct Llama
๐Ÿฆ™ Llama 2 Chat 7B docker run -d --rm --gpus all -p 8080:8080 ghcr.io/sozercan/llama2:7b-cuda llama-2-7b-chat Llama
๐Ÿฆ™ Llama 2 Chat 13B docker run -d --rm --gpus all -p 8080:8080 ghcr.io/sozercan/llama2:13b-cuda llama-2-13b-chat Llama
โ“‚๏ธ Mixtral Instruct 8x7B docker run -d --rm --gpus all -p 8080:8080 ghcr.io/sozercan/mixtral:8x7b-cuda mixtral-8x7b-instruct Apache
๐Ÿ…ฟ๏ธ Phi 3 Instruct 3.8B docker run -d --rm --gpus all -p 8080:8080 ghcr.io/sozercan/phi3:3.8b-cuda phi-3-3.8b MIT

What's next?

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

aikit's People

Contributors

sozercan avatar dependabot[bot] avatar step-security-bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.