Repository navigation
air: add a hidden air register command - #7952
Draft
erarpitagarwal wants to merge 1 commit into
Draft
erarpitagarwal wants to merge 1 commit into
erarpitagarwal wants to merge 1 commit into
Conversation
air register registers a checkpoint in a Unity Catalog volume as a new model version, from a YAML file (-f) or flags, and waits until the version is ready. With engine, the version is served by the user's own command; without it, Databricks serves the checkpoint with dedicated inference. Co-authored-by: Isaac <no-reply@databricks.com>
This was referenced Nov 25, 2026
Collaborator
✅ Integration test reportCommit: 216bb2b
Top 6 slowest tests (at least 2 minutes):
|
This branch has not been deployed
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.
Stack (review in order; each PR is based on the one before):
air registercommand #7952:air register(this PR)air servecommand #7954:air serveChanges
Adds a hidden
databricks air registercommand. It registers a checkpoint in a Unity Catalog volume as a new model version and waits until the version is ready, using the client from the previous PR. It takes a YAML file (-f) or its required fields as flags (--model-source,--uc-model); flags override the file.engine, the user's command (vLLM, SGLang, a FastAPI app). Without it, Databricks serves the checkpoint with dedicated inference.engine.environment.versionhas no default:6for the Standard environment, ordatabricks_ai_v6for the Databricks AI environment, as forair run.engine.taskdefaults tollm/v1/chat.model_source: models:/m-...is refused, with a TODO.registerModelPackagetakes the file'smodel_source,uc_modelandengineas they are, with the environment version in canonical form.--idempotency-key).--retry-failed-stagingcopies the weights again after a failed copy.--dry-runchecks the file without a workspace,--overridesets a field,-h config.<field>documents one,--timeoutbounds the wait, and-o jsonreports the result or the error code, including for a failed login, asair rundoes.air runcode, so both commands load and document YAML the same way:--overridepath check take the schema to check against;air run -h configonly);-hlists the fields, so an unknown key in a register file gets the same "did you mean" error as in a run file;engine.environment.version(a*stringOrInt) shows "string or int" (air runhas no such field, so its help is unchanged);effectiveIdempotencyTokentakes the configured token instead of the run config;On success it prints the
databricks air servecommand for the version, which the last PR of the stack adds.Why
Serving a checkpoint today means calling
mlflow.<flavor>.log_modelfrom Python: pickling a model, copying weights into it and packing an environment. With this command the user hands over text and the files a training job already wrote to a volume; the server writes the MLmodel and builds the environment. The command stays hidden, with no changelog entry, until the server APIs are on everywhere.Tests
go test ./cmd/air/,go vetandgolangci-lint(0 issues) pass. New tests cover the schema (defaults, refused fields, flags over the file), dry run, resuming, failed and timed-out registrations, JSON output and field help.air registerhasn't run against a workspace yet.This pull request and its description were written by Isaac.