Skip to content

Commit

Permalink
fix: Change folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
iusztinpaul committed Aug 9, 2024
1 parent 631c9e8 commit 03291b2
Show file tree
Hide file tree
Showing 28 changed files with 25 additions and 9 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from zenml import pipeline

from llm_engineering.interfaces.orchestrator.steps.etl import crawl_links, get_or_create_user
from steps.etl import crawl_links, get_or_create_user


@pipeline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from zenml import pipeline
from zenml.client import Client

from llm_engineering.interfaces.orchestrator.steps import export as export_steps
from steps import export as export_steps


@pipeline
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from zenml import pipeline

from llm_engineering.interfaces.orchestrator.steps import feature_engineering as fe_steps
from steps import feature_engineering as fe_steps


@pipeline
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from zenml import pipeline

from llm_engineering.interfaces.orchestrator.steps import generate_instruct_datasets as cd_steps
from steps import generate_instruct_datasets as cd_steps


@pipeline
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from zenml import pipeline
from zenml.client import Client

from llm_engineering.interfaces.orchestrator.steps import training as training_steps
from steps import training as training_steps


@pipeline
Expand Down
12 changes: 11 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ numpy = "^1.26.4"
selenium = "^4.21.0"
webdriver-manager = "^4.0.1"
beautifulsoup4 = "^4.12.3"
html2text = "^2024.2.26"
jmespath = "^1.0.1"
chromedriver-autoinstaller = "^0.6.4"

Expand Down Expand Up @@ -59,7 +60,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poe.tasks]
# Pipelines
run-digital-data-etl-alex = "python -m llm_engineering.interfaces.orchestrator.run --run-etl --no-cache --etl-config-filename digital_data_etl_alex_vesa.yaml"
run-digital-data-etl-alex = "python run.py --run-etl --no-cache --etl-config-filename digital_data_etl_alex_vesa.yaml"
run-digital-data-etl-maxime = "python -m llm_engineering.interfaces.orchestrator.run --run-etl --no-cache --etl-config-filename digital_data_etl_maxime_labonne.yaml"
run-digital-data-etl-paul = "python -m llm_engineering.interfaces.orchestrator.run --run-etl --no-cache --etl-config-filename digital_data_etl_paul_iusztin.yaml"
run-digital-data-etl = [
Expand Down Expand Up @@ -93,6 +94,10 @@ local-infrastructure-down = [
"local-zenml-server-down",
]

# ZenML
set-local-stack = "zenml stack set default"
set-aws-stack = "zenml stack set aws-stack"

# Docker
build-docker-image = "docker buildx build --platform linux/amd64 -t llmtwin -f Dockerfile ."
run-docker-digital-data-etl = "docker run --rm --network host --shm-size=2g --env-file .env llmtwin poetry poe run-digital-data-etl"
Expand Down
5 changes: 3 additions & 2 deletions ...ngineering/interfaces/orchestrator/run.py → run.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import click

from llm_engineering.interfaces.orchestrator.pipelines import (
from pipelines import (
digital_data_etl,
export_artifact_to_json,
feature_engineering,
Expand Down Expand Up @@ -102,7 +102,8 @@ def main(
pipeline_args = {
"enable_cache": not no_cache,
}
root_dir = Path(__file__).resolve().parent.parent.parent.parent
# root_dir = Path(__file__).resolve().parent.parent.parent.parent
root_dir = Path(__file__).resolve().parent

if run_etl:
run_args_etl = {}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 03291b2

Please sign in to comment.