-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Support Models in
dbutils.fs
operations (#750)
## Changes <!-- Summary of your changes that are easy to understand --> - Support files operations in WorkspaceClient.Files for Databricks UC Model artifacts so that user can use databricks sdk to download UC model artifacts. - This PR is part of the work to migrate mlflow client towards using databricks sdk for model artifacts download/upload operations for better security. ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - Existing tests in test_dbfs_mixins.py, similar to how _VolumesPath is tested - The following code works ``` from databricks.sdk import WorkspaceClient w = WorkspaceClient() resp = w.files.download("/Models/system/ai/dbrx_instruct/3/MLmodel") ``` - [x] `make test` run locally - [x] `make fmt` applied - [x] relevant integration tests applied
- Loading branch information
1 parent
b34f502
commit 3162545
Showing
2 changed files
with
17 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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