Skip to content

Batch job metrics#480

Merged
yunfeng-scale merged 11 commits intomainfrom
yunfneg-batch-metrics
Apr 2, 2024
Merged

Batch job metrics#480
yunfeng-scale merged 11 commits intomainfrom
yunfneg-batch-metrics

Conversation

@yunfeng-scale
Copy link
Copy Markdown
Contributor

@yunfeng-scale yunfeng-scale commented Mar 30, 2024

Pull Request Summary

add some metrics to batch jobs

Test Plan and Usage Guide

How did you validate that your PR works correctly? How do you run or demo the code? Provide enough detail so a reviewer can reasonably reproduce the testing procedure. Paste example command line invocations if applicable.

@yunfeng-scale yunfeng-scale requested a review from a team March 30, 2024 03:43
)
statsd.increment(
"model_engine.batch_inference.vllm.token_count.total",
num_prompt_tokens + num_completion_tokens,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this possible to just compute when querying metrics later?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if we do increment we can just add them later, but if we want to do something more fancy like histogram/distribution then we need to output the total separately

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it is possible, also things like Sean said

@yunfeng-scale yunfeng-scale enabled auto-merge (squash) April 2, 2024 22:47
@yunfeng-scale yunfeng-scale merged commit 3d9ea75 into main Apr 2, 2024
@yunfeng-scale yunfeng-scale deleted the yunfneg-batch-metrics branch April 2, 2024 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants