Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server: metrics: fix bucket reset on /health, add few more metrics #5937

Merged
merged 1 commit into from Mar 8, 2024

Conversation

phymbert
Copy link
Collaborator

@phymbert phymbert commented Mar 8, 2024

Context

Server /metrics endpoint share the same task event as /health: TASK_TYPE_METRICS. It means metrics are reset on both calls.

The Process-Start-Time-Unix http response header is not set.

Add total prompt and generation time in order to get the global server throughput for all slots.

Closes #5850

…s_predicted_seconds_total, reset bucket only on /metrics. Fix values cast to int. Add Process-Start-Time-Unix header.

Closes #5850
@phymbert phymbert requested a review from ggerganov March 8, 2024 10:02
@phymbert phymbert merged commit 76e8688 into master Mar 8, 2024
62 checks passed
@phymbert phymbert deleted the hp/server/metrics/fix-buckets branch March 8, 2024 11:25
@stduhpf
Copy link
Contributor

stduhpf commented Mar 9, 2024

The server executable won't even launch for me from the merge commit of this PR onwards... (windows 10, MSVC build, any backend)

@phymbert
Copy link
Collaborator Author

phymbert commented Mar 9, 2024

I doubt there is anything related. This PR is about metrics only. or maybe ggml_time() ? what is the error ?

@stduhpf
Copy link
Contributor

stduhpf commented Mar 9, 2024

I will try again tomorrow, but the program dies before printing anything to the standard output. No error message either.

But I'm pretty sure these changes somehow caused the issue, because reverting to commit e457fb3 fixes it for me.

@stduhpf
Copy link
Contributor

stduhpf commented Mar 9, 2024

It got fixed by #5964, thank you @ggerganov

hazelnutcloud pushed a commit to hazelnutcloud/llama.cpp that referenced this pull request Mar 10, 2024
…s_predicted_seconds_total, reset bucket only on /metrics. Fix values cast to int. Add Process-Start-Time-Unix header. (ggerganov#5937)

Closes ggerganov#5850
NeoZhangJianyu pushed a commit to NeoZhangJianyu/llama.cpp that referenced this pull request Mar 12, 2024
…s_predicted_seconds_total, reset bucket only on /metrics. Fix values cast to int. Add Process-Start-Time-Unix header. (ggerganov#5937)

Closes ggerganov#5850
jordankanter pushed a commit to jordankanter/llama.cpp that referenced this pull request Mar 13, 2024
…s_predicted_seconds_total, reset bucket only on /metrics. Fix values cast to int. Add Process-Start-Time-Unix header. (ggerganov#5937)

Closes ggerganov#5850
hodlen pushed a commit to hodlen/llama.cpp that referenced this pull request Apr 1, 2024
…s_predicted_seconds_total, reset bucket only on /metrics. Fix values cast to int. Add Process-Start-Time-Unix header. (ggerganov#5937)

Closes ggerganov#5850
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.

server: metrics endpoint
3 participants