Run this model with HF Jobs
Run SparseCL/BGE-SparseCL-msmarco on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/SparseCL/BGE-SparseCL-msmarco. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/SparseCL/BGE-SparseCL-msmarco on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use SparseCL/BGE-SparseCL-msmarco with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SparseCL/BGE-SparseCL-msmarco with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, our_BertForCL tokenizer = AutoTokenizer.from_pretrained("SparseCL/BGE-SparseCL-msmarco") model = our_BertForCL.from_pretrained("SparseCL/BGE-SparseCL-msmarco", device_map="auto") - Notebooks
- Google Colab
- Kaggle
BGE-SparseCL-msmarco
This repository contains the SparseCL model based on BAAI/bge-base-en-v1.5 and trained on the msmarco dataset.
SparseCL is designed for contradiction and counterargument retrieval.
For implementation and usage details, please see the SparseCL repository.
Citation
Please cite our paper if you use this model:
@inproceedings{xu2025contradiction,
title={Contradiction Retrieval via Contrastive Learning with Sparsity},
author={Xu, Haike and Lin, Zongyu and Chang, Kai-Wei and Sun, Yizhou and Indyk, Piotr},
booktitle={International Conference on Machine Learning},
year={2025}
}
License
MIT License.
- Downloads last month
- 26
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support