Text Classification
Transformers
Safetensors
English
distilbert
podcast
ad-detection
skipr
text-embeddings-inference
Instructions to use kayaaaa/ad-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kayaaaa/ad-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="kayaaaa/ad-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("kayaaaa/ad-classifier") model = AutoModelForSequenceClassification.from_pretrained("kayaaaa/ad-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload 6 files
Browse files- config.json +6 -2
- model.safetensors +1 -1
- tokenizer_config.json +3 -44
config.json
CHANGED
|
@@ -4,8 +4,11 @@
|
|
| 4 |
"DistilBertForSequenceClassification"
|
| 5 |
],
|
| 6 |
"attention_dropout": 0.1,
|
|
|
|
| 7 |
"dim": 768,
|
| 8 |
"dropout": 0.1,
|
|
|
|
|
|
|
| 9 |
"hidden_dim": 3072,
|
| 10 |
"initializer_range": 0.02,
|
| 11 |
"max_position_embeddings": 512,
|
|
@@ -18,7 +21,8 @@
|
|
| 18 |
"seq_classif_dropout": 0.2,
|
| 19 |
"sinusoidal_pos_embds": false,
|
| 20 |
"tie_weights_": true,
|
| 21 |
-
"
|
| 22 |
-
"transformers_version": "
|
|
|
|
| 23 |
"vocab_size": 30522
|
| 24 |
}
|
|
|
|
| 4 |
"DistilBertForSequenceClassification"
|
| 5 |
],
|
| 6 |
"attention_dropout": 0.1,
|
| 7 |
+
"bos_token_id": null,
|
| 8 |
"dim": 768,
|
| 9 |
"dropout": 0.1,
|
| 10 |
+
"dtype": "float32",
|
| 11 |
+
"eos_token_id": null,
|
| 12 |
"hidden_dim": 3072,
|
| 13 |
"initializer_range": 0.02,
|
| 14 |
"max_position_embeddings": 512,
|
|
|
|
| 21 |
"seq_classif_dropout": 0.2,
|
| 22 |
"sinusoidal_pos_embds": false,
|
| 23 |
"tie_weights_": true,
|
| 24 |
+
"tie_word_embeddings": true,
|
| 25 |
+
"transformers_version": "5.10.2",
|
| 26 |
+
"use_cache": false,
|
| 27 |
"vocab_size": 30522
|
| 28 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 267832560
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5606bf50b99e09bd5a21cc7e85774695c1f789a60cb8a40b1f6353b43d419fae
|
| 3 |
size 267832560
|
tokenizer_config.json
CHANGED
|
@@ -1,50 +1,9 @@
|
|
| 1 |
{
|
| 2 |
-
"
|
| 3 |
-
"0": {
|
| 4 |
-
"content": "[PAD]",
|
| 5 |
-
"lstrip": false,
|
| 6 |
-
"normalized": false,
|
| 7 |
-
"rstrip": false,
|
| 8 |
-
"single_word": false,
|
| 9 |
-
"special": true
|
| 10 |
-
},
|
| 11 |
-
"100": {
|
| 12 |
-
"content": "[UNK]",
|
| 13 |
-
"lstrip": false,
|
| 14 |
-
"normalized": false,
|
| 15 |
-
"rstrip": false,
|
| 16 |
-
"single_word": false,
|
| 17 |
-
"special": true
|
| 18 |
-
},
|
| 19 |
-
"101": {
|
| 20 |
-
"content": "[CLS]",
|
| 21 |
-
"lstrip": false,
|
| 22 |
-
"normalized": false,
|
| 23 |
-
"rstrip": false,
|
| 24 |
-
"single_word": false,
|
| 25 |
-
"special": true
|
| 26 |
-
},
|
| 27 |
-
"102": {
|
| 28 |
-
"content": "[SEP]",
|
| 29 |
-
"lstrip": false,
|
| 30 |
-
"normalized": false,
|
| 31 |
-
"rstrip": false,
|
| 32 |
-
"single_word": false,
|
| 33 |
-
"special": true
|
| 34 |
-
},
|
| 35 |
-
"103": {
|
| 36 |
-
"content": "[MASK]",
|
| 37 |
-
"lstrip": false,
|
| 38 |
-
"normalized": false,
|
| 39 |
-
"rstrip": false,
|
| 40 |
-
"single_word": false,
|
| 41 |
-
"special": true
|
| 42 |
-
}
|
| 43 |
-
},
|
| 44 |
-
"clean_up_tokenization_spaces": false,
|
| 45 |
"cls_token": "[CLS]",
|
| 46 |
"do_lower_case": true,
|
| 47 |
-
"
|
|
|
|
| 48 |
"mask_token": "[MASK]",
|
| 49 |
"model_max_length": 512,
|
| 50 |
"pad_token": "[PAD]",
|
|
|
|
| 1 |
{
|
| 2 |
+
"backend": "tokenizers",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
"cls_token": "[CLS]",
|
| 4 |
"do_lower_case": true,
|
| 5 |
+
"is_local": false,
|
| 6 |
+
"local_files_only": false,
|
| 7 |
"mask_token": "[MASK]",
|
| 8 |
"model_max_length": 512,
|
| 9 |
"pad_token": "[PAD]",
|