Logviz: Visualize openai/evals logs
This is a simple webapp for visualizing logs from openai/evals, primarily developed by me (Ian McKenzie) and Dane Sherburn (@danesherbs).
- The webapp can be run from the command line by simply running
logviz - The webapp will then be accessible via the browser:
localhost:5001(or whichever--portyou choose)
- The old version of
logvizcan be run withlogviz --old - Run
logviz --helpfor more information about options
This app can be installed with pipx, pip, or poetry. Instructions are provided for all three.
pipxallows you to runlogvizfrom the command line at any time, regardless of the current directory or active virtual environment.pipinstallation is pretty straightforward.poetryinstallation is best for developing, since it's easy topoetry addnew dependencies and it manages the virtual environment for you.
NOTE: I'm not yet sure how easy it is to update the app when installing via pipx. It might be fine, I'll have to test it.
- Clone the repository and
cdinto itgit clone [email protected]:naimenz/logviz.git && cd logviz
- Install
pipx - Install
logvizwithpipxpipx install .
- Clone the repository and
cdinto itgit clone [email protected]:naimenz/logviz.git && cd logviz
- Make a virtual environment
python -m venv .venv
- Activate the virtual environment
source .venv/bin/activate
- Install the webapp
pip install .- (For developing, run
pip install -e .to install in editable mode instead.)
- Clone the repository and
cdinto itgit clone [email protected]:naimenz/logviz.git && cd logviz
- Install poetry
curl -sSL https://install.python-poetry.org | python3 -
- Make and activate a poetry shell
poetry shell
- Install the project
poetry install
The most recent version of logviz uses an sqlite database to manage logs. This is a breaking change, so logs previously added to logviz will not be accessible by default. I've added a migration script:
- Run
logviz - Run
./scripts/migrate_logs <dir> <port>, wherediris the log directory you used and port is the port you are running on.- By default, this would be:
./scripts/migrate_logs ~/.cache/logviz 5001
