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

Using zenml login for templates #26

Merged
merged 2 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ After configuring your project, you can run the following commands to set up you
cd <your_project_directory>
make setup
make install-local-stack
zenml up
zenml login --local
python run.py
```

Expand Down
2 changes: 1 addition & 1 deletion copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ _tasks:
echo " # optional, provision default local stack"
echo " make install-local-stack"
echo " # optional, start ZenML Dashboard"
echo " zenml up"
echo " zenml login --local"
echo " python run.py"
echo
echo "Next, you should take a look at the '{{ _copier_conf.dst_path }}/README.md' file in the generated project."
Expand Down
4 changes: 2 additions & 2 deletions template/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ stack_name ?= nlp_template_stack

{%- if zenml_server_url != '' %}
remote-login:
zenml connect --url "{{zenml_server_url}}"
zenml login "{{zenml_server_url}}"

setup: remote-login
{%- else %}
Expand All @@ -23,4 +23,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 template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,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
Loading