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
1 change: 1 addition & 0 deletions src/datatrove/pipeline/inference/checkpointing.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ async def parse_existing_checkpoints(self, rank: int, output_writer_context: Dis
# not strictly needed but just to be safe for the future
async with self.file_locks[chunk_index]:
for document in reader.read_file(filename):
document.metadata.pop("file_path", None) # Remove any injected file_path
if "__no_rollouts_remove" not in document.metadata:
output_writer_context.write(document, rank=rank, chunk_index=chunk_index)
all_ids.add(document.id)
Expand Down
Loading