Repository navigation
air: add the endpoint and MLmodel clients for serving a version - #7953
Draft
erarpitagarwal wants to merge 1 commit into
Draft
erarpitagarwal wants to merge 1 commit into
erarpitagarwal wants to merge 1 commit into
Conversation
serveOnEndpoint creates or updates a serving endpoint so it serves one version, without changing an endpoint that already does, and refuses one that serves another model or is of the other kind. readVersionPackage reads a version's MLmodel to tell a dedicated checkpoint from a command or any other model. No command calls them yet; air serve uses them in a follow-up. Co-authored-by: Isaac <no-reply@databricks.com>
This was referenced Nov 25, 2026
Collaborator
✅ Integration test reportCommit: 2ccd407
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 registerair servecommand #7954:air serveChanges
Adds the two clients
databricks air servewill use. No command calls them yet, so nothing changes for users.serveOnEndpoint(serveendpoint.go) makes an endpoint serve exactly one version, creating the endpoint if it doesn't exist.watchonce it's ready. An update someone else started is waited out first, since the endpoint takes no other until it ends.readVersionPackage(servepackage.go) reads a version'sMLmodelthrough the Files API and says what serves it: a dedicated checkpoint (an LLM task, amodel_dirartifact and noentrypoint, the server's own rule), a command, or any other model. A missing, oversized or malformed file is an error.Why
Third of four PRs.
air serve, in the next PR, picks the compute from whatreadVersionPackagereports and then callsserveOnEndpoint.Tests
go test ./cmd/air/,go vetandgolangci-lint(0 issues) pass. New tests cover creating and updating, an endpoint that already serves the version, an update already in progress, another model's update and someone else's failed update, refusing another model or kind, transient failures while waiting, and reading each kind of MLmodel.This pull request and its description were written by Isaac.