Turn expensive prompts into cheap fine-tuned models.
Hosted App - Running Locally - Experiments
Use powerful but expensive LLMs to fine-tune smaller and cheaper models suited to your exact needs. Evaluate model and prompt combinations in the playground. Query your past requests and export optimized training data. Try it out at https://app.openpipe.ai or run it locally.
- Easy integration with OpenAI's SDK in both Python and TypeScript.
- 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.
- Swiftly query logs using intuitive 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
To fine-tune Mistral and Llama 2 models in the hosted app, join the waitlist.
- mistral-7b
- llama-2-7b
- llama-2-13b
- gpt-3.5-turbo
- See docs
- 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 (cp .env.example .env) and enter yourOPENAI_API_KEY. - Update
DATABASE_URLif necessary to point to your Postgres instance and runpnpm prisma migrate devto create the database. - Create a GitHub OAuth App, set the callback URL to
<your local instance>/api/auth/callback/github, e.g.http://localhost:3000/api/auth/callback/github. - Update the
GITHUB_CLIENT_IDandGITHUB_CLIENT_SECRETvalues from the Github OAuth app (Note: a PR to make auth optional when running locally would be a great contribution!). - Start the app:
pnpm dev. - Navigate to http://localhost:3000
- Copy your
.envfile to.env.test. - Update the
DATABASE_URLto have a different database name than your development one - Run
DATABASE_URL=[your new datatase url] pnpm prisma migrate dev --skip-seed --skip-generate - Run
pnpm test