Text Classification
Transformers
PyTorch
distilbert
Generated from Trainer
text-embeddings-inference
Instructions to use prakhars/instagram_caption_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prakhars/instagram_caption_classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="prakhars/instagram_caption_classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("prakhars/instagram_caption_classifier") model = AutoModelForSequenceClassification.from_pretrained("prakhars/instagram_caption_classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload DistilBertForSequenceClassification
Browse files- config.json +26 -26
- pytorch_model.bin +2 -2
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"activation": "gelu",
|
| 4 |
"architectures": [
|
| 5 |
"DistilBertForSequenceClassification"
|
|
@@ -9,33 +9,33 @@
|
|
| 9 |
"dropout": 0.1,
|
| 10 |
"hidden_dim": 3072,
|
| 11 |
"id2label": {
|
| 12 |
-
"0": "
|
| 13 |
-
"1": "
|
| 14 |
-
"2": "
|
| 15 |
-
"3": "
|
| 16 |
-
"4": "
|
| 17 |
-
"5": "
|
| 18 |
-
"6": "
|
| 19 |
-
"7": "
|
| 20 |
-
"8": "
|
| 21 |
-
"9": "
|
| 22 |
-
"10": "
|
| 23 |
-
"11": "
|
| 24 |
},
|
| 25 |
"initializer_range": 0.02,
|
| 26 |
"label2id": {
|
| 27 |
-
"
|
| 28 |
-
"
|
| 29 |
-
"
|
| 30 |
-
"
|
| 31 |
-
"
|
| 32 |
-
"
|
| 33 |
-
"
|
| 34 |
-
"
|
| 35 |
-
"
|
| 36 |
-
"
|
| 37 |
-
"
|
| 38 |
-
"
|
| 39 |
},
|
| 40 |
"max_position_embeddings": 512,
|
| 41 |
"model_type": "distilbert",
|
|
@@ -48,6 +48,6 @@
|
|
| 48 |
"sinusoidal_pos_embds": false,
|
| 49 |
"tie_weights_": true,
|
| 50 |
"torch_dtype": "float32",
|
| 51 |
-
"transformers_version": "4.
|
| 52 |
"vocab_size": 30522
|
| 53 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "prakhars/instagram_caption_classifier",
|
| 3 |
"activation": "gelu",
|
| 4 |
"architectures": [
|
| 5 |
"DistilBertForSequenceClassification"
|
|
|
|
| 9 |
"dropout": 0.1,
|
| 10 |
"hidden_dim": 3072,
|
| 11 |
"id2label": {
|
| 12 |
+
"0": "Art and Culture",
|
| 13 |
+
"1": "Automotive",
|
| 14 |
+
"2": "Beauty, Fashion and Lifestyle",
|
| 15 |
+
"3": "Entertainment",
|
| 16 |
+
"4": "Finance",
|
| 17 |
+
"5": "Food",
|
| 18 |
+
"6": "Health and Fitness",
|
| 19 |
+
"7": "Music",
|
| 20 |
+
"8": "Parenting",
|
| 21 |
+
"9": "Pets",
|
| 22 |
+
"10": "Sports",
|
| 23 |
+
"11": "Travel"
|
| 24 |
},
|
| 25 |
"initializer_range": 0.02,
|
| 26 |
"label2id": {
|
| 27 |
+
"Art and Culture": 0,
|
| 28 |
+
"Automotive": 1,
|
| 29 |
+
"Beauty, Fashion and Lifestyle": 2,
|
| 30 |
+
"Entertainment": 3,
|
| 31 |
+
"Finance": 4,
|
| 32 |
+
"Food": 5,
|
| 33 |
+
"Health and Fitness": 6,
|
| 34 |
+
"Music": 7,
|
| 35 |
+
"Parenting": 8,
|
| 36 |
+
"Pets": 9,
|
| 37 |
+
"Sports": 10,
|
| 38 |
+
"Travel": 11
|
| 39 |
},
|
| 40 |
"max_position_embeddings": 512,
|
| 41 |
"model_type": "distilbert",
|
|
|
|
| 48 |
"sinusoidal_pos_embds": false,
|
| 49 |
"tie_weights_": true,
|
| 50 |
"torch_dtype": "float32",
|
| 51 |
+
"transformers_version": "4.22.0",
|
| 52 |
"vocab_size": 30522
|
| 53 |
}
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7fca11569702066ae4f32276d54a59fb46582df6964e6b87b200ae1cf7b967a2
|
| 3 |
+
size 267883633
|