fix: sampling-param defaults, and make futures-http-client a testing util#32
fix: sampling-param defaults, and make futures-http-client a testing util#32
Conversation
|
MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅ |
Summary of ChangesHello @viraatc, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on refactoring and cleaning up the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Pull Request Overview
This PR simplifies the futures_client.py by removing redundant initialization code and unused imports. The main change delegates worker and ZMQ setup to the parent class instead of duplicating it.
Key changes:
- Removed duplicate ZMQ and worker initialization logic in
FuturesHttpClient.async_start() - Removed unused imports (
zmq.asyncio,WorkerManager, ZMQ socket utilities) - Removed unused
process_sample_datamethod fromHttpClientSampleIssuer
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/inference_endpoint/endpoint_client/http_sample_issuer.py |
Removed unused process_sample_data method and Any import |
src/inference_endpoint/endpoint_client/futures_client.py |
Delegated initialization to parent class, removed duplicate setup code and unused imports |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Code Review
This pull request simplifies the FuturesHttpClient by refactoring the ZMQ and worker management logic, delegating it to the parent HTTPEndpointClient. The changes make the code cleaner and reduce duplication. I have one suggestion to improve the robustness of error handling during client startup.
d152aee to
e72b129
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 15 out of 15 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.
Comments suppressed due to low confidence (1)
src/inference_endpoint/commands/probe.py:1
- The assertion was weakened from checking the error message content to just verifying an exception was raised. This reduces test effectiveness by not validating that the correct type of error occurred.
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
8760f42 to
34ff0c8
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 15 out of 15 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
3e9a12f to
1a06a2e
Compare
1a06a2e to
60644b1
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 16 out of 16 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 16 out of 16 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
What does this PR do?
MR includes changes:
Type of change
Related issues
Testing
Checklist