raghavdw commited on
Commit
8e9ed3e
·
verified ·
1 Parent(s): 838505f

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - regression
4
+ - customer-service
5
+ - empathy-detection
6
+ library_name: transformers
7
+ language: en
8
+ license: apache-2.0
9
+ ---
10
+
11
+ # Customer Service Empathy Model
12
+
13
+ ## Model Description
14
+ Empathy scoring model for customer service interactions. Predicts:
15
+ - Empathy Score (0-5)
16
+ - Active Listening Score (0-5)
17
+
18
+ This is part of a dual-model approach:
19
+ 1. Intent model (available at raghavdw/cci-capstone-asapp)
20
+ 2. This model (Empathy/Listening Scores)
21
+
22
+ ## Latest Training Info
23
+ ```json
24
+ {
25
+ "training_args": {
26
+ "output_dir": "models/test_run_20250110_162536/empathy_model",
27
+ "overwrite_output_dir": false,
28
+ "do_train": false,
29
+ "do_eval": true,
30
+ "do_predict": false,
31
+ "eval_strategy": "epoch",
32
+ "prediction_loss_only": false,
33
+ "per_device_train_batch_size": 32,
34
+ "per_device_eval_batch_size": 64,
35
+ "per_gpu_train_batch_size": null,
36
+ "per_gpu_eval_batch_size": null,
37
+ "gradient_accumulation_steps": 1,
38
+ "eval_accumulation_steps": null,
39
+ "eval_delay": 0,
40
+ "torch_empty_cache_steps": null,
41
+ "learning_rate": 1e-05,
42
+ "weight_decay": 0.01,
43
+ "adam_beta1": 0.9,
44
+ "adam_beta2": 0.999,
45
+ "adam_epsilon": 1e-08,
46
+ "max_grad_norm": 1.0,
47
+ "num_train_epochs": 4,
48
+ "max_steps": -1,
49
+ "lr_scheduler_type": "linear",
50
+ "lr_scheduler_kwargs": {},
51
+ "warmup_ratio": 0.1,
52
+ "warmup_steps": 0,
53
+ "log_level": "passive",
54
+ "log_level_replica": "warning",
55
+ "log_on_each_node": true,
56
+ "logging_dir": "models/test_run_20250110_162536/logs",
57
+ "logging_strategy": "steps",
58
+ "logging_first_step": true,
59
+ "logging_steps": 10,
60
+ "logging_nan_inf_filter": true,
61
+ "save_strategy": "epoch",
62
+ "save_steps": 500,
63
+ "save_total_limit": 2,
64
+ "save_safetensors": true,
65
+ "save_on_each_node": false,
66
+ "save_only_model": false,
67
+ "restore_callback_states_from_checkpoint": false,
68
+ "no_cuda": false,
69
+ "use_cpu": false,
70
+ "use_mps_device": false,
71
+ "seed": 42,
72
+ "data_seed": null,
73
+ "jit_mode_eval": false,
74
+ "use_ipex": false,
75
+ "bf16": false,
76
+ "fp16": false,
77
+ "fp16_opt_level": "O1",
78
+ "half_precision_backend": "auto",
79
+ "bf16_full_eval": false,
80
+ "fp16_full_eval": false,
81
+ "tf32": null,
82
+ "local_rank": 0,
83
+ "ddp_backend": null,
84
+ "tpu_num_cores": null,
85
+ "tpu_metrics_debug": false,
86
+ "debug": [],
87
+ "dataloader_drop_last": false,
88
+ "eval_steps": null,
89
+ "dataloader_num_workers": 0,
90
+ "dataloader_prefetch_factor": null,
91
+ "past_index": -1,
92
+ "run_name": "models/test_run_20250110_162536/empathy_model",
93
+ "disable_tqdm": false,
94
+ "remove_unused_columns": false,
95
+ "label_names": null,
96
+ "load_best_model_at_end": true,
97
+ "metric_for_best_model": "eval_loss",
98
+ "greater_is_better": false,
99
+ "ignore_data_skip": false,
100
+ "fsdp": [],
101
+ "fsdp_min_num_params": 0,
102
+ "fsdp_config": {
103
+ "min_num_params": 0,
104
+ "xla": false,
105
+ "xla_fsdp_v2": false,
106
+ "xla_fsdp_grad_ckpt": false
107
+ },
108
+ "fsdp_transformer_layer_cls_to_wrap": null,
109
+ "accelerator_config": {
110
+ "split_batches": false,
111
+ "dispatch_batches": null,
112
+ "even_batches": true,
113
+ "use_seedable_sampler": true,
114
+ "non_blocking": false,
115
+ "gradient_accumulation_kwargs": null
116
+ },
117
+ "deepspeed": null,
118
+ "label_smoothing_factor": 0.0,
119
+ "optim": "adamw_torch",
120
+ "optim_args": null,
121
+ "adafactor": false,
122
+ "group_by_length": false,
123
+ "length_column_name": "length",
124
+ "report_to": [],
125
+ "ddp_find_unused_parameters": null,
126
+ "ddp_bucket_cap_mb": null,
127
+ "ddp_broadcast_buffers": null,
128
+ "dataloader_pin_memory": true,
129
+ "dataloader_persistent_workers": false,
130
+ "skip_memory_metrics": true,
131
+ "use_legacy_prediction_loop": false,
132
+ "push_to_hub": false,
133
+ "resume_from_checkpoint": null,
134
+ "hub_model_id": null,
135
+ "hub_strategy": "every_save",
136
+ "hub_token": "<HUB_TOKEN>",
137
+ "hub_private_repo": false,
138
+ "hub_always_push": false,
139
+ "gradient_checkpointing": false,
140
+ "gradient_checkpointing_kwargs": null,
141
+ "include_inputs_for_metrics": false,
142
+ "include_for_metrics": [],
143
+ "eval_do_concat_batches": true,
144
+ "fp16_backend": "auto",
145
+ "evaluation_strategy": "epoch",
146
+ "push_to_hub_model_id": null,
147
+ "push_to_hub_organization": null,
148
+ "push_to_hub_token": "<PUSH_TO_HUB_TOKEN>",
149
+ "mp_parameters": "",
150
+ "auto_find_batch_size": false,
151
+ "full_determinism": false,
152
+ "torchdynamo": null,
153
+ "ray_scope": "last",
154
+ "ddp_timeout": 1800,
155
+ "torch_compile": false,
156
+ "torch_compile_backend": null,
157
+ "torch_compile_mode": null,
158
+ "dispatch_batches": null,
159
+ "split_batches": null,
160
+ "include_tokens_per_second": false,
161
+ "include_num_input_tokens_seen": false,
162
+ "neftune_noise_alpha": null,
163
+ "optim_target_modules": null,
164
+ "batch_eval_metrics": false,
165
+ "eval_on_start": false,
166
+ "use_liger_kernel": false,
167
+ "eval_use_gather_object": false,
168
+ "average_tokens_across_devices": false
169
+ },
170
+ "final_loss": 0.006501355601283602
171
+ }
172
+ ```
173
+
174
+ ## Usage Example
175
+ ```python
176
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
177
+
178
+ # Load empathy model
179
+ model = AutoModelForSequenceClassification.from_pretrained("raghavdw/cci-capstone-asapp-empathy")
180
+ tokenizer = AutoTokenizer.from_pretrained("raghavdw/cci-capstone-asapp-empathy")
181
+
182
+ # Process text
183
+ text = "I understand this must be frustrating for you"
184
+ inputs = tokenizer(text, return_tensors="pt")
185
+ outputs = model(**inputs) # Returns [empathy_score, listening_score]
186
+ ```
187
+
188
+ Last Updated: 2025-01-10 19:11:35
config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/electra-base-discriminator",
3
+ "architectures": [
4
+ "ElectraForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "embedding_size": 768,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "electra",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "problem_type": "regression",
22
+ "summary_activation": "gelu",
23
+ "summary_last_dropout": 0.1,
24
+ "summary_type": "first",
25
+ "summary_use_proj": true,
26
+ "torch_dtype": "float32",
27
+ "transformers_version": "4.46.3",
28
+ "type_vocab_size": 2,
29
+ "use_cache": true,
30
+ "vocab_size": 30522
31
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:609481bd16a5cc6684974f5b897b65caa0dcd9b679cc6e8cba1ef0110a4e9f24
3
+ size 437959248
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": false,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": true,
47
+ "mask_token": "[MASK]",
48
+ "model_max_length": 512,
49
+ "pad_token": "[PAD]",
50
+ "sep_token": "[SEP]",
51
+ "strip_accents": null,
52
+ "tokenize_chinese_chars": true,
53
+ "tokenizer_class": "ElectraTokenizer",
54
+ "unk_token": "[UNK]"
55
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a0298820475d49d198ba9977c3b200642222061f770979a5c9a628fe45d2efd
3
+ size 5304
vocab.txt ADDED
The diff for this file is too large to render. See raw diff