Instructions to use BaranKanat/BerTurk-SpamSMS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BaranKanat/BerTurk-SpamSMS with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="BaranKanat/BerTurk-SpamSMS")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("BaranKanat/BerTurk-SpamSMS") model = AutoModelForSequenceClassification.from_pretrained("BaranKanat/BerTurk-SpamSMS", device_map="auto") - Notebooks
- Google Colab
- Kaggle
update config.json
Browse filesAdded 'pipeline_tag' property.
- config.json +1 -0
config.json
CHANGED
|
@@ -16,6 +16,7 @@
|
|
| 16 |
"num_attention_heads": 12,
|
| 17 |
"num_hidden_layers": 12,
|
| 18 |
"pad_token_id": 0,
|
|
|
|
| 19 |
"position_embedding_type": "absolute",
|
| 20 |
"problem_type": "single_label_classification",
|
| 21 |
"torch_dtype": "float32",
|
|
|
|
| 16 |
"num_attention_heads": 12,
|
| 17 |
"num_hidden_layers": 12,
|
| 18 |
"pad_token_id": 0,
|
| 19 |
+
"pipeline_tag": "text-classification",
|
| 20 |
"position_embedding_type": "absolute",
|
| 21 |
"problem_type": "single_label_classification",
|
| 22 |
"torch_dtype": "float32",
|