zkytech / tabby

Self-hosted AI coding assistant

Home Page:https://tabby.tabbyml.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tabby

this project is forked from TabbyML/tabby

modified by zkytech

change in this fork

  1. For users from china and those who want to deploy this project in offline environment: remove the code to download model from network, direct load from local.
  2. Package model files into docker image.
  3. Change entry point command to /opt/tabby/bin/tabby serve --model TabbyML/${MODEL_NAME} --device cuda \$1
  4. GPU is required, no CPU support because of bad experience.

simple usage example

docker run

docker run -it --gpus all -p 8080:8080 --model zhangkunyuan/tabby:StarCoder-1B-latest --device cuda

docker compose

services:
  tabby:
    image: zhangkunyuan/tabby:StarCoder-1B-latest
    restart: always
    ports:
      - 8080:8080
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities: [gpu]

About

Self-hosted AI coding assistant

https://tabby.tabbyml.com/

License:Other


Languages

Language:Rust 79.9%Language:Python 15.3%Language:C++ 2.6%Language:Scheme 0.5%Language:Shell 0.5%Language:Dockerfile 0.5%Language:Makefile 0.4%Language:JavaScript 0.3%Language:PowerShell 0.0%