Skip to content

[optimizer] enhance hit rate analysis and trace converter options#70

Open
Tyndalllll wants to merge 2 commits intomainfrom
feat/optimizer
Open

[optimizer] enhance hit rate analysis and trace converter options#70
Tyndalllll wants to merge 2 commits intomainfrom
feat/optimizer

Conversation

@Tyndalllll
Copy link
Collaborator

Hit Rate Analysis (hit_rate_plot.py)

  • Improved hit rate calculation based on cumulative values over specified time windows, producing more accurate trend visualization.

Trace Converter (trace_converter.py)

  • Added --ignore-response flag: computes block IDs from prompts only, useful when response data is unavailable.
  • Added --no-truncate flag: disables truncation of tail tokens that do not fill a complete block.
  • Updated output messages to reflect new options and configuration details.

- Improved the calculation of hit rates based on cumulative values over specified time windows.
qoderai[bot]

This comment was marked as resolved.

@github-actions github-actions bot added the ai reviewed AI has reviewed this PR label Mar 24, 2026
- Added `--ignore-response` to compute block IDs from prompts only, useful when responses are unavailable.
- Introduced `--no-truncate` to disable truncation of tail tokens that do not fill a complete block.
- Updated output messages to reflect new options and configuration details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai reviewed AI has reviewed this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant