Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lwm/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def __call__(self, example, has_aux=False, add_bos_token=True, add_eos_token=Tru
example, *aux = example
else:
aux = tuple()
rand_state = random.Random(aux[-1]) # makes augmentations deterministic by line number
rand_state = random.Random(aux[-1] if aux else 0) # makes augmentations deterministic by line number
token_buffer = []
loss_mask_buffer = []
vision_mask = []
Expand Down