Skip to content

Commit

Permalink
Fix the misspelling for initializer
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Velichkevich <[email protected]>
  • Loading branch information
andreyvelich committed Oct 25, 2024
1 parent 468500d commit fa77453
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-core-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ jobs:
dockerfile: cmd/training-operator.v2alpha1/Dockerfile
platforms: linux/amd64,linux/arm64,linux/ppc64le
tag-prefix: v2alpha1
- component-name: model-initiailizer-v2
dockerfile: cmd/initiailizer_v2/model/Dockerfile
- component-name: model-initializer-v2
dockerfile: cmd/initializer/model/Dockerfile
platforms: linux/amd64,linux/arm64
tag-prefix: v2
- component-name: dataset-initiailizer-v2
dockerfile: cmd/initiailizer_v2/dataset/Dockerfile
- component-name: dataset-initializer-v2
dockerfile: cmd/initializer_v2/dataset/Dockerfile
platforms: linux/amd64,linux/arm64
tag-prefix: v2
- component-name: kubectl-delivery
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ FROM python:3.11-alpine
WORKDIR /workspace

# Copy the required Python modules.
COPY cmd/initiailizer_v2/model/requirements.txt .
COPY cmd/initializer_v2/dataset/requirements.txt .
COPY sdk/python/kubeflow sdk/python/kubeflow
COPY pkg/initiailizer_v2 pkg/initiailizer_v2
COPY pkg/initializer_v2 pkg/initializer_v2

# Install the needed packages.
RUN pip install -r requirements.txt

ENTRYPOINT ["python", "-m", "pkg.initiailizer_v2.model"]
ENTRYPOINT ["python", "-m", "pkg.initializer_v2.dataset"]
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ FROM python:3.11-alpine
WORKDIR /workspace

# Copy the required Python modules.
COPY cmd/initiailizer_v2/dataset/requirements.txt .
COPY cmd/initializer_v2/model/requirements.txt .
COPY sdk/python/kubeflow sdk/python/kubeflow
COPY pkg/initiailizer_v2 pkg/initiailizer_v2
COPY pkg/initializer_v2 pkg/initializer_v2

# Install the needed packages.
RUN pip install -r requirements.txt

ENTRYPOINT ["python", "-m", "pkg.initiailizer_v2.dataset"]
ENTRYPOINT ["python", "-m", "pkg.initializer_v2.model"]
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import os
from urllib.parse import urlparse

import pkg.initiailizer_v2.utils.utils as utils
from pkg.initiailizer_v2.dataset.huggingface import HuggingFace
import pkg.initializer_v2.utils.utils as utils
from pkg.initializer_v2.dataset.huggingface import HuggingFace

logging.basicConfig(
format="%(asctime)s %(levelname)-8s [%(filename)s:%(lineno)d] %(message)s",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

import huggingface_hub

import pkg.initiailizer_v2.utils.utils as utils
import pkg.initializer_v2.utils.utils as utils

# TODO (andreyvelich): This should be moved to SDK V2 constants.
import sdk.python.kubeflow.storage_initializer.constants as constants
from pkg.initiailizer_v2.dataset.config import HuggingFaceDatasetConfig
from pkg.initializer_v2.dataset.config import HuggingFaceDatasetConfig

logging.basicConfig(
format="%(asctime)s %(levelname)-8s [%(filename)s:%(lineno)d] %(message)s",
Expand All @@ -20,7 +20,7 @@ class HuggingFace(utils.DatasetProvider):

def load_config(self):
config_dict = utils.get_config_from_env(HuggingFaceDatasetConfig)
logging.info(f"Config for HuggingFace dataset initiailizer: {config_dict}")
logging.info(f"Config for HuggingFace dataset initializer: {config_dict}")
self.config = HuggingFaceDatasetConfig(**config_dict)

def download_dataset(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import os
from urllib.parse import urlparse

import pkg.initiailizer_v2.utils.utils as utils
from pkg.initiailizer_v2.model.huggingface import HuggingFace
import pkg.initializer_v2.utils.utils as utils
from pkg.initializer_v2.model.huggingface import HuggingFace

logging.basicConfig(
format="%(asctime)s %(levelname)-8s [%(filename)s:%(lineno)d] %(message)s",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

import huggingface_hub

import pkg.initiailizer_v2.utils.utils as utils
import pkg.initializer_v2.utils.utils as utils

# TODO (andreyvelich): This should be moved to SDK V2 constants.
import sdk.python.kubeflow.storage_initializer.constants as constants
from pkg.initiailizer_v2.model.config import HuggingFaceModelInputConfig
from pkg.initializer_v2.model.config import HuggingFaceModelInputConfig

logging.basicConfig(
format="%(asctime)s %(levelname)-8s [%(filename)s:%(lineno)d] %(message)s",
Expand All @@ -20,7 +20,7 @@ class HuggingFace(utils.ModelProvider):

def load_config(self):
config_dict = utils.get_config_from_env(HuggingFaceModelInputConfig)
logging.info(f"Config for HuggingFace model initiailizer: {config_dict}")
logging.info(f"Config for HuggingFace model initializer: {config_dict}")
self.config = HuggingFaceModelInputConfig(**config_dict)

def download_model(self):
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit fa77453

Please sign in to comment.