deetsml commited on
Commit
4ce1bd6
1 Parent(s): 192964b

Add SetFit model

Browse files
Files changed (3) hide show
  1. README.md +8 -16
  2. config.json +10 -77
  3. tokenizer_config.json +1 -1
README.md CHANGED
@@ -1,17 +1,13 @@
1
  ---
2
- pipeline_tag: text-classification
3
  tags:
4
  - sentence-transformers
5
- - text-classification
6
- - sentimen-analysis
7
- library_name: transformers
8
- language:
9
- - en
10
- metrics:
11
- - accuracy
12
- - precision
13
- - recall
14
  ---
 
15
  # {MODEL_NAME}
16
 
17
  This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 1024 dimensional dense vector space and can be used for tasks like clustering or semantic search.
@@ -91,9 +87,7 @@ The model was trained with the parameters:
91
 
92
  `torch.utils.data.dataloader.DataLoader` of length 14756 with parameters:
93
  ```
94
- {"multi_target_strategy": "multi-output",
95
- "candidate_labels": ['atmosphere', 'beer list', 'bottomless brunch', 'breakfast', 'brunch', 'business', 'byob', 'casual', 'date night', 'delivery', 'fine dining', 'gluten free', 'good value', 'great cocktails', 'great service', 'happy hour', 'healthy', 'instagrammable', 'kid friendly', 'large groups', 'late night', 'live music', 'lunch', 'night out', 'outdoor seating', 'quick', 'romantic', 'rooftop', 'small plates', 'special event', 'sports/tvs', 'takeout', 'tasting menu', 'vegetarian', 'walk-in', 'wine list'],
96
- 'batch_size': 4, 'sampler': 'torch.utils.data.sampler.RandomSampler', 'batch_sampler': 'torch.utils.data.sampler.BatchSampler'}
97
  ```
98
 
99
  **Loss**:
@@ -103,9 +97,7 @@ The model was trained with the parameters:
103
  Parameters of the fit()-Method:
104
  ```
105
  {
106
- "multi_target_strategy": "multi-output",
107
- "candidate_labels": ['atmosphere', 'beer list', 'bottomless brunch', 'breakfast', 'brunch', 'business', 'byob', 'casual', 'date night', 'delivery', 'fine dining', 'gluten free', 'good value', 'great cocktails', 'great service', 'happy hour', 'healthy', 'instagrammable', 'kid friendly', 'large groups', 'late night', 'live music', 'lunch', 'night out', 'outdoor seating', 'quick', 'romantic', 'rooftop', 'small plates', 'special event', 'sports/tvs', 'takeout', 'tasting menu', 'vegetarian', 'walk-in', 'wine list'],
108
- "epochs": 3,
109
  "evaluation_steps": 0,
110
  "evaluator": "NoneType",
111
  "max_grad_norm": 1,
 
1
  ---
2
+ pipeline_tag: sentence-similarity
3
  tags:
4
  - sentence-transformers
5
+ - feature-extraction
6
+ - sentence-similarity
7
+ - transformers
8
+
 
 
 
 
 
9
  ---
10
+
11
  # {MODEL_NAME}
12
 
13
  This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 1024 dimensional dense vector space and can be used for tasks like clustering or semantic search.
 
87
 
88
  `torch.utils.data.dataloader.DataLoader` of length 14756 with parameters:
89
  ```
90
+ {'batch_size': 4, 'sampler': 'torch.utils.data.sampler.RandomSampler', 'batch_sampler': 'torch.utils.data.sampler.BatchSampler'}
 
 
91
  ```
92
 
93
  **Loss**:
 
97
  Parameters of the fit()-Method:
98
  ```
99
  {
100
+ "epochs": 1,
 
 
101
  "evaluation_steps": 0,
102
  "evaluator": "NoneType",
103
  "max_grad_norm": 1,
config.json CHANGED
@@ -1,10 +1,9 @@
1
  {
2
- "_name_or_path": "/root/.cache/torch/sentence_transformers/facebook_bart-large-mnli",
3
- "_num_labels": 36,
4
  "activation_dropout": 0.0,
5
  "activation_function": "gelu",
6
  "add_final_layer_norm": false,
7
- "multi_target_strategy": "multi-output",
8
  "architectures": [
9
  "BartModel"
10
  ],
@@ -27,82 +26,16 @@
27
  "forced_eos_token_id": 2,
28
  "gradient_checkpointing": false,
29
  "id2label": {
30
- "0": "atmosphere",
31
- "1": "beer list",
32
- "2": "bottomless brunch",
33
- "3": "breakfast",
34
- "4": "brunch",
35
- "5": "business",
36
- "6": "byob",
37
- "7": "casual",
38
- "8": "date night",
39
- "9": "delivery",
40
- "10": "fine dining",
41
- "11": "gluten free",
42
- "12": "good value",
43
- "13": "great cocktails",
44
- "14": "great service",
45
- "15": "happy hour",
46
- "16": "healthy",
47
- "17": "instagrammable",
48
- "18": "kid friendly",
49
- "19": "large groups",
50
- "20": "late night",
51
- "21": "live music",
52
- "22": "lunch",
53
- "23": "night out",
54
- "24": "outdoor seating",
55
- "25": "quick",
56
- "26": "romantic",
57
- "27": "rooftop",
58
- "28": "small plates",
59
- "29": "special event",
60
- "30": "sports/tvs",
61
- "31": "takeout",
62
- "32": "tasting menu",
63
- "33": "vegetarian",
64
- "34": "walk-in",
65
- "35": "wine list"
66
  },
67
  "init_std": 0.02,
68
  "is_encoder_decoder": true,
69
- "label2id": {
70
- "atmosphere": 0,
71
- "beer list": 1,
72
- "bottomless brunch": 2,
73
- "breakfast": 3,
74
- "brunch": 4,
75
- "business": 5,
76
- "byob": 6,
77
- "casual": 7,
78
- "date night": 8,
79
- "delivery": 9,
80
- "fine dining": 10,
81
- "gluten free": 11,
82
- "good value": 12,
83
- "great cocktails": 13,
84
- "great service": 14,
85
- "happy hour": 15,
86
- "healthy": 16,
87
- "instagrammable": 17,
88
- "kid friendly": 18,
89
- "large groups": 19,
90
- "late night": 20,
91
- "live music": 21,
92
- "lunch": 22,
93
- "night out": 23,
94
- "outdoor seating": 24,
95
- "quick": 25,
96
- "romantic": 26,
97
- "rooftop": 27,
98
- "small plates": 28,
99
- "special event": 29,
100
- "sports/tvs": 30,
101
- "takeout": 31,
102
- "tasting menu": 32,
103
- "vegetarian": 33,
104
- "walk-in": 34,
105
- "wine list": 35
106
  },
107
  "max_position_embeddings": 1024,
108
  "model_type": "bart",
@@ -115,4 +48,4 @@
115
  "transformers_version": "4.26.0",
116
  "use_cache": true,
117
  "vocab_size": 50265
118
- }
 
1
  {
2
+ "_name_or_path": "/content/drive/MyDrive/ML-Files/Relabel_Jan_18_2023/temp/models_fewshot_3/",
3
+ "_num_labels": 3,
4
  "activation_dropout": 0.0,
5
  "activation_function": "gelu",
6
  "add_final_layer_norm": false,
 
7
  "architectures": [
8
  "BartModel"
9
  ],
 
26
  "forced_eos_token_id": 2,
27
  "gradient_checkpointing": false,
28
  "id2label": {
29
+ "0": "contradiction",
30
+ "1": "neutral",
31
+ "2": "entailment"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  },
33
  "init_std": 0.02,
34
  "is_encoder_decoder": true,
35
+ "label2id": {
36
+ "contradiction": 0,
37
+ "entailment": 2,
38
+ "neutral": 1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  },
40
  "max_position_embeddings": 1024,
41
  "model_type": "bart",
 
48
  "transformers_version": "4.26.0",
49
  "use_cache": true,
50
  "vocab_size": 50265
51
+ }
tokenizer_config.json CHANGED
@@ -6,7 +6,7 @@
6
  "errors": "replace",
7
  "mask_token": "<mask>",
8
  "model_max_length": 1024,
9
- "name_or_path": "/root/.cache/torch/sentence_transformers/facebook_bart-large-mnli",
10
  "pad_token": "<pad>",
11
  "sep_token": "</s>",
12
  "special_tokens_map_file": null,
 
6
  "errors": "replace",
7
  "mask_token": "<mask>",
8
  "model_max_length": 1024,
9
+ "name_or_path": "/content/drive/MyDrive/ML-Files/Relabel_Jan_18_2023/temp/models_fewshot_3/",
10
  "pad_token": "<pad>",
11
  "sep_token": "</s>",
12
  "special_tokens_map_file": null,