Commit 61c58ec
authored
[GuideLLM Refactor] Complete CSV output (#378)
## 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:
- Profile (an entire JSON dump of the profile)
- Backend (the entire JSON dump of the internal data structure)
- Generator Data
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](https://github.com/user-attachments/files/22222220/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.
---
- [x] "I certify that all code in this PR is my own, except as noted
below."
## Use of AI
- [ ] Includes AI-assisted code completion
- [ ] Includes code generated by an AI application
- [ ] Includes AI-generated tests (NOTE: AI written tests should have a
docstring that includes `## WRITTEN BY AI ##`)File tree
3 files changed
+28
-2
lines changed- src/guidellm/benchmark
- tests/unit
- benchmark
3 files changed
+28
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
570 | 577 | | |
571 | 578 | | |
572 | 579 | | |
| |||
672 | 679 | | |
673 | 680 | | |
674 | 681 | | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
675 | 697 | | |
676 | 698 | | |
677 | 699 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
| |||
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
| |||
0 commit comments