Instructions to use Motahar/clickbait-csebert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Motahar/clickbait-csebert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Motahar/clickbait-csebert", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Motahar/clickbait-csebert", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Updated config.json
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
],
|
| 5 |
"auto_map": {
|
| 6 |
"AutoConfig": "configuration_ganbert.GanBertConfig",
|
| 7 |
-
"
|
| 8 |
},
|
| 9 |
"batch_size": 64,
|
| 10 |
"device": "cuda",
|
|
|
|
| 4 |
],
|
| 5 |
"auto_map": {
|
| 6 |
"AutoConfig": "configuration_ganbert.GanBertConfig",
|
| 7 |
+
"AutoModel": "ganbert.GAN"
|
| 8 |
},
|
| 9 |
"batch_size": 64,
|
| 10 |
"device": "cuda",
|