Skip to content

Commit

Permalink
remove use_vessl variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rifqiyan committed Mar 29, 2024
1 parent 0b76c97 commit 74511a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/axolotl/core/trainer_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ def get_callbacks(self) -> List[TrainerCallback]:
SaveAxolotlConfigtoWandBCallback(self.cfg.axolotl_config_path)
)

if self.cfg.use_vessl:
if self.cfg.vessl_credential_path:
from axolotl.utils.callbacks.vessl_ import VesslLogMetricsCallback

callbacks.append(
Expand Down
1 change: 0 additions & 1 deletion src/axolotl/utils/vessl_.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ def setup_vessl_env_vars(cfg: DictDefault):
# default credential inside a VESSL Run
credential_path = os.environ.get("VESSL_RUN_INITIAL_CONFIG")
if credential_path:
cfg.use_vessl = True
cfg.vessl_credential_path = credential_path

0 comments on commit 74511a4

Please sign in to comment.