Skip to content

Conversation

@seanshi-scale
Copy link
Contributor

@seanshi-scale seanshi-scale commented Feb 28, 2024

Pull Request Summary

We want to be able to view token count metrics.

Test Plan and Usage Guide

Deployed test deployment to Scale's infra, metrics do appear

@seanshi-scale seanshi-scale self-assigned this Mar 26, 2024
@seanshi-scale seanshi-scale marked this pull request as ready for review March 26, 2024 20:51
):
return None
if self.num_completion_tokens < 2:
return 0.0
Copy link
Contributor

Choose a reason for hiding this comment

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

should this return None since there were no tokens after the first?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah good point, made the change

@seanshi-scale seanshi-scale merged commit b785d25 into main Mar 27, 2024
@seanshi-scale seanshi-scale deleted the seanshi/add-token-count-metrics-emitting branch March 27, 2024 00:15
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.

3 participants