Skip to content

Commit

Permalink
key afctory
Browse files Browse the repository at this point in the history
  • Loading branch information
kothasuhas committed Feb 7, 2025
1 parent e59c631 commit 7c50442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/levanter/data/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ class LMDatasetConfig(LMDatasetSourceConfig, LMTaskConfig):
split_fraction: Optional[float] = None
"""If set, fraction of training data to use for training. Must be between 0 and 1.
The remainder will be used for validation. This overrides any existing validation set."""
split_key: PRNGKeyArray = jax.random.PRNGKey(0)
split_key: PRNGKeyArray = field(default_factory=lambda: jax.random.PRNGKey(0))

def __post_init__(self):
if self.split_fraction is not None:
Expand Down

0 comments on commit 7c50442

Please sign in to comment.