Skip to content

Commit

Permalink
Add requirements.txt to sentence transformers nli example (#1767)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Huang <[email protected]>
  • Loading branch information
pi314ever authored Feb 12, 2025
1 parent 5af3367 commit 97beef8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/sentence-transformers-training/nli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ Given two sentences (premise and hypothesis), the task of Natural Language Infer

The paper in [Conneau et al.](https://arxiv.org/abs/1705.02364) shows that NLI data can be quite useful when training Sentence Embedding methods. In [Sentence-BERT-Paper](https://arxiv.org/abs/1908.10084) NLI as a first fine-tuning step for sentence embedding methods has been used.

## Requirements

First, you should install the requirements:
```bash
pip install -r requirements.txt
```

# General Models

## Single-card Training
Expand Down
2 changes: 2 additions & 0 deletions examples/sentence-transformers-training/nli/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
datasets
peft

0 comments on commit 97beef8

Please sign in to comment.