Skip to content

Ibhosale grpc callback model infer #8138

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

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/grpc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# Copyright 2023-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
@@ -67,6 +67,7 @@ target_link_libraries(
triton-common-json # from repo-common
grpc-health-library # from repo-common
grpc-service-library # from repo-common
grpccallback-service-library # from repo-common
triton-core-serverapi # from repo-core
triton-core-serverstub # from repo-core
gRPC::grpc++
19 changes: 18 additions & 1 deletion src/grpc/grpc_handler.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// Copyright 2023-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
@@ -25,14 +25,31 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#pragma once

#include <grpc++/grpc++.h>

#include <string>

#include "grpc_service.grpc.pb.h"
#include "grpccallback_service.grpc.pb.h"
#include "health.grpc.pb.h"

namespace triton { namespace server { namespace grpc {
class HandlerBase {
public:
virtual ~HandlerBase() = default;
virtual void Start() = 0;
virtual void Stop() = 0;
virtual inference::GRPCInferenceServiceCallback::CallbackService*
GetUnifiedCallbackService()
{
return nullptr;
}

virtual ::grpc::health::v1::Health::CallbackService*
GetHealthCallbackService()
{
return nullptr;
}
};

class ICallData {
Loading
Oops, something went wrong.
Loading
Oops, something went wrong.