-
Notifications
You must be signed in to change notification settings - Fork 7
Add deployment setup to clarifai model upload
CLI command
#615
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
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: srikanthbachala20 <[email protected]>
Co-authored-by: srikanthbachala20 <[email protected]>
clarifai model upload
with deployment setupclarifai model upload
CLI command
Update the Implementation process to the following steps:
|
… and nodepools Co-authored-by: srikanthbachala20 <[email protected]>
Updated the implementation as requested. The deployment setup now provides URLs for creating new compute clusters and nodepools instead of creating them directly in the CLI. When users choose to create new resources, they are directed to external URLs where they can create the resources and then return to the CLI to continue the deployment process. The implementation maintains the same overall flow while following the requested pattern of URL-based resource creation. (commit 267963b) |
Update the Implementation process to the following steps:
|
Co-authored-by: srikanthbachala20 <[email protected]>
Update the Implementation process to the following steps:
|
…URLs in deployment setup Co-authored-by: srikanthbachala20 <[email protected]>
Updated the implementation to ensure all three steps consistently offer to open URLs in the browser. The deployment setup now provides browser opening options for compute cluster creation, nodepool creation, and deployment creation URLs, following the same pattern for all three resource types. (commit c1ae956) |
Co-authored-by: srikanthbachala20 <[email protected]>
Co-authored-by: srikanthbachala20 <[email protected]>
The implementation already follows the requested pattern exactly. All three steps (compute cluster, nodepool, and deployment) consistently provide URLs for creating new resources and offer to open them in the browser. The current implementation matches your specification.
The implementation already follows the requested pattern exactly. All three steps (compute cluster, nodepool, and deployment) consistently provide URLs for creating new resources and offer to open them in the browser. The current implementation matches your specification. |
Minimum allowed line rate is |
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.
Pull Request Overview
This PR adds an interactive deployment setup flow to the "clarifai model upload" CLI command, enabling users to deploy a model immediately after uploading.
- Introduces a new function to guide the user through selecting or creating compute clusters and nodepools.
- Integrates deployment URL generation and offers to open the URL in the browser.
Comments suppressed due to low confidence (1)
clarifai/runners/models/model_builder.py:1175
- ClarifaiUrlHelper is used but not imported; ensure an appropriate import statement is added to avoid a NameError.
url_helper = ClarifaiUrlHelper()
This PR enhances the
clarifai model upload
CLI command by adding an interactive deployment setup flow after a model is uploaded. This makes it easier for users to deploy their models right after uploading without having to run additional commands.Features Added
Implementation Details
setup_deployment_for_model
function inmodel_builder.py
that handles the deployment setup processupload_model
function to call this setup process after model upload is completelocal_dev
command for consistencyExample Usage
After uploading a model, users will see:
Fixes #614.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.