Simplify the code and save some memory

#8
by bryant1410 - opened

Simplify the code where I saw possible, and avoid some list comprehensions by using a generator expression instead (which saves memory; in this case, it also makes computation a tad faster).

Massive Text Embedding Benchmark org

Nice thanks!

Muennighoff changed pull request status to merged

Sign up or log in to comment