Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

performance plot #35

Merged
merged 5 commits into from
Feb 21, 2024
Merged

performance plot #35

merged 5 commits into from
Feb 21, 2024

Conversation

siwei-li
Copy link
Collaborator

No description provided.

@siwei-li siwei-li linked an issue Feb 15, 2024 that may be closed by this pull request
Copy link
Contributor

@jettjaniak jettjaniak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's good, let's continue working on it!

  1. make plotly plot instead - I'm not sure if using ipywidgets will be the best solution in this case, as plotly has some built-in support for dropdowns, see original issue description
  2. change the input format to a tuple of (err_low, value, err_high) instead of list of all values - someone else will take care of computing this efficiently on the dataset scale
  3. make it look somewhat like that, with colors as arguments with reasonable defaults; loss is log scale
image 4. see code comments

src/delphi/dataset/mock_per_token_performance.py Outdated Show resolved Hide resolved
src/delphi/dataset/mock_per_token_performance.py Outdated Show resolved Hide resolved
src/delphi/dataset/mock_per_token_performance.py Outdated Show resolved Hide resolved
src/delphi/eval/vis_per_token_model.py Outdated Show resolved Hide resolved
src/delphi/eval/vis_per_token_model.py Outdated Show resolved Hide resolved
src/delphi/eval/vis_per_token_model.py Outdated Show resolved Hide resolved
src/delphi/eval/vis_per_token_model.py Outdated Show resolved Hide resolved
src/delphi/eval/vis_per_token_model.py Outdated Show resolved Hide resolved
@jettjaniak jettjaniak changed the title 5 per token performance plot performance plot Feb 17, 2024
@siwei-li siwei-li force-pushed the 5-per-token-performance-plot branch from 4536eb1 to 5e0352b Compare February 19, 2024 05:03
@siwei-li
Copy link
Collaborator Author

siwei-li commented Feb 19, 2024

I have changed the plotting by using Plotly, the only thing I'm not sure about is this coloring thing @jettjaniak

  1. make it look somewhat like that, with colors as arguments with reasonable defaults; loss is log scale

@siwei-li siwei-li requested a review from jaidhyani February 19, 2024 05:09
@jaidhyani
Copy link
Collaborator

lgtm, nice work

image

@jaidhyani
Copy link
Collaborator

Two things to follow up on:

  1. I think we want the loss (y axis) to be log scale.

  2. We should make color an argument of visualize_per_token_category (it can default to "purple")

@siwei-li
Copy link
Collaborator Author

Yeah I just thought that we already have data as in logprobs, so the loss calculated is already in log

  1. I think we want the loss (y axis) to be log scale.

@jaidhyani
Copy link
Collaborator

jaidhyani commented Feb 20, 2024 via email

@jettjaniak jettjaniak dismissed their stale review February 20, 2024 18:02

addressed

@jettjaniak
Copy link
Contributor

just had a meeting with Sil, a few small bits to address and we can merge

@siwei-li
Copy link
Collaborator Author

Todos:

  • take log/linear kwarg options
  • coloring kwargs fo the graph
  • making dots larger

@siwei-li siwei-li merged commit 2d73bfe into main Feb 21, 2024
1 check passed
@jettjaniak jettjaniak deleted the 5-per-token-performance-plot branch May 22, 2024 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

interactive performance plot
4 participants