Instructions to use bsl/bart-ranker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bsl/bart-ranker with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("bsl/bart-ranker") model = AutoModelForSequenceClassification.from_pretrained("bsl/bart-ranker", device_map="auto") - Notebooks
- Google Colab
- Kaggle
This model predicts the relevance of a query-document pair.
Please see https://github.com/binshengliu/tank for usage and benchmark.
- Downloads last month
- 12