add checkpoint deployment cli support#721
Draft
kevinjosethomas wants to merge 3 commits into
Draft
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 13d3303. Configure here.
| _print_inference_usage(adapter.base_model, adapter.id) | ||
| return | ||
|
|
||
| assert model_id is not None |
There was a problem hiding this comment.
Empty checkpoint-id triggers assert
Medium Severity
Passing --checkpoint-id with an empty value skips the checkpoint deploy path and the no-argument help exit, then hits assert model_id is not None. That assertion is not caught as APIError, so the CLI can crash instead of showing a clear validation error.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 13d3303. Configure here.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


Note
Low Risk
Additive CLI/API client wiring with tests; no changes to auth or existing adapter deploy validation paths beyond a new optional flag.
Overview
Adds Hosted Training checkpoint deployment to the Prime CLI so users can start inference from a checkpoint without going through an existing adapter ID first.
DeploymentsClientgainsdeploy_checkpoint, which POSTs to/rft/checkpoints/{id}/deployand parses the returned adapter like adapter deploy.prime deployments createaccepts--checkpoint-id(mutually exclusive with positionalMODEL_ID), runs confirmation unless--yes, prints adapter id/status, and reuses the same inference usage hints as model deploy.The checkpoint path does not run the READY / deployable-base-model checks used for adapter deploy; it relies on the API. Tests cover the POST path, successful CLI output, and surfacing 409 conflict errors.
Reviewed by Cursor Bugbot for commit 13d3303. Bugbot is set up for automated code reviews on this repo. Configure here.