diegofiggie commited on
Commit
85fb7a3
1 Parent(s): 93eeb5a

Add SetFit model

Browse files
1_Pooling/config.json CHANGED
@@ -5,5 +5,6 @@
5
  "pooling_mode_max_tokens": false,
6
  "pooling_mode_mean_sqrt_len_tokens": false,
7
  "pooling_mode_weightedmean_tokens": false,
8
- "pooling_mode_lasttoken": false
 
9
  }
 
5
  "pooling_mode_max_tokens": false,
6
  "pooling_mode_mean_sqrt_len_tokens": false,
7
  "pooling_mode_weightedmean_tokens": false,
8
+ "pooling_mode_lasttoken": false,
9
+ "include_prompt": true
10
  }
README.md CHANGED
@@ -8,21 +8,22 @@ tags:
8
  metrics:
9
  - accuracy
10
  widget:
11
- - text: 'first: We recommend employees start a support group to share and address
12
- workplace concerns. second: Grievance Resolution Committee: A committee addresses
13
- formal grievances and ensures a fair resolution process.'
14
- - text: 'first: Supervisors are encouraged to watch TED talks on communication to
15
- enhance their skills. second: Progressive Discipline: Disciplinary actions are
16
- proportionate and follow a structured process.'
17
- - text: 'first: Grievance Resolution Committee: A committee addresses formal grievances
18
- and ensures a fair resolution process. second: We provide employees with a comprehensive
19
- handbook outlining our dispute resolution process for clarity.'
20
- - text: 'first: We recommend employees seek advice from their peers and mentors to
21
- navigate workplace issues. second: We use technology-based solutions to facilitate
22
- virtual conflict resolution discussions.'
23
- - text: 'first: We''ve introduced a complaint of the month contest to highlight and
24
- address concerns effectively. second: Our company has a clear conflict resolution
25
- policy that all employees must follow.'
 
26
  pipeline_tag: text-classification
27
  inference: true
28
  base_model: sentence-transformers/all-MiniLM-L6-v2
@@ -38,7 +39,7 @@ model-index:
38
  split: test
39
  metrics:
40
  - type: accuracy
41
- value: 0.7272727272727273
42
  name: Accuracy
43
  ---
44
 
@@ -80,7 +81,7 @@ The model has been trained using an efficient few-shot learning technique that i
80
  ### Metrics
81
  | Label | Accuracy |
82
  |:--------|:---------|
83
- | **all** | 0.7273 |
84
 
85
  ## Uses
86
 
@@ -98,9 +99,9 @@ Then you can load this model and run inference.
98
  from setfit import SetFitModel
99
 
100
  # Download from the 🤗 Hub
101
- model = SetFitModel.from_pretrained("sijan1/setfit-finetuned-fairness")
102
  # Run inference
103
- preds = model("first: We've introduced a complaint of the month contest to highlight and address concerns effectively. second: Our company has a clear conflict resolution policy that all employees must follow.")
104
  ```
105
 
106
  <!--
@@ -160,44 +161,14 @@ preds = model("first: We've introduced a complaint of the month contest to highl
160
  ### Training Results
161
  | Epoch | Step | Training Loss | Validation Loss |
162
  |:------:|:----:|:-------------:|:---------------:|
163
- | 0.1 | 1 | 0.0141 | - |
164
- | 5.0 | 50 | 0.0012 | - |
165
- | 10.0 | 100 | 0.0006 | - |
166
- | 0.1 | 1 | 0.0005 | - |
167
- | 5.0 | 50 | 0.0005 | - |
168
- | 10.0 | 100 | 0.0002 | - |
169
- | 15.0 | 150 | 0.0002 | - |
170
- | 20.0 | 200 | 0.0001 | - |
171
- | 25.0 | 250 | 0.0001 | - |
172
- | 30.0 | 300 | 0.0001 | - |
173
- | 35.0 | 350 | 0.0002 | - |
174
- | 40.0 | 400 | 0.0 | - |
175
- | 45.0 | 450 | 0.0 | - |
176
- | 50.0 | 500 | 0.0 | - |
177
- | 55.0 | 550 | 0.0 | - |
178
- | 60.0 | 600 | 0.0 | - |
179
- | 65.0 | 650 | 0.0001 | - |
180
- | 70.0 | 700 | 0.0 | - |
181
- | 75.0 | 750 | 0.0 | - |
182
- | 80.0 | 800 | 0.0 | - |
183
- | 85.0 | 850 | 0.0 | - |
184
- | 90.0 | 900 | 0.0 | - |
185
- | 95.0 | 950 | 0.0 | - |
186
- | 100.0 | 1000 | 0.0 | - |
187
- | 0.0667 | 1 | 0.0 | - |
188
- | 0.8333 | 50 | 0.0 | - |
189
- | 0.0222 | 1 | 0.0 | - |
190
- | 0.8333 | 50 | 0.0 | - |
191
- | 0.0111 | 1 | 0.0001 | - |
192
- | 0.5556 | 50 | 0.0 | - |
193
- | 0.0333 | 1 | 0.0 | - |
194
 
195
  ### Framework Versions
196
- - Python: 3.10.12
197
  - SetFit: 1.0.3
198
- - Sentence Transformers: 2.3.1
199
- - Transformers: 4.37.2
200
- - PyTorch: 2.1.0+cu121
201
  - Datasets: 2.17.1
202
  - Tokenizers: 0.15.2
203
 
 
8
  metrics:
9
  - accuracy
10
  widget:
11
+ - text: 'first: We recommend self-help books on conflict resolution, available in
12
+ our office library, as supplemental resources. second: Our company conducts regular
13
+ surveys to identify and address recurring disputes.'
14
+ - text: 'first: Conflict Resolution Apps: We offer technology solutions for reporting
15
+ and tracking conflicts. second: Employees can request a mediator to assist in
16
+ resolving issues with their supervisor, ensuring fair dispute resolution.'
17
+ - text: 'first: Our organization encourages employees to participate in leadership
18
+ development programs, enhancing their ability to interact with supervisors. second:
19
+ Conflict Simulation Exercises: Role-playing helps employees practice resolving
20
+ conflicts.'
21
+ - text: 'first: Mediation sessions are scheduled outside of regular working hours
22
+ for convenience. second: Employee Conflict Coaches: Coaches work one-on-one with
23
+ employees to resolve disputes.'
24
+ - text: 'first: We provide conflict resolution pamphlets in the breakroom, offering
25
+ helpful tips. second: We provide resources for employees to seek external mediation
26
+ or counseling services if disputes with supervisors persist.'
27
  pipeline_tag: text-classification
28
  inference: true
29
  base_model: sentence-transformers/all-MiniLM-L6-v2
 
39
  split: test
40
  metrics:
41
  - type: accuracy
42
+ value: 0.4090909090909091
43
  name: Accuracy
44
  ---
45
 
 
81
  ### Metrics
82
  | Label | Accuracy |
83
  |:--------|:---------|
84
+ | **all** | 0.4091 |
85
 
86
  ## Uses
87
 
 
99
  from setfit import SetFitModel
100
 
101
  # Download from the 🤗 Hub
102
+ model = SetFitModel.from_pretrained("diegofiggie/fairness_model")
103
  # Run inference
104
+ preds = model("first: Mediation sessions are scheduled outside of regular working hours for convenience. second: Employee Conflict Coaches: Coaches work one-on-one with employees to resolve disputes.")
105
  ```
106
 
107
  <!--
 
161
  ### Training Results
162
  | Epoch | Step | Training Loss | Validation Loss |
163
  |:------:|:----:|:-------------:|:---------------:|
164
+ | 0.0333 | 1 | 0.2322 | - |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
 
166
  ### Framework Versions
167
+ - Python: 3.10.9
168
  - SetFit: 1.0.3
169
+ - Sentence Transformers: 2.4.0
170
+ - Transformers: 4.38.1
171
+ - PyTorch: 2.2.1+cpu
172
  - Datasets: 2.17.1
173
  - Tokenizers: 0.15.2
174
 
config.json CHANGED
@@ -19,7 +19,7 @@
19
  "pad_token_id": 0,
20
  "position_embedding_type": "absolute",
21
  "torch_dtype": "float32",
22
- "transformers_version": "4.37.2",
23
  "type_vocab_size": 2,
24
  "use_cache": true,
25
  "vocab_size": 30522
 
19
  "pad_token_id": 0,
20
  "position_embedding_type": "absolute",
21
  "torch_dtype": "float32",
22
+ "transformers_version": "4.38.1",
23
  "type_vocab_size": 2,
24
  "use_cache": true,
25
  "vocab_size": 30522
config_sentence_transformers.json CHANGED
@@ -3,5 +3,7 @@
3
  "sentence_transformers": "2.0.0",
4
  "transformers": "4.6.1",
5
  "pytorch": "1.8.1"
6
- }
 
 
7
  }
 
3
  "sentence_transformers": "2.0.0",
4
  "transformers": "4.6.1",
5
  "pytorch": "1.8.1"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null
9
  }
config_setfit.json CHANGED
@@ -1,4 +1,4 @@
1
  {
2
- "labels": null,
3
- "normalize_embeddings": false
4
  }
 
1
  {
2
+ "normalize_embeddings": false,
3
+ "labels": null
4
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c2ab9e5d8a1781daa63f933ba0a20df6f98fe6a6f6d7802970f3fcc24bfbb8d4
3
  size 90864192
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:271165e1148d41d5f71a15902a0759c4515a26e700c5068405f4db54cdcdfde6
3
  size 90864192
model_head.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:da534e8c56dac72f1467ca8580929be60367c31d3de44d75ca75ddfc8c941f9c
3
- size 3935
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ca976370557f01d234bcfba600462a5c37a6308e8eed07b33f09fe60ca0a181
3
+ size 3813