4 Commits
Author SHA1 Message Date
Alibek Zhakubayev 3d00b44a47 Reduce memory usage in timeout callback tests (#4745)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/4745

Reduce test dataset size to use ~13 MB instead of ~1.5 GB while maintaining enough computational complexity to trigger the 10ms timeout before early stopping can converge.

Reviewed By: bshethmeta

Differential Revision: D90128255

fbshipit-source-id: 75b875d23ce459849d29acdb9d6de0828879ae46
2026-01-05 15:00:20 -08:00
Alibek Zhakubayev d715490edc Add early stopping to k-means clustering (#4741)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/4741

K-means clustering now stops early when the objective function converges, avoiding unnecessary iterations when niter is set to a high value as a safeguard. This prevents wasted computation when convergence happens well before the maximum iteration limit.

Reviewed By: limqiying

Differential Revision: D89748242

fbshipit-source-id: 2e728e64b94aea4fef2bd9acba117fda76104d61
2025-12-29 14:05:23 -08:00
Michael Norris eff0898a13 Enable linting: lint config changes plus arc lint command (#3966)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3966

This actually enables the linting.

Manual changes:
- tools/arcanist/lint/fbsource-licenselint-config.toml
- tools/arcanist/lint/fbsource-lint-engine.toml

Automated changes:
`arc lint --apply-patches --take LICENSELINT --paths-cmd 'hg files faiss'`

Reviewed By: asadoughi

Differential Revision: D64484165

fbshipit-source-id: 4f2f6e953c94ef6ebfea8a5ae035ccfbea65ed04
2024-10-22 09:46:48 -07:00
Amir Sadoughi b3e3c2d38d TimeoutCallback C++ and Python (#3417)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3417

https://github.com/facebookresearch/faiss/issues/3351

Reviewed By: junjieqi

Differential Revision: D57120422

fbshipit-source-id: e2e446642e7be8647f5115f90916fad242e31286
2024-05-08 21:52:46 -07:00