Ngit commited on
Commit
894d418
1 Parent(s): 111db42

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +75 -92
README.md CHANGED
@@ -1,92 +1,75 @@
1
- ---
2
- base_model: nreimers/MiniLMv2-L6-H384-distilled-from-RoBERTa-Large
3
- tags:
4
- - generated_from_trainer
5
- metrics:
6
- - accuracy
7
- - f1
8
- model-index:
9
- - name: MiniLMv2-L6-H384-distilled-from-RoBERTa-Large-userflow-distil
10
- results: []
11
- ---
12
-
13
- <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
- should probably proofread and complete it, then remove this comment. -->
15
-
16
- # MiniLMv2-L6-H384-distilled-from-RoBERTa-Large-userflow-distil
17
-
18
- This model is a fine-tuned version of [nreimers/MiniLMv2-L6-H384-distilled-from-RoBERTa-Large](https://huggingface.co/nreimers/MiniLMv2-L6-H384-distilled-from-RoBERTa-Large) on the None dataset.
19
- It achieves the following results on the evaluation set:
20
- - Loss: 0.6738
21
- - Accuracy: 0.7236
22
- - F1: 0.7313
23
-
24
- ## Model description
25
-
26
- More information needed
27
-
28
- ## Intended uses & limitations
29
-
30
- More information needed
31
-
32
- ## Training and evaluation data
33
-
34
- More information needed
35
-
36
- ## Training procedure
37
-
38
- ### Training hyperparameters
39
-
40
- The following hyperparameters were used during training:
41
- - learning_rate: 7e-05
42
- - train_batch_size: 10
43
- - eval_batch_size: 10
44
- - seed: 42
45
- - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
46
- - lr_scheduler_type: linear
47
- - lr_scheduler_warmup_ratio: 0.1
48
- - num_epochs: 8
49
-
50
- ### Training results
51
-
52
- | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
53
- |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
54
- | No log | 0.25 | 100 | 2.3745 | 0.3923 | 0.2210 |
55
- | No log | 0.51 | 200 | 2.1198 | 0.4126 | 0.2567 |
56
- | No log | 0.76 | 300 | 1.8704 | 0.4756 | 0.3979 |
57
- | No log | 1.01 | 400 | 1.5780 | 0.5305 | 0.4551 |
58
- | 2.1769 | 1.26 | 500 | 1.3717 | 0.5650 | 0.5037 |
59
- | 2.1769 | 1.52 | 600 | 1.2590 | 0.5935 | 0.5543 |
60
- | 2.1769 | 1.77 | 700 | 1.0973 | 0.6280 | 0.5804 |
61
- | 2.1769 | 2.02 | 800 | 0.9814 | 0.6423 | 0.5978 |
62
- | 2.1769 | 2.27 | 900 | 0.9589 | 0.6463 | 0.6152 |
63
- | 0.9806 | 2.53 | 1000 | 0.9098 | 0.6565 | 0.6483 |
64
- | 0.9806 | 2.78 | 1100 | 0.8747 | 0.6321 | 0.6194 |
65
- | 0.9806 | 3.03 | 1200 | 0.8172 | 0.6931 | 0.6902 |
66
- | 0.9806 | 3.28 | 1300 | 0.7862 | 0.7033 | 0.7017 |
67
- | 0.9806 | 3.54 | 1400 | 0.7975 | 0.6890 | 0.6952 |
68
- | 0.4166 | 3.79 | 1500 | 0.7674 | 0.6951 | 0.6913 |
69
- | 0.4166 | 4.04 | 1600 | 0.7521 | 0.6911 | 0.6997 |
70
- | 0.4166 | 4.29 | 1700 | 0.7944 | 0.6951 | 0.7055 |
71
- | 0.4166 | 4.55 | 1800 | 0.7366 | 0.7093 | 0.7127 |
72
- | 0.4166 | 4.8 | 1900 | 0.7412 | 0.6911 | 0.6944 |
73
- | 0.2158 | 5.05 | 2000 | 0.7246 | 0.7012 | 0.7083 |
74
- | 0.2158 | 5.3 | 2100 | 0.7097 | 0.7195 | 0.7253 |
75
- | 0.2158 | 5.56 | 2200 | 0.6914 | 0.7134 | 0.7197 |
76
- | 0.2158 | 5.81 | 2300 | 0.6875 | 0.7175 | 0.7266 |
77
- | 0.2158 | 6.06 | 2400 | 0.6544 | 0.7236 | 0.7296 |
78
- | 0.1423 | 6.31 | 2500 | 0.6738 | 0.7236 | 0.7313 |
79
- | 0.1423 | 6.57 | 2600 | 0.6640 | 0.7175 | 0.7253 |
80
- | 0.1423 | 6.82 | 2700 | 0.6617 | 0.7154 | 0.7233 |
81
- | 0.1423 | 7.07 | 2800 | 0.6582 | 0.7154 | 0.7205 |
82
- | 0.1423 | 7.32 | 2900 | 0.6678 | 0.7033 | 0.7093 |
83
- | 0.1204 | 7.58 | 3000 | 0.6596 | 0.7154 | 0.7197 |
84
- | 0.1204 | 7.83 | 3100 | 0.6598 | 0.7154 | 0.7217 |
85
-
86
-
87
- ### Framework versions
88
-
89
- - Transformers 4.37.0
90
- - Pytorch 2.1.2
91
- - Datasets 2.1.0
92
- - Tokenizers 0.15.1
 
1
+ # User Flow Text Classification
2
+
3
+ This model is a fined-tuned version of [nreimers/MiniLMv2-L6-H384-distilled-from-RoBERTa-Large](https://huggingface.co/nreimers/MiniLMv2-L6-H384-distilled-from-RoBERTa-Large).
4
+ The quantized version in ONNX format can be found [here](https://huggingface.co/minuva/MiniLMv2-userflow-v2-onnx)
5
+
6
+ A flow label is orthogonal to the main conversation goal, implying that it categorizes actions or responses in a way that is independent from the primary objective of the conversation.
7
+
8
+ # Load the Model
9
+
10
+ ```py
11
+ from transformers import pipeline
12
+
13
+ pipe = pipeline(model='minuva/MiniLMv2-userflow-v2', task='text-classification')
14
+ pipe("This is wrong")
15
+ # [{'label': 'model_wrong_or_try_again', 'score': 0.9729849100112915}]
16
+ ```
17
+ # Categories Explanation
18
+
19
+ <details>
20
+ <summary>Click to expand!</summary>
21
+
22
+ - OTHER: Responses that do not fit into any predefined categories or are outside the scope of the specific interaction types listed.
23
+
24
+ - agrees_praising_thanking: When the user agrees with the provided information, offers praise, or expresses gratitude.
25
+
26
+ - asks_source: The user requests the source of the information or the basis for the answer provided.
27
+
28
+ - continue: Indicates a prompt for the conversation to proceed or continue without a specific directional change.
29
+
30
+ - continue_or_finnish_code: Signals either to continue with the current line of discussion or code execution, or to conclude it.
31
+
32
+ - improve_or_modify_answer: The user requests an improvement or modification to the provided answer.
33
+
34
+ - lack_of_understandment: Reflects the user's or agent confusion or lack of understanding regarding the information provided.
35
+
36
+ - model_wrong_or_try_again: Indicates that the model's response was incorrect or unsatisfactory, suggesting a need to attempt another answer.
37
+
38
+ - more_listing_or_expand: The user requests further elaboration, expansion from the given list by the agent.
39
+
40
+ - repeat_answers_or_question: The need to reiterate a previous answer or question.
41
+
42
+ - request_example: The user asks for examples to better understand the concept or answer provided.
43
+
44
+ - user_complains_repetition: The user notes that the information or responses are repetitive, indicating a need for new or different content.
45
+
46
+ - user_doubts_answer: The user expresses skepticism or doubt regarding the accuracy or validity of the provided answer.
47
+
48
+ - user_goodbye: The user says goodbye to the agent.
49
+
50
+ - user_reminds_question: The user reiterates the question.
51
+
52
+ - user_wants_agent_to_answer: The user explicitly requests a response from the agent, when the agent refuses to do so.
53
+
54
+ - user_wants_explanation: The user seeks an explanation behind the information or answer provided.
55
+
56
+ - user_wants_more_detail: Indicates the user's desire for more comprehensive or detailed information on the topic.
57
+
58
+ - user_wants_shorter_longer_answer: The user requests that the answer be condensed or expanded to better meet their informational needs.
59
+
60
+ - user_wants_simplier_explanation: The user seeks a simpler, more easily understood explanation.
61
+
62
+ - user_wants_yes_or_no: The user is asking for a straightforward affirmative or negative answer, without additional detail or explanation.
63
+ </details>
64
+
65
+ <br>
66
+
67
+
68
+ # Metrics in our private test dataset
69
+ | Model (params) | Loss | Accuracy | F1 |
70
+ |--------------------|-------------|----------|--------|
71
+ | minuva/MiniLMv2-userflow-v2 (33M) | 0.6738 | 0.7236 | 0.7313 |
72
+
73
+ # Deployment
74
+
75
+ Check [our repository](https://github.com/minuva/flow-cloudrun) to see how to easily deploy this (quantized) model in a serverless environment with fast CPU inference and light resource utilization.