Instructions to use liamcripwell/ctrl44-clf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use liamcripwell/ctrl44-clf with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="liamcripwell/ctrl44-clf")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("liamcripwell/ctrl44-clf") model = AutoModelForSequenceClassification.from_pretrained("liamcripwell/ctrl44-clf", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
c8ff837
1
Parent(s): d76cb40
Update config.json
Browse files- config.json +4 -4
config.json
CHANGED
|
@@ -11,10 +11,10 @@
|
|
| 11 |
"hidden_dropout_prob": 0.1,
|
| 12 |
"hidden_size": 768,
|
| 13 |
"id2label": {
|
| 14 |
-
"0": "
|
| 15 |
-
"1": "
|
| 16 |
-
"2": "
|
| 17 |
-
"3": "
|
| 18 |
},
|
| 19 |
"initializer_range": 0.02,
|
| 20 |
"intermediate_size": 3072,
|
|
|
|
| 11 |
"hidden_dropout_prob": 0.1,
|
| 12 |
"hidden_size": 768,
|
| 13 |
"id2label": {
|
| 14 |
+
"0": "ignore",
|
| 15 |
+
"1": "rephrase",
|
| 16 |
+
"2": "syntax-split",
|
| 17 |
+
"3": "discourse-split"
|
| 18 |
},
|
| 19 |
"initializer_range": 0.02,
|
| 20 |
"intermediate_size": 3072,
|