Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Малахов Алексей Павлович committed Sep 12, 2024
1 parent a0a1a77 commit 1dbc68d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions turbo_alignment/common/logging/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from .logger import get_project_logger
from .logging import LoggingRegistry
File renamed without changes.
1 change: 0 additions & 1 deletion turbo_alignment/pipelines/mixin/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from .logging import LoggingRegistry
from .s3 import S3Mixin
3 changes: 2 additions & 1 deletion turbo_alignment/pipelines/train/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
from turbo_alignment.cherry_picks.base import CherryPickCallbackBase
from turbo_alignment.common.data.io import write_json
from turbo_alignment.common.logging import get_project_logger
from turbo_alignment.common.logging.logging import LoggingRegistry
from turbo_alignment.common.tf.loaders.model import load_model
from turbo_alignment.common.tf.loaders.tokenizer import load_tokenizer
from turbo_alignment.common.tf.special_tokens_setter import SpecialTokensSetter
from turbo_alignment.dataset.loader import DatasetLoader
from turbo_alignment.pipelines.base import BaseStrategy
from turbo_alignment.pipelines.mixin import LoggingRegistry, S3Mixin
from turbo_alignment.pipelines.mixin import S3Mixin
from turbo_alignment.settings.datasets.base import DatasetStrategy
from turbo_alignment.settings.pipelines.train.base import BaseTrainExperimentSettings
from turbo_alignment.settings.s3 import ExperimentMetadata, S3HandlerParameters
Expand Down
4 changes: 2 additions & 2 deletions turbo_alignment/settings/logging/clearml.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from turbo_alignment.settings.base import ExtraFieldsNotAllowedBaseModel
from pydantic_settings import BaseSettings


class ClearMLSettings(ExtraFieldsNotAllowedBaseModel):
class ClearMLSettings(BaseSettings):
project_name: str
task_name: str
tags: list[str] = []
Expand Down
4 changes: 2 additions & 2 deletions turbo_alignment/settings/logging/weights_and_biases.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from enum import Enum

from turbo_alignment.settings.base import ExtraFieldsNotAllowedBaseModel
from pydantic_settings import BaseSettings


class WandbMode(str, Enum):
Expand All @@ -9,7 +9,7 @@ class WandbMode(str, Enum):
DISABLED: str = 'disabled'


class WandbSettings(ExtraFieldsNotAllowedBaseModel):
class WandbSettings(BaseSettings):
project_name: str
run_name: str
entity: str
Expand Down

0 comments on commit 1dbc68d

Please sign in to comment.