Skip to content

Commit

Permalink
think i fixed it?
Browse files Browse the repository at this point in the history
  • Loading branch information
soldni committed Oct 24, 2024
1 parent d89e24e commit eb8fc40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classifiers/src/dolma_classifiers/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ def writer_worker(
path = None

if path is not None and path.count == counts[path.source]:
# if path is not None:
# I've finished processing this source; close the file
f = files_writers.pop(path.source)
f.close()
Expand All @@ -190,6 +189,7 @@ def writer_worker(
)
# more documents still to be written for this source; put it back
output_paths_queue.put(path)
total_count = 0
finally:
for f in files_writers.values():
f.close()
Expand Down

0 comments on commit eb8fc40

Please sign in to comment.