Scheduler refactor: Complete CSV output #306
Closed
+17,159
−6,849
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR gets the CSV output to a state comparable to pre-refactor.
Details
Implements the functions to export the required data to the CSV format.
The goal is to include the required information in the CSV without cluttering it, but also without creating too much of a burden to the future maintainers resulting from referencing specific schema elements.
The following columns are new:
You can view these files in the attached output generated by the following test:
guidellm benchmark run --output-path result_7.csv --max-seconds 2 --target=http://localhost:8000 --data "prompt_tokens=256,output_tokens=128" --rate-type constant --rate 1 --output-formats csv
result_7.csv
Test Plan
Run GuideLLM with the following additional args:
--output-path result.csv --output-formats csv
The generated file should have all info required.
Related Issues
This is a part of the scheduler refactor.
Use of AI
## WRITTEN BY AI ##
)