-
Notifications
You must be signed in to change notification settings - Fork 162
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
Rename Stack to Stacks and Fix Bugs #107
Conversation
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.
Looks good to me. Adding more reviewers to give us more confidence.
@@ -34,7 +34,7 @@ dbutils.widgets.text( | |||
{{else}} | |||
# Unity Catalog registered model name to use for the trained mode. | |||
dbutils.widgets.text( | |||
"model_name", "dev.{{template `schema_name` .}}.{{template `model_name` .}}", label="Model Name" | |||
"model_name", "dev.{{template `schema_name` .}}.{{template `model_name` .}}", label="Full (Three-Level) Model Name" |
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.
The variable description looks good. I'm more referring to the model_name
variable name. We can also wait and see if there's customer feedback about the name.
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.
Yeah but then we'd have to add an if/else
condition around every time that model_name
is used on whether or not UC Models is enabled, and I didn't want to risk missing one of those this close to public preview.
you can e.g. copy just the GitHub Actions workflows under `.github` or ML resource configs | ||
under ``{{.input_root_dir}}/{{template `project_name_alphanumeric_underscore` .}}/resources`` | ||
and ``{{.input_root_dir}}/{{template `project_name_alphanumeric_underscore` .}}/bundle.yml`` into your existing project. | ||
and ``{{.input_root_dir}}/{{template `project_name_alphanumeric_underscore` .}}/databricks.yml`` into your existing project. |
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.
👍 Thanks
@@ -47,7 +47,7 @@ Please follow [the instruction](https://docs.databricks.com/en/dev-tools/cli/dat | |||
|
|||
To create a new project, run: | |||
|
|||
databricks bundle init https://github.com/databricks/mlops-stack | |||
databricks bundle init mlops-stacks |
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.
This is awesome. Shall we cut a release and update the alias pointing to the release version later?
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.
Yup! We'll be cutting the MLOps Stacks v0.2 release after this PR merges, and deco team has plans to add this semantic versioning to the bundle aliases.
* Logic to trigger model deployment through REST API calls to your CD system, when model training completes. | ||
This logic is currently captured in ``template/{{.input_root_dir}}/{{template `project_name_alphanumeric_underscore` .}}/deployment/model_deployment/notebooks/TriggerModelDeploy.py`` | ||
This logic is currently captured in ``template/{{.input_root_dir}}/{{template `project_name_alphanumeric_underscore` .}}/deployment/model_deployment/notebooks/ModelDeployment.py`` |
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.
This issue must be from long time ago 🤦 .
@@ -69,7 +69,7 @@ Alternatively, you can use the other approaches described in the [databricks CLI | |||
### Validate and provision ML resource configurations | |||
1. After installing the databricks CLI and creating the `DATABRICKS_TOKEN` env variable, change to the `{{template `project_name_alphanumeric_underscore` .}}` directory. | |||
2. Run `databricks bundle validate` to validate the Databricks resource configurations. | |||
3. Run `databricks bundle deploy` to provision the Databricks resource configurations to the dev workspace. The resource configurations and your ML code will be copied together to the dev workspace. The defined resources such as Databricks Workflows, MLflow Model and MLflow Experiment will be provisioned according to the config files under `{{template `project_name_alphanumeric_underscore` .}}/databricks-resource`. | |||
3. Run `databricks bundle deploy` to provision the Databricks resource configurations to the dev workspace. The resource configurations and your ML code will be copied together to the dev workspace. The defined resources such as Databricks Workflows, MLflow Model and MLflow Experiment will be provisioned according to the config files under `{{template `project_name_alphanumeric_underscore` .}}/resources`. |
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.
Thanks
doc-images/mlops-stacks.png
Outdated
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.
It's 9x larger. I don't think it's a big deal.
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.
Yeah I had to take the original image, overlay the new text, and then take a screenshot since I couldn't find the original file where we created the diagram 🤦♂️
@@ -47,7 +47,7 @@ df = spark.table( | |||
).drop("fare_amount") | |||
|
|||
df.write.mode("overwrite").saveAsTable( | |||
{{ if (eq .input_include_models_in_unity_catalog `yes`) }}name="hive_metastore.default.taxi_scoring_sample" | |||
{{ if (eq .input_include_models_in_unity_catalog `no`) }}name="hive_metastore.default.taxi_scoring_sample" |
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.
👍
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.
LGTM. Thank you Arpit!
8d07be0
to
a44c8f3
Compare
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.
🚀🚀🚀
This PR renames instances of MLOps Stack to MLOps Stacks for consistency. It also fixes various bugs, and bumps the cluster source version to
0.2
.