generated from fastai/fastpages
-
Notifications
You must be signed in to change notification settings - Fork 56
[GSoC] Summary for Project 6: Push-based Metrics Collection #155
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
a5275c3
doc: add a post about push-based metrics collection.
Electronic-Waste ca3fc14
doc: update permalink.
Electronic-Waste 75018df
Update _posts/2024-09-28-gsoc-2024-summary-push-basd-metrics-collecti…
Electronic-Waste 1abb9c1
Update _posts/2024-09-28-gsoc-2024-summary-push-basd-metrics-collecti…
Electronic-Waste 906f01a
Update _posts/2024-09-28-gsoc-2024-summary-push-basd-metrics-collecti…
Electronic-Waste dc5612a
Update _posts/2024-09-28-gsoc-2024-summary-push-basd-metrics-collecti…
Electronic-Waste 2079fae
Update _posts/2024-09-28-gsoc-2024-summary-push-basd-metrics-collecti…
Electronic-Waste 16dc9d1
Update _posts/2024-09-28-gsoc-2024-summary-push-basd-metrics-collecti…
Electronic-Waste 6bfcb8c
Update _posts/2024-09-28-gsoc-2024-summary-push-basd-metrics-collecti…
Electronic-Waste d3d1125
Update _posts/2024-09-28-gsoc-2024-summary-push-basd-metrics-collecti…
Electronic-Waste aafd4bd
fix: fix lint error.
Electronic-Waste 5cf3a42
fix: fix the blog according to the review.
Electronic-Waste File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
72 changes: 72 additions & 0 deletions
72
_posts/2024-09-28-gsoc-2024-summary-push-basd-metrics-collection.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| --- | ||
| title: "Kubeflow and Me: A Story Started with Push-based Metrics Collection" | ||
| layout: post | ||
| toc: false | ||
| comments: true | ||
| image: images/logo.png | ||
| hide: false | ||
| categories: [gsoc] | ||
| permalink: /gsoc-2024-project-6/ | ||
| author: "Shao Wang(Electronic-Waste)" | ||
| --- | ||
|
|
||
| This summer, I gained a precious opportunity to participate in the Google Summer of Code(GSoC), in which I would contribute to Katib and fulfill a project named ["Push-based Metrics Collection in Katib"](https://www.kubeflow.org/events/gsoc-2024/#project-6-push-based-metrics-collection-for-katib) within 12 weeks. | ||
| Firstly, I got to know about GSoC and Kubeflow with the recommendation from the former active maintainer Ce Gao(gaocegege)'s personal blog. And I was deeply impressed by the idea of cloud native AI toolkits, I decided to dive into this area and learn some skills to enhance my career and future. | ||
| In the blog, I'll provide my personal insight into Katib, for those who are interested in cloud native, AI, and hyperparameters tuning. | ||
|
|
||
| ## Problem | ||
|
|
||
| The project aims to provide a Python SDK API interface for users to push metrics to Katib DB directly. | ||
|
|
||
| The current implementation of Metrics Collector is pull-based, raising design problems such as determining the frequency at which we scrape the metrics, performance issues like the overhead caused by too many sidecar containers, and restrictions on developing environments that must support sidecar containers and admission webhooks. And also, for data scientists, they need to pay attention to the format of metrics printed in the training scripts, which is error prone and may be hard to recognize. | ||
|
|
||
| ## Solution | ||
|
|
||
| We decided to implement a new API for Katib Python SDK to offer users a push-based way to store metrics directly into the Kaitb DB and resolve those issues raised by pull-based metrics collection. | ||
|
|
||
|  | ||
|
|
||
| ## My Contributions during the GSoC | ||
|
|
||
| I raised numerous PRs for the Katib and Training-Operator project. Some of them are related to my GSoC project, and others may contribute to the completeness of UTs (Unit Tests), simplicity of dependency management, and the compatibility of the UI component. | ||
|
|
||
| For reference, the coding period can be rougly divided into 3 stages: | ||
|
|
||
| 1. Convert the proposal to a KEP and discuss the architecture, API design, etc. (~4 weeks) with the mentors | ||
|
|
||
| 2. Develop a push-based metrics collection interface according to the KEP. (~8 weeks) | ||
|
|
||
| 3. Write some examples and documentation & Present my work to the Kubeflow Community. | ||
|
|
||
| Also, I raised some issues not only to describe the problems and bugs I met during the coding period, but also to suggest the future enhancement direction for Katib and the Training-Operator. | ||
|
|
||
| There is an [Github Issue](https://github.com/kubeflow/katib/issues/2340) tracks the progress of developing push-based metrics collection for katib during the GSoC coding phase. If you are interested in my work or Katib, please can check this issue for more details. | ||
|
|
||
| ## Lessons Learned | ||
|
|
||
| 1. **Think Twice, Code Once**: Andrey taught me that we should think of the API specification and all the related details before coding. This can significantly reduce the workload of the coding period and avoid big refactor of the project. Meanwhile, my understanding of Katib got clear gradually during the over-and-over rounds of re-think and re-design of the architecture. | ||
|
|
||
| 2. **Dive into the Source Code**: Engineering projects nowadays are extremely complex and need much effort to understand them. The best way to get familiar with the project is to dive into the source code and run several examples. | ||
|
|
||
| 3. **Communication**: Communication is the most important thing when collaborating with others. Expressing your idea precisely and making others understand you easily are significant skills not only in the open source community but also in various scenarios such as at a company and in group work. | ||
|
|
||
| ## In the End | ||
|
|
||
| Special Thanks: | ||
|
|
||
| 1. To my mentors [@andreyvelich](https://github.com/andreyvelich) [@johnugeorge](https://github.com/johnugeorge) [@tenzen-y](https://github.com/tenzen-y), especially to Andrey. Your great knowledge about the code base and the industry impressed me a lot. Thanks for your timely response to my PRs and for always attending the weekly meetings to solve my pending problems, from which I benefited a lot. What's more, I can well remember that, in that night, you explained the usage of Kubeflow in the industry to me with greate patience, and encouraged me not to doubt about myself, just do it and explore more, contribute more. You ignite the flame of my desire to contribute to cloud native AI. | ||
|
|
||
| 2. To [@gaocegege](https://github.com/gaocegege). You recommend me to the Kubeflow Community. Thanks for your patient answers for my endless silly questions. | ||
|
|
||
| 3. To Google. Thanks for offering such a precious opportunity for me to begin my journey in the open source world! | ||
|
|
||
| I hold a firm belief that every small step counts, and everybody in the community is unique and of great significance. There is no doubt that our joint efforts will surely contribute to the flourishing of our Kubeflow Community, make it the world-best community managing AI lifecycle on Kubernetes, and attract much more attention from the industry. Then, more and more new comers will pour in and work along with us. | ||
|
|
||
| Again, I'll continue to contribute to Kubeflow. | ||
|
|
||
| ## Links | ||
|
|
||
| For more details about Kubeflow and the upcoming GSoC'25 event, please check: | ||
|
|
||
| - [What is Kubeflow?](https://www.kubeflow.org) | ||
| - [Kubeflow GSoC'25 Event](https://www.kubeflow.org/events/gsoc-2025/) | ||
Binary file added
BIN
+124 KB
...oc-2024-summary-push-based-metrics-collection/push-based-metrics-collection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Electronic-Waste It would be also nice if you could update this information with these:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. I'll add these.