-
Notifications
You must be signed in to change notification settings - Fork 88
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
Make llm benchmarks query faster #6258
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
floor(arrayAvg(o.metric.benchmark_values), 2) AS actual, | ||
floor(toFloat64(o.metric.target_value), 2) AS target, | ||
o.benchmark.dtype AS dtype, | ||
o.model.'name' AS model, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of of confusing aspect of ClickHouse is that sometimes model.name
works, sometimes it needs to be model.'name'
, and the other times it is tupleElement(model, 'name')
. The last one is probably the clearest because the field is a tuple, but it's also the lengthiest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you for the fix!
I'm not sure why the preview doesn't show up because Vercel cancels it |
I think we should also add some more key to the projection if possible. They are the keys that I should have added when creating the table.
|
It's better done in a separate PR then, as I think #6167 needs to be reverted to try it out |
Make faster by adding a projection to the table
For some reason, ClickHouse won't use the projection unless t uses
has
instead ofin
and all the other tuple elements are in quotation marksWe should consider changing the order by key to be this instead since I can't imagine anyone not filtering by benchmark name
Perf results:
Also added a test
Checked results were the same after sorting
Also a change to the script to compare queries that makes it easier to compare results that are different by piping them to files that can be diffed later