Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan-Zhou committed Jan 28, 2024
1 parent e2c02e4 commit 9be382e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/levanter/data/mixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,16 @@ def __init__(
self,
datasets: Mapping[str, ShardableDataset[T]],
weights: Dict[str, float],
stop_strategy: str = StopStrategy.FIRST_STOP_STRATEGY,
# stop_strategy: str = StopStrategy,
stop_strategy: str = None,
key: int | PRNGKeyArray = 0,
):
self.datasets = datasets
self.weights = MixtureDataset._normalize_weights(weights)

if stop_strategy not in [StopStrategy.FIRST_STOP_STRATEGY, StopStrategy.ALL_STOP_STRATEGY]:
raise ValueError(f"Stop strategy {stop_strategy} is not supported.")

print(f"=== Using stop_strategy {stop_strategy} ===")
self.stop_strategy = stop_strategy

if not isinstance(key, int):
Expand Down

0 comments on commit 9be382e

Please sign in to comment.