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

[BUG] stat api is showing the wrong ml_model_count #1178

Closed
dhrubo-os opened this issue Aug 2, 2023 · 1 comment
Closed

[BUG] stat api is showing the wrong ml_model_count #1178

dhrubo-os opened this issue Aug 2, 2023 · 1 comment
Labels
bug Something isn't working untriaged

Comments

@dhrubo-os
Copy link
Collaborator

What is the bug?

When we invoke GET /_plugins/_ml/stats it shows detailed statistics about model.

However there's a field ml_model_count which doesn't show the correct value.

I've deployed 2 SentenceTransformer models in my cluster and the ml_model_count was showing 65.

Reason is: one model has 49 chunks and another model has 14 chunks. 49 + 14 = 63

Which is why it's showing 65.

We need to fix this stat api to get correct number in ml_model_count field.

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Execute 'GET /_plugins/_ml/stats'
  2. Then you will see the ml_model_count field.

What is the expected behavior?
ml_model_count is showing wrong value.

What is your host/environment?

  • OS: [e.g. iOS]
  • Version [starting from 2.4]
  • Plugins

Do you have any screenshots?
If applicable, add screenshots to help explain your problem.

Do you have any additional context?
Add any other context about the problem.

@dhrubo-os dhrubo-os added bug Something isn't working untriaged labels Aug 2, 2023
@dhrubo-os dhrubo-os changed the title [BUG] stat api is not showing the wrong ml_model_count [BUG] stat api is showing the wrong ml_model_count Aug 2, 2023
@dhrubo-os
Copy link
Collaborator Author

#1180 --> Solves this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

No branches or pull requests

1 participant