OpenPipe
OpenPipe/OpenPipe
Turn expensive prompts into cheap fine-tuned models
Overview
OpenPipe is an open-source platform for fine-tuning and hosting smaller, cost-effective models tailored to specific needs. It integrates with OpenAI's SDK and supports model comparison against base models.
Categories
Tags
Similar tools
transformers
huggingface/transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models
open-webui
open-webui/open-webui
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
LLMs-from-scratch
rasbt/LLMs-from-scratch
Implement a ChatGPT-like LLM in PyTorch from scratch
vllm
vllm-project/vllm
A high-throughput and memory-efficient inference and serving engine for LLMs
rtk
rtk-ai/rtk
CLI proxy reducing LLM token consumption by 60-90%
unsloth
unslothai/unsloth
Unsloth Studio is a web UI for training and running open models locally.
Install
npm install OpenPipeREADME
Note: we’ve temporarily stopped development on the open-source version of OpenPipe to integrate some proprietary third-party code. We hope to make the non-proprietary parts of the repository open again under an open core model once we have the bandwidth to do so!
OpenPipe
Open-source fine-tuning and model-hosting platform.
Use powerful but expensive LLMs to fine-tune smaller and cheaper models suited to your exact needs. Query your past requests and evaluate models against one another. Switch between OpenAI and fine-tuned models with one line of code.
Features
- Easy integration with OpenAI's SDK in both Python and TypeScript.
- OpenAI-compatible chat completions endpoint.
- Fine-tune GPT 3.5, Mistral, and Llama 2 models. Host on-platform or download the weights.
- Model output is OpenAI-compatible.
- Switching from GPT 4 to a fine-tuned Mistral model only requires changing the model name.
- Query logs using powerful built-in filters.
- Import datasets in OpenAI-compatible JSONL files.
- Prune large chunks of duplicate text like system prompts.
- Compare output accuracy against base models like gpt-3.5-turbo.
Supported Base Models
- mistralai/Mixtral-8x7B-Instruct-v0.1
- OpenPipe/mistral-ft-optimized-1227
- meta-llama/Llama-3-8B
- meta-llama/Llama-3-70B
- gpt-3.5-turbo-0613
- gpt-3.5-turbo-1106
- gpt-3.5-turbo-0125
Documentation
- See docs
Running Locally
- Install Postgresql.
- Install NodeJS 20 (earlier versions will very likely work but aren't tested).
- Install
pnpm:npm i -g pnpm - Clone this repository:
git clone https://github.com/openpipe/openpipe - Install the dependencies:
cd openpipe && pnpm install - Create a
.envfile (cd app && cp .env.example .env) and enter yourOPENAI_API_KEY. - If you just installed postgres and wish to use the default
DATABASE_URLrun the following commands:
psql postgres
CREATE ROLE postgres WITH LOGIN PASSWORD 'postgres';
ALTER ROLE postgres SUPERUSER;
- Update
DATABASE_URLif necessary to point to your Postgres instance an