Instructions to use artefactory/BERTJudge with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use artefactory/BERTJudge with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="artefactory/BERTJudge", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("artefactory/BERTJudge", trust_remote_code=True) model = AutoModelForSequenceClassification.from_pretrained("artefactory/BERTJudge", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -19,12 +19,12 @@ BERT-as-a-Judge is a family of encoder-based models designed for efficient, refe
|
|
| 19 |
|
| 20 |
## Naming Convention Breakdown
|
| 21 |
|
| 22 |
-
Models follow a standardized naming structure: `BERTJudge-<
|
| 23 |
|
| 24 |
-
* **
|
| 25 |
* `Free`: Trained on unconstrained model generations.
|
| 26 |
* `Formatted`: Trained on outputs that adhere to specific structural constraints. For optimized evaluation under the formatted setup, candidate outputs should ideally conclude with `"Final answer: <final_answer>"` (see the paper for details).
|
| 27 |
-
* **Input
|
| 28 |
* `QCR`: The input sequence consists of [Question, Candidate, Reference].
|
| 29 |
* `CR`: The input sequence consists only of [Candidate, Reference].
|
| 30 |
* **Additional Info:**
|
|
|
|
| 19 |
|
| 20 |
## Naming Convention Breakdown
|
| 21 |
|
| 22 |
+
Models follow a standardized naming structure: `BERTJudge-<Candidate_Format>-<Input_Structure>-<Additional_Info>`.
|
| 23 |
|
| 24 |
+
* **Candidate Format:**
|
| 25 |
* `Free`: Trained on unconstrained model generations.
|
| 26 |
* `Formatted`: Trained on outputs that adhere to specific structural constraints. For optimized evaluation under the formatted setup, candidate outputs should ideally conclude with `"Final answer: <final_answer>"` (see the paper for details).
|
| 27 |
+
* **Input Structure:**
|
| 28 |
* `QCR`: The input sequence consists of [Question, Candidate, Reference].
|
| 29 |
* `CR`: The input sequence consists only of [Candidate, Reference].
|
| 30 |
* **Additional Info:**
|