stanfordnlp / GloVe

Software in C and data files for the popular GloVe model for distributed word representations, a.k.a. word vectors or embeddings
Apache License 2.0
6.81k stars 1.51k forks source link

Fixed overflow_threshold overflow when using 256G of memory #216

Closed florath closed 1 year ago

florath commented 1 year ago

The current implementation using an 'int' runs into an overflow when specifying 256G of memory. This patch fixed the problem changing the 'int' into a 'long long'.

Fixes: #215

AngledLuffa commented 1 year ago

Thanks for the help!