-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the splitter use less memory #85
Comments
https://arrow.apache.org/docs/python/ipc.html + read parquet in batch |
read the files in batches, no need to prepare the whole first file of feather batches |
at least write all the shards in parallel so it's faster to write to high latency fs (s3, hdfs), eg by using https://filesystem-spec.readthedocs.io/en/latest/async.html |
Closed
done now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If doing that then the memory usage can be capped to very low values
https://github.com/criteo/autofaiss/blob/master/autofaiss/readers/embeddings_iterators.py#L139 see this as example
The text was updated successfully, but these errors were encountered: