Skip to content
/ gpt3-exp Public template

Streamlit application to keep GPT3 Experimentation sane

Notifications You must be signed in to change notification settings

pratos/gpt3-exp

Repository files navigation

gpt3-exp: Experimentation tool in Python for GPT3

tool-gif

Note: You can view the video at this location

This streamlit application is a personal tool to help and manage experimentation with GPT3 API. The original GPT3 playground is nice, but lacks version control and ability to save outputs for comparison.

I made a small streamlit application that helps to manage it. Right now one can add primes or small datasets needed to prime the Completion API. This repo contains these primes in src/gpt3_exp/datasets.

Setup

  • Add your OpenAI key to gpt3_exp/gpt3_config.yml in this format:
GPT3_API: ab-XXXXXXXXXXXXXXXXXXXXXXXX
  • Or you can add it via the streamlit app directly.
  • Install poetry. Follow the official site or this cookbook
  • Once poetry is installed, run poetry install. This will download all the packages needed (ideally in .venv) as well as setup the repository.
  • To run migrations: poetry run migrate

Running the application

  • To run the streamlit app: poetry run st-server
  • You will now be able to view the application @ localhost:8000

Adding new primes/dataset

  • Create a task.yml file in gpt3_exp/datasets, this file would be available in the streamlit app in the dropdown

dataset-dropdown

Roadmap

  • Experimentation dashboard
  • Save results to DB
  • Add search api to experimentation dashboard
  • Create overview dashboard based off DB

Other Resources

Would be happy to help out with any issues :)

If you use this project, do help out:

About

Streamlit application to keep GPT3 Experimentation sane

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published