Skip to content

Commit

Permalink
Merge branch 'comet-monitor'
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkuzmik committed Apr 26, 2024
2 parents f3957ef + 42bacbf commit 99ef13d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions deepspeed/monitor/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# DeepSpeed Team

from typing import Optional, Literal
from typing import Optional

from deepspeed.pydantic_v1 import root_validator
from deepspeed.runtime.config_utils import DeepSpeedConfigModel
Expand Down Expand Up @@ -113,9 +113,9 @@ class CometConfig(DeepSpeedConfigModel):
Defaults to True.
"""

mode: Optional[Literal["get_or_create", "create", "get"]] = None
mode: Optional[str] = None
"""
Control how the Comet experiment is started:
Control how the Comet experiment is started, 3 options are possible.:
- "get": Continue logging to an existing experiment identified by the `experiment_key` value.
- "create": Always creates of a new experiment, useful for HPO sweeps.
- "get_or_create" (default): Starts a fresh experiment if required, or persists logging to an existing one.
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/monitor/test_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def test_comet_monitor(self):
mock_start = Mock(return_value=mock_experiment)

config_dict = {
"train_batch_size": 1,
"train_batch_size": 2,
"comet": {
"enabled": True,
"samples_log_interval": 42,
Expand Down

0 comments on commit 99ef13d

Please sign in to comment.