Pubmatic multi inference - #8842
Open
Shantanu1058 wants to merge 16 commits into
Open
Conversation
Greptile SummaryThis PR adds a
Confidence Score: 2/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant C as HTTP Client
participant H as HandleMultiInfer
participant A as MultiInferAggregator
participant T as Triton Core
C->>H: "POST /v2/multi_infer {requests:[…]}"
H->>H: evhtp_request_pause(req)
H->>H: "Phase 1 — validate slots & policy"
H->>H: Phase 2 — BuildUniqueInferGroups (dedup)
H->>A: new MultiInferAggregator(unique_count, fanout)
loop For each unique infer group
H->>T: TRITONSERVER_InferenceRequestNew
H->>T: FillMultiInferSlotTritonRequest
H->>T: "ScheduleInferAsync (MultiInferShardRequest*)"
end
T-->>A: InferResponseComplete (shard u done)
A->>A: OnUniqueInferDone(u, buf)
Note over A: When done_count == unique_count
A->>H: EvthrDeferWithRetry → SendReplyThunk
H->>H: BuildHttpResponse (assemble JSON)
H->>C: evhtp_send_reply + evhtp_request_resume
Reviews (4): Last reviewed commit: "Removed unwanted files and restored" | Re-trigger Greptile |
Comment on lines
+52
to
+61
| std::string BuildMySqlDriverConnectString(const DatabaseConfig& c) | ||
| { | ||
| std::string driver = c.odbc_driver_name; | ||
| if (driver.empty()) { | ||
| driver = "MySQL ODBC 9.7 Unicode Driver"; | ||
| } | ||
| std::ostringstream conn; | ||
| conn << "DRIVER={" << driver << "};" << "SERVER=" << c.database_ip << ";" << "PORT=" << c.database_port << ";" << "UID={" << c.dsn_user_name << "};" << "PWD={" << c.dsn_user_password << "};"; | ||
| return conn.str(); | ||
| } |
There was a problem hiding this comment.
…ating the response. Added minor optimisations
…emoved unncessary string operations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thanks for submitting a PR to Triton!
Please go the the
Previewtab above this description box and select the appropriate sub-template:If you already created the PR, please replace this message with one of
and fill it out.