-
Notifications
You must be signed in to change notification settings - Fork 79
Rebuild ModelsManager and Scheduler routers with new CORS origins #74
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
Conversation
| return m | ||
| } | ||
|
|
||
| func (m *Manager) RebuildRoutes(allowedOrigins []string) { |
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.
Feels like something that should happen behind a lock, or is the consumer of this API supposed to lock?
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.
You're right, added a lock in 784d6df (compare the force push changes).
7eeb62e to
784d6df
Compare
pkg/inference/models/manager.go
Outdated
| maximumConcurrentModelPulls = 2 | ||
| ) | ||
|
|
||
| var lock sync.Mutex |
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.
Why not make it a member of Manager?
Signed-off-by: Dorin Geman <dorin.geman@docker.com>
784d6df to
60166a9
Compare
* Enable SmolLM 3 template. - Add `replace` method for string type and update unit tests. - Support slice expression with omitted start or end index and update unit tests. - Fix the bug that `in` operator does not work for string type. - Update testing script to support fetching `chat-template.jinja` when the template is not in `tokenizer_config.json`. Test passed with SmolLM 3B model: https://huggingface.co/HuggingFaceTB/SmolLM3-3B * Update test cases of string replace. --------- Co-authored-by: Olivier Chafik <ochafik@anthropic.com>
* Provides API for packaging models - introduces builder package for building artifacts - extracts registry packge for direct interaction with OCI registries Signed-off-by: Emily Casey <emily.casey@docker.com> * cleanup Signed-off-by: Emily Casey <emily.casey@docker.com> * slim down artifact interface Signed-off-by: Emily Casey <emily.casey@docker.com> * cleanup Signed-off-by: Emily Casey <emily.casey@docker.com> --------- Signed-off-by: Emily Casey <emily.casey@docker.com>
* Provides API for packaging models - introduces builder package for building artifacts - extracts registry packge for direct interaction with OCI registries Signed-off-by: Emily Casey <emily.casey@docker.com> * cleanup Signed-off-by: Emily Casey <emily.casey@docker.com> * slim down artifact interface Signed-off-by: Emily Casey <emily.casey@docker.com> * cleanup Signed-off-by: Emily Casey <emily.casey@docker.com> --------- Signed-off-by: Emily Casey <emily.casey@docker.com>
* Provides API for packaging models - introduces builder package for building artifacts - extracts registry packge for direct interaction with OCI registries Signed-off-by: Emily Casey <emily.casey@docker.com> * cleanup Signed-off-by: Emily Casey <emily.casey@docker.com> * slim down artifact interface Signed-off-by: Emily Casey <emily.casey@docker.com> * cleanup Signed-off-by: Emily Casey <emily.casey@docker.com> --------- Signed-off-by: Emily Casey <emily.casey@docker.com>
* Provides API for packaging models - introduces builder package for building artifacts - extracts registry packge for direct interaction with OCI registries Signed-off-by: Emily Casey <emily.casey@docker.com> * cleanup Signed-off-by: Emily Casey <emily.casey@docker.com> * slim down artifact interface Signed-off-by: Emily Casey <emily.casey@docker.com> * cleanup Signed-off-by: Emily Casey <emily.casey@docker.com> --------- Signed-off-by: Emily Casey <emily.casey@docker.com>
Allow rebuilding the routers with new allowed origins for CORS.