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

Stack wizard CLI + Endpoints #2808

Merged
merged 63 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from 54 commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
4af4307
initial codes
avishniakov Jun 26, 2024
000a021
Merge branch 'develop' into feature/PRD-477-stack-wizard-cli
avishniakov Jun 26, 2024
7461dec
prettify a bit
avishniakov Jun 26, 2024
d03804a
some aws pieces
avishniakov Jun 26, 2024
7399ba8
add container registry
avishniakov Jun 27, 2024
0d5b646
refactor
avishniakov Jun 27, 2024
f6a3154
Merge branch 'develop' into feature/PRD-477-stack-wizard-cli
avishniakov Jun 28, 2024
2cf6ad5
new models
bcdurak Jun 28, 2024
e60489e
new models
bcdurak Jun 28, 2024
a293dc6
new constant
bcdurak Jun 28, 2024
be18c34
converting it into a request
bcdurak Jun 28, 2024
37e664f
defining interface
bcdurak Jun 28, 2024
092ea24
rest zen store
bcdurak Jun 28, 2024
524e4aa
checking permissions and scoping the request in the endpoint
bcdurak Jun 28, 2024
fa437fa
first version of the sql zen store
bcdurak Jun 28, 2024
a8bb05c
rbac fixes
avishniakov Jun 28, 2024
62635a8
misc fixes
avishniakov Jun 28, 2024
8c0b71d
remove names duplicates
avishniakov Jun 28, 2024
3402bf8
multiple service connectors support
avishniakov Jun 28, 2024
8cd5c02
maybe working
avishniakov Jun 28, 2024
a0530b8
likely to work
avishniakov Jun 28, 2024
4c2e37f
some fixes and naming checks
bcdurak Jun 28, 2024
8b847ba
linting
bcdurak Jun 28, 2024
0801c59
analytics, name checks for stacks and cleanup
bcdurak Jun 28, 2024
63d9a35
typo
bcdurak Jun 28, 2024
5e4235e
hamza's feedback
avishniakov Jun 28, 2024
e73590d
minor docs update
avishniakov Jun 28, 2024
b13c09e
various fixes from PR comments
bcdurak Jul 1, 2024
c97afe9
several more fixes
bcdurak Jul 1, 2024
81632cd
reversing the order of the cleanup
bcdurak Jul 1, 2024
6c7e9d3
darglint
avishniakov Jul 1, 2024
37eec51
ruff
avishniakov Jul 1, 2024
19ddc42
mypy
avishniakov Jul 1, 2024
00823f6
ruff
avishniakov Jul 1, 2024
5437a19
ruff
avishniakov Jul 1, 2024
79f835f
removing the extra verification
bcdurak Jul 1, 2024
8574d86
fetch stack by full name
avishniakov Jul 1, 2024
6130187
Merge branch 'feature/PRD-477-stack-wizard-cli' of https://github.com…
avishniakov Jul 1, 2024
35a36b4
mypy
avishniakov Jul 1, 2024
dcd8e5d
workspaced full stack request
avishniakov Jul 2, 2024
63ffd29
fix normal stack register
avishniakov Jul 2, 2024
9a9dd3f
add `service_connector_resource_id`
avishniakov Jul 2, 2024
10a781b
tiny renames
avishniakov Jul 2, 2024
dc66278
use passed `resource_id`
avishniakov Jul 2, 2024
19cd0e3
Fix connector resource type in `zenml <component> describe` CLI command
stefannica Jul 3, 2024
00a1023
use auto config option instead of implicit
avishniakov Jul 3, 2024
eeb8bea
add connector index validator
avishniakov Jul 3, 2024
8bf0a34
suggestions and mypy
avishniakov Jul 3, 2024
2269a4b
Merge branch 'develop' into feature/PRD-477-stack-wizard-cli
avishniakov Jul 3, 2024
a1cf862
ignore local, if rejected
avishniakov Jul 3, 2024
b577cc8
mypy
avishniakov Jul 3, 2024
7f28028
Auto-update of LLM Finetuning template
actions-user Jul 3, 2024
d1c0394
revert fullstack model changes
avishniakov Jul 3, 2024
58fa9e8
Merge branch 'feature/PRD-477-stack-wizard-cli' of https://github.com…
avishniakov Jul 3, 2024
15661e0
solving the linting issue
bcdurak Jul 4, 2024
5e57479
changing the models to include the new labels as well
bcdurak Jul 4, 2024
ad3a438
adding the labels to stacks in the client
bcdurak Jul 4, 2024
6a1d35d
changing the schema
bcdurak Jul 4, 2024
0c32fd3
adding the necessary migration script
bcdurak Jul 4, 2024
c7bfc24
adjusting the sql zen store after the labels change
bcdurak Jul 4, 2024
893a1fc
the correct migration script
bcdurak Jul 4, 2024
7ccdb35
removed autogenerated comments
bcdurak Jul 4, 2024
03225d4
Merge branch 'develop' into feature/PRD-477-stack-wizard-cli
stefannica Jul 5, 2024
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
9 changes: 6 additions & 3 deletions examples/llm_finetuning/steps/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,12 @@ def finetune(
if should_print:
logger.info("Loading datasets...")
tokenizer = load_tokenizer(base_model_id, use_fast=use_fast)
tokenized_train_dataset = load_from_disk(dataset_dir / "train")
tokenized_val_dataset = load_from_disk(dataset_dir / "val")
tokenized_train_dataset = load_from_disk(
str((dataset_dir / "train").absolute())
)
tokenized_val_dataset = load_from_disk(
str((dataset_dir / "val").absolute())
)

if should_print:
logger.info("Loading base model...")
Expand Down Expand Up @@ -162,7 +166,6 @@ def finetune(
if should_print:
logger.info("Saving model...")

ft_model_dir = Path(ft_model_dir)
if not use_accelerate or accelerator.is_main_process:
ft_model_dir.mkdir(parents=True, exist_ok=True)
if not use_accelerate:
Expand Down
28 changes: 28 additions & 0 deletions src/zenml/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1411,6 +1411,34 @@
Each corresponding argument should be the name, id or even the first few letters
of the id that uniquely identify the artifact store or orchestrator.

To create a new stack using the new service connector with a set of minimal components,
use the following command:

```bash
zenml stack register STACK_NAME \
-p CLOUD_PROVIDER
```

To create a new stack using the existing service connector with a set of minimal components,
use the following command:

```bash
zenml stack register STACK_NAME \
-sc SERVICE_CONNECTOR_NAME
```

To create a new stack using the existing service connector with existing components (
important, that the components are already registered in the service connector), use the
following command:

```bash
zenml stack register STACK_NAME \
-sc SERVICE_CONNECTOR_NAME \
-a ARTIFACT_STORE_NAME \
-o ORCHESTRATOR_NAME \
...
```

If you want to immediately set this newly created stack as your active stack,
simply pass along the `--set` flag.

Expand Down
Loading
Loading