Skip to content

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

Merged
merged 10 commits into from
May 13, 2025

Conversation

CISC
Copy link
Collaborator

@CISC CISC commented May 11, 2025

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.

@github-actions github-actions bot added script Script related python python script changes labels May 11, 2025
@CISC CISC requested a review from JohannesGaessler May 11, 2025 14:29
@CISC CISC changed the title scripts : implement arbitrary input file support in compare-llama-bench.py scripts : support arbitrary input file formats in compare-llama-bench.py May 11, 2025
Copy link
Collaborator

@JohannesGaessler JohannesGaessler left a 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.

@CISC
Copy link
Collaborator Author

CISC commented May 11, 2025

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?

@JohannesGaessler
Copy link
Collaborator

Yes.

@CISC
Copy link
Collaborator Author

CISC commented May 11, 2025

Ok, done.

@CISC CISC requested a review from JohannesGaessler May 11, 2025 19:56
@CISC CISC requested a review from JohannesGaessler May 13, 2025 10:40
@CISC CISC requested a review from JohannesGaessler May 13, 2025 13:07
@CISC CISC merged commit bf79371 into master May 13, 2025
5 checks passed
@CISC CISC deleted the cisc/compare-llama-bench-jsonl branch May 13, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python python script changes script Script related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants