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: migrate model registry controller #3

Merged

Conversation

Levi080513
Copy link
Collaborator

@Levi080513 Levi080513 commented Mar 12, 2025

Issues

migrate model registry controller

Changes

  1. migrate model registry controller
  2. Optimize updatestatus duplicate code

Test

model registry status
image

nfs mount points for bentoml

image

test bentoml models list

image

@Levi080513 Levi080513 requested a review from Yuyz0112 March 12, 2025 06:21
@@ -43,7 +43,9 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} \
go build "${GO_BUILD_ARGS}" \
-o neutree-core cmd/main.go

FROM --platform=linux/${ARCH} alpine:3
FROM --platform=linux/${ARCH} alpine:3.18
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we manage python deps in requirements.txt?

@@ -0,0 +1,132 @@
package model_registry
Copy link
Contributor

Choose a reason for hiding this comment

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

move this to an internal bentoml folder may maybe better for future re-use

Copy link
Contributor

Choose a reason for hiding this comment

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

and we'd better name this kind of model registry to file-based, which will not be bound to the internal implementation.

pkg/utils/nfs.go Outdated
@@ -0,0 +1,52 @@
package utils
Copy link
Contributor

Choose a reason for hiding this comment

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

how about moving to internal/nfs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

looks good!

@Levi080513 Levi080513 requested a review from Yuyz0112 March 12, 2025 10:23
@@ -0,0 +1 @@
bentoml
Copy link
Contributor

Choose a reason for hiding this comment

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

add a version descriptor to it

@Yuyz0112 Yuyz0112 merged commit f186f63 into neutree-ai:main Mar 12, 2025
1 check passed
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.

2 participants