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

feat: Automate the adapters manifests #463

Merged
merged 16 commits into from
Jun 12, 2024

Conversation

bangqipropel
Copy link
Collaborator

Reason for Change:

Requirements

  • added unit tests and e2e tests (if applicable).

Issue Fixed:

Notes for Reviewers:

Bangqi Zhu added 10 commits June 6, 2024 22:28
**Reason for Change**:
Add adapters to inference API and update the required package

**Requirements**
- [ ] added unit tests and e2e tests (if applicable).

**Issue Fixed**:
<!-- If this PR fixes GitHub issue 4321, add "Fixes #4321" to the next
line. -->

**Notes for Reviewers**:
Signed-off-by: Bangqi Zhu <bangqizhu@microsoft.com>
Signed-off-by: Bangqi Zhu <bangqizhu@microsoft.com>
Signed-off-by: Bangqi Zhu <bangqizhu@microsoft.com>
Signed-off-by: Bangqi Zhu <bangqizhu@microsoft.com>
Signed-off-by: Bangqi Zhu <bangqizhu@microsoft.com>
Signed-off-by: Bangqi Zhu <bangqizhu@microsoft.com>
Signed-off-by: Bangqi Zhu <bangqizhu@microsoft.com>
Signed-off-by: Bangqi Zhu <bangqizhu@microsoft.com>
Signed-off-by: Bangqi Zhu <bangqizhu@microsoft.com>
Signed-off-by: Bangqi Zhu <bangqizhu@microsoft.com>
@bangqipropel bangqipropel changed the title Automate the adapters manifests feat: Automate the adapters manifests Jun 7, 2024
Copy link

codecov bot commented Jun 7, 2024

Codecov Report

Attention: Patch coverage is 42.66667% with 43 lines in your changes missing coverage. Please review.

Project coverage is 60.04%. Comparing base (b65dd2e) to head (b0f69c8).
Report is 28 commits behind head on main.

Files Patch % Lines
api/v1alpha1/workspace_validation.go 66.66% 8 Missing and 6 partials ⚠️
pkg/resources/manifests.go 23.52% 12 Missing and 1 partial ⚠️
pkg/utils/common-preset.go 0.00% 12 Missing ⚠️
pkg/inference/preset-inferences.go 0.00% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #463      +/-   ##
==========================================
- Coverage   61.09%   60.04%   -1.05%     
==========================================
  Files          29       29              
  Lines        2303     2553     +250     
==========================================
+ Hits         1407     1533     +126     
- Misses        828      926      +98     
- Partials       68       94      +26     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Bangqi Zhu <bangqizhu@microsoft.com>
Signed-off-by: Bangqi Zhu <bangqizhu@microsoft.com>
Signed-off-by: Bangqi Zhu <bangqizhu@microsoft.com>
@@ -56,13 +57,14 @@ var (
tolerations = []corev1.Toleration{
{
Effect: corev1.TaintEffectNoSchedule,
Operator: corev1.TolerationOpEqual,
Key: resources.GPUString,
Operator: corev1.TolerationOpExists,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why change from corev1.TolerationOpEqual to corev1.TolerationOpExists

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The origin one was different from the yaml file, and it will make the adapter cannot find the node

Operator: corev1.TolerationOpEqual,
Key: resources.GPUString,
Operator: corev1.TolerationOpExists,
Key: resources.CapacityNvidiaGPU,
Copy link
Collaborator

@ishaansehgal99 ishaansehgal99 Jun 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similiar question on why change to resources.CapacityNvidiaGPU here. these tolerations should ideally not need to be changed...

Signed-off-by: Bangqi Zhu <bangqizhu@microsoft.com>
@ishaansehgal99 ishaansehgal99 merged commit 4db58ce into main Jun 12, 2024
6 of 9 checks passed
@ishaansehgal99 ishaansehgal99 deleted the bangqipropel/adapter_automation branch June 12, 2024 22:43
smritidahal653 pushed a commit to smritidahal653/kaito that referenced this pull request Jul 12, 2024
**Reason for Change**:
<!-- What does this PR improve or fix in Kaito? Why is it needed? -->

**Requirements**

- [ ] added unit tests and e2e tests (if applicable).

**Issue Fixed**:
<!-- If this PR fixes GitHub issue 4321, add "Fixes #4321" to the next
line. -->

**Notes for Reviewers**:

---------

Signed-off-by: Bangqi Zhu <bangqizhu@microsoft.com>
Co-authored-by: Bangqi Zhu <bangqizhu@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants