-
Notifications
You must be signed in to change notification settings - Fork 11.8k
scripts : support arbitrary input file formats in compare-llama-bench.py #13455
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
Conversation
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.
I think we should not have two parallel implementations for fetching data; either sqlite data should be using the generic implementation or JSON/JSONL data should be used to fill an SQL database. My personal preference would be SQL but I am willing to compromise depending on what other maintainers prefer.
Hm, ok, so an in-memory database then? |
Yes. |
Ok, done. |
Refactored git/file handling into specialized classes to support arbitrary input file support.
The
-i
/--input
parameter can now be invoked multiple times to load multiple files.If only a single file is specified, attempt to load it as SQLite3, JSON, JSONL or CSV, otherwise attempt to load multiple JSON or multiple CSV files.