https://github.com/TabbyML/tabby Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code + Explore + All features + Documentation + GitHub Skills + Blog * Solutions + For + Enterprise + Teams + Startups + Education + By Solution + CI/CD & Automation + DevOps + DevSecOps + Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles + Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this organization All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} TabbyML / tabby Public * Notifications * Fork 18 * Star 699 Self-hosted AI coding assistant tabbyml.github.io/tabby License Apache-2.0 license 699 stars 18 forks Star Notifications * Code * Issues 4 * Pull requests 0 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights TabbyML/tabby This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 12 branches 0 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/T] Use Git or checkout with SVN using the web URL. [gh repo clone TabbyM] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @wsxiaoys wsxiaoys Update README.md ... cfbcff6 Apr 6, 2023 Update README.md cfbcff6 Git stats * 181 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .github/workflows Add pages April 6, 2023 18:48 clients/vscode Update README.md April 6, 2023 18:23 deployment Update README.md April 7, 2023 05:34 development feat: hide streamlit menu in production (#50) April 6, 2023 17:21 docs feat: add star badge for admin / openai page. April 6, 2023 20:36 tabby Revert "fix: add api endpoint info in admin panel" April 7, 2023 00:00 tests test: support TABBY_API_HOST in k6 tests April 4, 2023 11:14 .dockerignore Add gptj converter (#19) March 27, 2023 11:12 .gitattributes Add docker compose (#3) March 22, 2023 02:42 .gitignore Add supervisord.pid to gitignore March 29, 2023 16:41 .pre-commit-config.yaml feat: support stopping words in python backend. (#32) March 29, 2023 20:23 Dockerfile feat: integrate caddy, re-org paths (#49) April 6, 2023 17:02 LICENSE Create LICENSE March 16, 2023 17:28 Makefile test: support TABBY_API_HOST in k6 tests April 4, 2023 11:14 README.md Update "phrase" to "phase" (#53) April 7, 2023 02:51 poetry.lock Revert "fix: add api endpoint info in admin panel" April 7, 2023 00:00 pyproject.toml Revert "fix: add api endpoint info in admin panel" April 7, 2023 00:00 View code [ ] Tabby Features Demo Get started Docker Skypilot API documentation Development README.md Tabby License Code style: black Docker build status architecture Self-hosted AI coding assistant. An opensource / on-prem alternative to GitHub Copilot. Warning Tabby is still in the alpha phase Features * Self-contained, with no need for a DBMS or cloud service * Web UI for visualizing and configuration models and MLOps. * OpenAPI interface, easy to integrate with existing infrastructure (e.g Cloud IDE). * Consumer level GPU supports (FP-16 weight loading with various optimization). Demo Open in Spaces Demo Get started Docker The easiest way of getting started is using the docker image: # Create data dir and grant owner to 1000 (Tabby run as uid 1000 in container) mkdir -p data/hf_cache && chown -R 1000 data docker run \ -it --rm \ -v ./data:/data \ -v ./data/hf_cache:/home/app/.cache/huggingface \ -p 5000:5000 \ -e MODEL_NAME=TabbyML/J-350M \ tabbyml/tabby To use the GPU backend (triton) for a faster inference speed: docker run \ --gpus all \ -it --rm \ -v ./data:/data \ -v ./data/hf_cache:/home/app/.cache/huggingface \ -p 5000:5000 \ -e MODEL_NAME=TabbyML/J-350M \ -e MODEL_BACKEND=triton \ tabbyml/tabby Note: To use GPUs, you need to install the NVIDIA Container Toolkit. We also recommend using NVIDIA drivers with CUDA version 11.8 or higher. You can then query the server using /v1/completions endpoint: curl -X POST http://localhost:5000/v1/completions -H 'Content-Type: application/json' --data '{ "prompt": "def binarySearch(arr, left, right, x):\n mid = (left +" }' We also provides an interactive playground in admin panel localhost:5000/_admin image Skypilot See deployment/skypilot/README.md API documentation Tabby opens an FastAPI server at localhost:5000, which embeds an OpenAPI documentation of the HTTP API. Development Go to development directory. make dev or make dev-triton # Turn on triton backend (for cuda env developers) About Self-hosted AI coding assistant tabbyml.github.io/tabby Resources Readme License Apache-2.0 license Stars 699 stars Watchers 3 watching Forks 18 forks Report repository Releases No releases published Packages 2 Contributors 3 * @wsxiaoys wsxiaoys Meng Zhang * @icycodes icycodes Zhiming Ma * @michaelkofron michaelkofron Michael Kofron Languages * Python 59.0% * TypeScript 17.4% * JavaScript 12.8% * Shell 5.0% * Dockerfile 2.5% * HTML 1.7% * Makefile 1.6% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.