Instructions to use q-future/Compare2Score with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use q-future/Compare2Score with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="q-future/Compare2Score", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("q-future/Compare2Score", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Create generation_config.json
Browse files- generation_config.json +9 -0
generation_config.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 1,
|
| 3 |
+
"eos_token_id": 2,
|
| 4 |
+
"max_length": 4096,
|
| 5 |
+
"pad_token_id": 0,
|
| 6 |
+
"temperature": 0.9,
|
| 7 |
+
"top_p": 0.6,
|
| 8 |
+
"transformers_version": "4.31.0"
|
| 9 |
+
}
|