Skip to main content

Mine hard negatives from text datasets.

Project description

Usage

accelerate launch --multi_gpu main.py --input_path /home/henry/hard_negatives/parquets/test_pairs.parquet
@software{shippole2026hardnegatives,
  title        = {Hard Negatives: A Python Library for Mining Hard Negative Examples},
  author       = {Shippole, Enrico and Chaffin, Antoine and Aarsen, Tom},
  year         = {2026},
  url          = {https://github.com/teraflop-ai/hard-negatives},
  version      = {1.0.0},
  note         = {Python package available on PyPI at \url{https://pypi.org/project/hard-negatives/}}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hard_negatives-0.1.1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hard_negatives-0.1.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file hard_negatives-0.1.1.tar.gz.

File metadata

  • Download URL: hard_negatives-0.1.1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.3

File hashes

Hashes for hard_negatives-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fef1e59e6e7e2bb32e12f34611a9440de3e08c44b7d984b77e04c055d51534d4
MD5 fc15bf36e0d5a639f2ae3d2c8fa5b1fd
BLAKE2b-256 7baf3c9fe9dcf4eee89ef31cfc0c31ceb34aa2cd04baaac7a371f53b4c055275

See more details on using hashes here.

File details

Details for the file hard_negatives-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hard_negatives-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 481e6a6d84c90194a4c50d023eb24026303d4a1538b7d47fb51f53e7899ec5ff
MD5 fa884a0d1004842f7f9a539d575949e8
BLAKE2b-256 0086a5bdae7c7fe103d0e51ff7fd7bbf59951788c7b67ceaa08f7e22154f6aeb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page