Skip to content
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

Updating the template versions with zenml login #3177

Merged
merged 10 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/update-templates-to-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
python-version: ${{ inputs.python-version }}
stack-name: local
ref-zenml: ${{ github.ref }}
ref-template: 2024.10.10 # Make sure it is aligned with ZENML_PROJECT_TEMPLATES from src/zenml/cli/base.py
ref-template: 2024.10.30 # Make sure it is aligned with ZENML_PROJECT_TEMPLATES from src/zenml/cli/base.py
- name: Clean-up
run: |
rm -rf ./local_checkout
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
python-version: ${{ inputs.python-version }}
stack-name: local
ref-zenml: ${{ github.ref }}
ref-template: 2024.09.23 # Make sure it is aligned with ZENML_PROJECT_TEMPLATES from src/zenml/cli/base.py
ref-template: 2024.10.30 # Make sure it is aligned with ZENML_PROJECT_TEMPLATES from src/zenml/cli/base.py
- name: Clean-up
run: |
rm -rf ./local_checkout
Expand Down Expand Up @@ -189,7 +189,7 @@ jobs:
python-version: ${{ inputs.python-version }}
stack-name: local
ref-zenml: ${{ github.ref }}
ref-template: 2024.09.24 # Make sure it is aligned with ZENML_PROJECT_TEMPLATES from src/zenml/cli/base.py
ref-template: 2024.10.30 # Make sure it is aligned with ZENML_PROJECT_TEMPLATES from src/zenml/cli/base.py
- name: Clean-up
run: |
rm -rf ./local_checkout
Expand Down Expand Up @@ -261,7 +261,7 @@ jobs:
with:
python-version: ${{ inputs.python-version }}
ref-zenml: ${{ github.ref }}
ref-template: 2024.09.24 # Make sure it is aligned with ZENML_PROJECT_TEMPLATES from src/zenml/cli/base.py
ref-template: 2024.10.30 # Make sure it is aligned with ZENML_PROJECT_TEMPLATES from src/zenml/cli/base.py
- name: Clean-up
run: |
rm -rf ./local_checkout
Expand Down
2 changes: 1 addition & 1 deletion examples/e2e/.copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: 2024.10.10
_commit: 2024.10.10-3-g3f8cfb8
_src_path: gh:zenml-io/template-e2e-batch
data_quality_checks: true
email: [email protected]
Expand Down
5 changes: 2 additions & 3 deletions examples/e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ source .venv/bin/activate
make setup
# Optionally, provision default local stack
make install-stack-local
# Start the ZenML UI locally (recommended, but optional);
# the default username is "admin" with an empty password
zenml up
# Start the ZenML UI locally (recommended, but optional)
zenml login --local
# Run the pipeline included in the project
python run.py
```
Expand Down
2 changes: 1 addition & 1 deletion examples/e2e_nlp/.copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: 2024.09.23
_commit: 2024.09.23-2-gea2a15f
_src_path: gh:zenml-io/template-nlp
accelerator: cpu
cloud_of_choice: aws
Expand Down
2 changes: 1 addition & 1 deletion examples/e2e_nlp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ install-local-stack:
zenml stack register -a default -o default -r mlflow_local_$${stack_name} \
-e mlflow_local_$${stack_name} $${stack_name} && \
zenml stack set $${stack_name} && \
zenml up
zenml login --local
5 changes: 2 additions & 3 deletions examples/e2e_nlp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ source .venv/bin/activate
make setup
# Optionally, provision default local stack
make install-local-stack
# Start the ZenML UI locally (recommended, but optional);
# the default username is "admin" with an empty password
zenml up
# Start the ZenML UI locally (recommended, but optional)
zenml login --local
# Run the pipeline included in the project
python run.py
```
Expand Down
2 changes: 1 addition & 1 deletion examples/e2e_nlp/gradio/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ pandas==1.5.3
session_info==1.0.0
scikit-learn==1.5.0
transformers==4.28.1
IPython==7.34.0
IPython==8.10.0
2 changes: 1 addition & 1 deletion examples/llm_finetuning/.copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: 2024.09.24
_commit: 2024.09.24-1-g378145b
_src_path: gh:zenml-io/template-llm-finetuning
bf16: true
cuda_version: cuda11.8
Expand Down
2 changes: 1 addition & 1 deletion examples/mlops_starter/.copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: 2024.09.24
_commit: 2024.09.24-1-g8e7723f
_src_path: gh:zenml-io/template-starter
email: [email protected]
full_name: ZenML GmbH
Expand Down
2 changes: 1 addition & 1 deletion examples/mlops_starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ zenml integration install sklearn pandas -y
zenml init

# Start the ZenServer to enable dashboard access
zenml up
zenml login --local

# Run the feature engineering pipeline
python run.py --feature-pipeline
Expand Down
8 changes: 4 additions & 4 deletions examples/mlops_starter/quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"source": [
"zenml_server_url = \"PLEASE_UPDATE_ME\" # in the form \"https://URL_TO_SERVER\"\n",
"\n",
"!zenml connect --url $zenml_server_url"
"!zenml login $zenml_server_url"
]
},
{
Expand Down Expand Up @@ -403,9 +403,9 @@
" # Only spin up a local Dashboard in case you aren't already connected to a remote server\n",
" if Environment.in_google_colab():\n",
" # run ZenML through a cloudflare tunnel to get a public endpoint\n",
" !zenml up --port 8237 & cloudflared tunnel --url http://localhost:8237\n",
" !zenml login --local --port 8237 & cloudflared tunnel --url http://localhost:8237\n",
" else:\n",
" !zenml up"
" !zenml login --local"
]
},
{
Expand Down Expand Up @@ -1140,7 +1140,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
"version": "3.11.3"
}
},
"nbformat": 4,
Expand Down
8 changes: 4 additions & 4 deletions src/zenml/cli/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,19 @@ def copier_github_url(self) -> str:
ZENML_PROJECT_TEMPLATES = dict(
e2e_batch=ZenMLProjectTemplateLocation(
github_url="zenml-io/template-e2e-batch",
github_tag="2024.10.10", # Make sure it is aligned with .github/workflows/update-templates-to-examples.yml
github_tag="2024.10.30", # Make sure it is aligned with .github/workflows/update-templates-to-examples.yml
),
starter=ZenMLProjectTemplateLocation(
github_url="zenml-io/template-starter",
github_tag="2024.09.24", # Make sure it is aligned with .github/workflows/update-templates-to-examples.yml
github_tag="2024.10.30", # Make sure it is aligned with .github/workflows/update-templates-to-examples.yml
),
nlp=ZenMLProjectTemplateLocation(
github_url="zenml-io/template-nlp",
github_tag="2024.09.23", # Make sure it is aligned with .github/workflows/update-templates-to-examples.yml
github_tag="2024.10.30", # Make sure it is aligned with .github/workflows/update-templates-to-examples.yml
),
llm_finetuning=ZenMLProjectTemplateLocation(
github_url="zenml-io/template-llm-finetuning",
github_tag="2024.09.24", # Make sure it is aligned with .github/workflows/update-templates-to-examples.yml
github_tag="2024.10.30", # Make sure it is aligned with .github/workflows/update-templates-to-examples.yml
),
)

Expand Down