Skip to content

Commit

Permalink
perf: vLLM metrics optimization (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
yinggeh authored Sep 21, 2024
1 parent d84bb57 commit 35a1c1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/metric.cc
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ Metric::SendCreateMetricRequest()
void
Metric::SendIncrementRequest(const double& value)
{
py::gil_scoped_release release;
try {
CheckIfCleared();
std::unique_ptr<Stub>& stub = Stub::GetOrCreateInstance();
Expand Down Expand Up @@ -204,6 +205,7 @@ Metric::SendSetValueRequest(const double& value)
void
Metric::SendObserveRequest(const double& value)
{
py::gil_scoped_release release;
try {
CheckIfCleared();
std::unique_ptr<Stub>& stub = Stub::GetOrCreateInstance();
Expand Down

0 comments on commit 35a1c1f

Please sign in to comment.