diegofiggie commited on
Commit
32c4a33
1 Parent(s): f3945c4

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,19 +8,64 @@ tags:
8
  metrics:
9
  - accuracy
10
  widget:
11
- - text: Hello Jonathan, Thank you for your work on the Beta project. I would like
12
- for us to set up a meeting to discuss your work on the project. You have completed
13
- a few reports now and I have had some feedback I would like to share with you;
14
- specifically the commentary you are providing and your business writing. The
15
- additional commentary you are providing makes it difficult to find the objective
16
- facts of your findings while working with a tight deadline. I would like to have
17
- a discussion with you what ideas you may have to help make your reports more concise
18
- so the team can meet their deadlines. You are investing considerable time and
19
- effort in these reports and you have expressed your desire to be in an engineering
20
- role in the future. Your work on these reports can certainly help you in achieving
21
- your career goals. I want to make sure you are successful. I'll send out a meeting
22
- invite shortly. Thank you again Jonathan for all your work on this project. I'm
23
- looking forward to discussing this with you.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  - text: Good Afternoon Jonathan, I hope you are well and the travelling is not too
25
  exhausting. I wanted to touch base with you to see how you are enjoying working
26
  with the Beta project team? I have been advised that you are a great contributor
@@ -37,58 +82,21 @@ widget:
37
  your reports before submitting to ensure they are clear and consise with only
38
  the technical information needed,Let me know your thoughts. Many thanks again
39
  and well done for all your hard work. Kind regards William
40
- - text: 'Hi Jonathan, I am glad to hear that you are enjoying your job, traveling
41
- and learning more about the Beta ray technology. I wanted to share some feedback
42
- with you that I received. I want to help you be able to advance in your career
43
- and I feel that this feedback will be helpful. I am excited that you are will
44
- to share your perspectives on the findings, however if you could focus on the
45
- data portion first, and highlight the main points, that would be really beneficial
46
- to your audience. By being more concise it will allow the potential customers
47
- and then CEO to focus on the facts of the report, which will allow them to make
48
- a decision for themselves. I understand that this is probably a newer to writing
49
- the reports, and I don''t think that anyone has shown you an example of how the
50
- reports are usually written, so I have sent you some examples for you to review.
51
- I think that you are doing a good job learning and with this little tweak in the
52
- report writing you will be able to advance in your career. In order to help you,
53
- if you don''t mind, I would like to review the report before you submit it and
54
- then we can work together to ensure it will be a great report. I understand that
55
- you really enjoy providing your perspectives on the technology and recommendations
56
- on how it can be used, so we will find a spot for that in the report as well,
57
- but perhaps in a different section. Thank you so much for your time today and
58
- I look forward to working with you. '
59
- - text: Hi Jonathan, Good to hear you are enjoying the work. I would like to discuss
60
- with you feedback on your assignment and the reports you are producing. It is
61
- very important to understand the stakeholders who will be reading your report.
62
- You may have gathered a lot of good information BUT do not put them all on your
63
- reports. The report should state facts and not your opinions. Create reports for
64
- the purpose and for the audience. I would also suggest that you reach out to Terry
65
- to understand what information is needed on the reports you produce.Having said
66
- that, the additional insights you gathered are very important too. Please add
67
- them to our knowledge repository and share with the team. It will be a great sharing
68
- and learning experience. You are very valuable in your knowledge and I think that
69
- it would benefit you and the organization tremendously when you are to channelize
70
- your insights and present the facts well. I would encourage you to enroll for
71
- the business writing training course. Please choose a date from the learning calendar
72
- and let me know. Regards, William
73
- - text: Hi Jonathan, I understand you have been quite involved with the Beta Project.
74
- Your experience is paying off as you are often finding improvements the product
75
- team did not even know they needed. I wanted to share some feedback I got from
76
- one of your colleagues regarding your reports. Your enthusiasm for this project
77
- is infectious and I love to see this level of engagement. However, we also want
78
- to be mindful of the end users of the reports you are preparing. In these projects,
79
- deadlines often move at a fast pace. In order to ensure the project can stay on
80
- time, it is important to focus on inputting mainly facts when writing these reports.
81
- You offer a unique perspective and your insights are greatly appreciated. I would
82
- love to discuss your ideas with you in separate meetings outside of this project.
83
- I understand you are having to compile and organize a large amount of information.
84
- I appreciate how overwhelming this can feel at times. When these reports are completed,
85
- they are reviewed by our CEO and other key stakeholders. To ensure we are respecting
86
- their time, we want these reports to by concise and well organized. I would like
87
- you to set up some time with Terry to go over his approach to these reports and
88
- his writing style. Once I am back from assignment I will set up time to review
89
- how this meeting went and discuss other ideas you may have. I greatly appreciate
90
- your efforts on this project and positive attitude. With the above mentioned areas
91
- of opportunity, I know this project will continue to run smoothly. Thanks.
92
  pipeline_tag: text-classification
93
  inference: true
94
  base_model: sentence-transformers/all-MiniLM-L6-v2
@@ -104,7 +112,7 @@ model-index:
104
  split: test
105
  metrics:
106
  - type: accuracy
107
- value: 0.7692307692307693
108
  name: Accuracy
109
  ---
110
 
@@ -146,7 +154,7 @@ The model has been trained using an efficient few-shot learning technique that i
146
  ### Metrics
147
  | Label | Accuracy |
148
  |:--------|:---------|
149
- | **all** | 0.7692 |
150
 
151
  ## Uses
152
 
@@ -164,9 +172,9 @@ Then you can load this model and run inference.
164
  from setfit import SetFitModel
165
 
166
  # Download from the 🤗 Hub
167
- model = SetFitModel.from_pretrained("sijan1/empathy_model")
168
  # Run inference
169
- preds = model("Hello Jonathan, Thank you for your work on the Beta project. I would like for us to set up a meeting to discuss your work on the project. You have completed a few reports now and I have had some feedback I would like to share with you; specifically the commentary you are providing and your business writing. The additional commentary you are providing makes it difficult to find the objective facts of your findings while working with a tight deadline. I would like to have a discussion with you what ideas you may have to help make your reports more concise so the team can meet their deadlines. You are investing considerable time and effort in these reports and you have expressed your desire to be in an engineering role in the future. Your work on these reports can certainly help you in achieving your career goals. I want to make sure you are successful. I'll send out a meeting invite shortly. Thank you again Jonathan for all your work on this project. I'm looking forward to discussing this with you.")
170
  ```
171
 
172
  <!--
@@ -210,7 +218,7 @@ preds = model("Hello Jonathan, Thank you for your work on the Beta project. I w
210
  - num_epochs: (1, 1)
211
  - max_steps: -1
212
  - sampling_strategy: oversampling
213
- - num_iterations: 40
214
  - body_learning_rate: (2e-05, 2e-05)
215
  - head_learning_rate: 2e-05
216
  - loss: CosineSimilarityLoss
@@ -224,19 +232,17 @@ preds = model("Hello Jonathan, Thank you for your work on the Beta project. I w
224
  - load_best_model_at_end: False
225
 
226
  ### Training Results
227
- | Epoch | Step | Training Loss | Validation Loss |
228
- |:------:|:----:|:-------------:|:---------------:|
229
- | 0.025 | 1 | 0.0001 | - |
230
- | 2.5 | 50 | 0.0001 | - |
231
- | 0.0667 | 1 | 0.0 | - |
232
 
233
  ### Framework Versions
234
- - Python: 3.10.12
235
  - SetFit: 1.0.3
236
- - Sentence Transformers: 2.3.1
237
- - Transformers: 4.35.2
238
- - PyTorch: 2.1.0+cu121
239
- - Datasets: 2.17.0
240
  - Tokenizers: 0.15.2
241
 
242
  ## Citation
 
8
  metrics:
9
  - accuracy
10
  widget:
11
+ - text: Dear Jonathan, I am writing to find out how things are going on the Beta project.
12
+ I understand that you are enjoying the role and finding new applications.I have
13
+ had some feedback from Terry confirming that you are doing well but there are
14
+ some improvement points that I would like to discuss with you. It has been noted
15
+ that your contributions are providing real value and they enjoy working with you,
16
+ however, some of this value is spoiled by a conversational tone and being a bit
17
+ verbose. In business correspondence it is essential that the facts are clear,
18
+ concise and distinguishable from opinion, otherwise the message may be lost (regardless
19
+ of how good it is).There are a number of significant reports required in the coming
20
+ weeks. Please could you ensure that you confirm with Terry the exact detail and
21
+ format required for specific reports and communication. He should be able to provide
22
+ templates and guidance to ensure that his requirements are met. I would also recommend
23
+ that you undertake a report-writing course, which should help you to ensure that
24
+ you convey your great ideas in the best possible way.I am keen to support you
25
+ to ensure the success of the project and your professional development. When I
26
+ return in 2 weeks I would like to have a conference call with you and Terry to
27
+ better understand how we can help you going forward. Please could you respond
28
+ to confirm that you have received this email. Regards, William
29
+ - text: 'Hi Jonathan, Thank you for your message. I am glad about your excitment on
30
+ this assignment that is important to us, and I hear your will to develop into
31
+ an engenier team leader role which I think is a topic that can be discuss.In order
32
+ to take you to that role, it is important to work on of your development area
33
+ that concern the way you report your analysis.You have a great talent to collect
34
+ data and get new creative ideas, and it is crucial to make you able to be more
35
+ experienced in business writing to make sure that you adress your conclusions
36
+ in a sharp and concise way, avoiding too much commentary.I propose you to write
37
+ down your current reports keeping those 2 objectives in mind: avoid too much commentary
38
+ and focus on the main data that support your conclusions.I suggest you get inspired
39
+ from other reports done internally, that will help you understand better the formalism
40
+ the report should have.Then, let is discuss together the outcome of your report,
41
+ and I would specially would like to know more about the many application you identify
42
+ for Beta Technology that may bring new business opportunity. Just a tip, quantify
43
+ your comments, always.See you soon, and we will have the opportunity to take the
44
+ time to discuss your development plan based on your capacity to be more straight
45
+ to the point in your reports.I am sure you will make a difference. Good luck,
46
+ William'
47
+ - text: Hey Jonathan! I've been in touch with Terry, I'm so glad to hear how much
48
+ you are enjoying the Beta Project, I even hear you are hoping that this experience
49
+ will further your ambitions toward a Lead Engineer position! However, I understand
50
+ there has been some issues with your reports that Terry has brought up with you,
51
+ and I wanted to take a few minutes to discuss them.1) Opinion vs. FactsYour reports
52
+ contain a lot of insights about what the data means, and at times finding the
53
+ specific hard facts can be difficult.2) Level of DetailYou include every bit of
54
+ data that you can into your reports, which can make it difficult to take away
55
+ the larger picture.I want to encourage you to take these things away for the following
56
+ reasons:1) your reports are reviewed by everyone in upper management, including
57
+ the CEO! The opinions you have are great, but when evaluating documents the CEO
58
+ just needs to highest level, most important items. The nitty-gritty would fall
59
+ to another department2) as you have a desire to move up and be a Lead Engineer,
60
+ these kinds of reports will be more and more common. Keeping your thoughts organized
61
+ and well documented is going to become a very important skill to have.For your
62
+ next report I would like you to prepare a cover sheet that goes with the report.
63
+ This cover sheet should be a single page highlighting only the key facts of the
64
+ report. Your own opinions and analysis can be included, but let those who are
65
+ interested read it on their own time, the high level facts are key for the meeting
66
+ they will be presented in. I would also encourage you to make sure the rest of
67
+ the report has clearly defined headings and topics, so it is easy to find information
68
+ related to each item. I
69
  - text: Good Afternoon Jonathan, I hope you are well and the travelling is not too
70
  exhausting. I wanted to touch base with you to see how you are enjoying working
71
  with the Beta project team? I have been advised that you are a great contributor
 
82
  your reports before submitting to ensure they are clear and consise with only
83
  the technical information needed,Let me know your thoughts. Many thanks again
84
  and well done for all your hard work. Kind regards William
85
+ - text: 'Jonathan, First I want to thank you for your help with the Beta project. However, it
86
+ has been brought to my attention that perhaps ABC-5 didn''t do enough to prepare
87
+ you for the extra work and I would like to discuss some issues. The nature of
88
+ these reports requires them to be technical in nature. Your insights are very
89
+ valuable and much appreciated but as the old line goes "please give me just the
90
+ facts". Given the critical nature of the information you are providing I can''t
91
+ stress the importance of concise yet detail factual reports. I would like to
92
+ review your reports as a training exercise to help you better meet the team requirements. Given
93
+ that there are some major reports coming up in the immediate future, I would like
94
+ you to review some training options and then present a report for review. Again
95
+ your insights are appreciated but we need to make sure we are presenting the end-use
96
+ with only the information they need to make a sound business decision. I also
97
+ understand you would like to grow into a leadership position so I would like to
98
+ discuss how successfully implementing these changes would be beneficial in demonstrating
99
+ an ability to grow and take on new challenges. '
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  pipeline_tag: text-classification
101
  inference: true
102
  base_model: sentence-transformers/all-MiniLM-L6-v2
 
112
  split: test
113
  metrics:
114
  - type: accuracy
115
+ value: 0.6153846153846154
116
  name: Accuracy
117
  ---
118
 
 
154
  ### Metrics
155
  | Label | Accuracy |
156
  |:--------|:---------|
157
+ | **all** | 0.6154 |
158
 
159
  ## Uses
160
 
 
172
  from setfit import SetFitModel
173
 
174
  # Download from the 🤗 Hub
175
+ model = SetFitModel.from_pretrained("diegofiggie/empathy_model")
176
  # Run inference
177
+ preds = model("Jonathan, First I want to thank you for your help with the Beta project. However, it has been brought to my attention that perhaps ABC-5 didn't do enough to prepare you for the extra work and I would like to discuss some issues. The nature of these reports requires them to be technical in nature. Your insights are very valuable and much appreciated but as the old line goes \"please give me just the facts\". Given the critical nature of the information you are providing I can't stress the importance of concise yet detail factual reports. I would like to review your reports as a training exercise to help you better meet the team requirements. Given that there are some major reports coming up in the immediate future, I would like you to review some training options and then present a report for review. Again your insights are appreciated but we need to make sure we are presenting the end-use with only the information they need to make a sound business decision. I also understand you would like to grow into a leadership position so I would like to discuss how successfully implementing these changes would be beneficial in demonstrating an ability to grow and take on new challenges. ")
178
  ```
179
 
180
  <!--
 
218
  - num_epochs: (1, 1)
219
  - max_steps: -1
220
  - sampling_strategy: oversampling
221
+ - num_iterations: 20
222
  - body_learning_rate: (2e-05, 2e-05)
223
  - head_learning_rate: 2e-05
224
  - loss: CosineSimilarityLoss
 
232
  - load_best_model_at_end: False
233
 
234
  ### Training Results
235
+ | Epoch | Step | Training Loss | Validation Loss |
236
+ |:-----:|:----:|:-------------:|:---------------:|
237
+ | 0.1 | 1 | 0.1814 | - |
 
 
238
 
239
  ### Framework Versions
240
+ - Python: 3.10.9
241
  - SetFit: 1.0.3
242
+ - Sentence Transformers: 2.4.0
243
+ - Transformers: 4.38.1
244
+ - PyTorch: 2.2.1+cpu
245
+ - Datasets: 2.17.1
246
  - Tokenizers: 0.15.2
247
 
248
  ## Citation
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.35.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
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:10c52449c6d8588cde86537019ddba56c3bff699572e63965cbc08cb41424977
3
  size 90864192
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40ea396ded07693a46677f5a7842b4da49a16f5dc48f4d992aac11877affad9b
3
  size 90864192
model_head.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:be3b704a64e250dd303e0cd01a10a8bdf22e73be36880eef318adee146fa34af
3
- size 3935
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3179b7cf4f42b0be7cd3fab59bbc7a5ea292ee4ba5aaf986f4036344c3b1ab55
3
+ size 3813
special_tokens_map.json CHANGED
@@ -1,7 +1,37 @@
1
  {
2
- "cls_token": "[CLS]",
3
- "mask_token": "[MASK]",
4
- "pad_token": "[PAD]",
5
- "sep_token": "[SEP]",
6
- "unk_token": "[UNK]"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  }
 
1
  {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
  }