DistilBERT multi-label HR classifier
Browse files- README.md +63 -15
- config.json +72 -0
- model.safetensors +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +15 -0
- training_args.bin +3 -0
README.md
CHANGED
|
@@ -1,26 +1,74 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
| 2 |
tags:
|
| 3 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
| 5 |
|
| 6 |
-
|
|
|
|
| 7 |
|
| 8 |
-
|
| 9 |
-
## Generated by ML Intern
|
| 10 |
|
| 11 |
-
This model
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
-
|
| 14 |
-
- Source code: https://github.com/huggingface/ml-intern
|
| 15 |
|
| 16 |
-
|
| 17 |
|
| 18 |
-
|
| 19 |
-
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 20 |
|
| 21 |
-
|
| 22 |
-
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 23 |
-
model = AutoModelForCausalLM.from_pretrained(model_id)
|
| 24 |
-
```
|
| 25 |
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: distilbert/distilbert-base-uncased
|
| 5 |
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- precision
|
| 9 |
+
- recall
|
| 10 |
+
- accuracy
|
| 11 |
+
model-index:
|
| 12 |
+
- name: hr-conversations-classifier
|
| 13 |
+
results: []
|
| 14 |
---
|
| 15 |
|
| 16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 17 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 18 |
|
| 19 |
+
# hr-conversations-classifier
|
|
|
|
| 20 |
|
| 21 |
+
This model is a fine-tuned version of [distilbert/distilbert-base-uncased](https://huggingface.co/distilbert/distilbert-base-uncased) on the None dataset.
|
| 22 |
+
It achieves the following results on the evaluation set:
|
| 23 |
+
- Loss: 0.6631
|
| 24 |
+
- F1 Micro: 0.1481
|
| 25 |
+
- F1 Macro: 0.1452
|
| 26 |
+
- Precision: 0.08
|
| 27 |
+
- Recall: 1.0
|
| 28 |
+
- Accuracy: 0.0
|
| 29 |
+
- Hamming: 0.92
|
| 30 |
|
| 31 |
+
## Model description
|
|
|
|
| 32 |
|
| 33 |
+
More information needed
|
| 34 |
|
| 35 |
+
## Intended uses & limitations
|
|
|
|
| 36 |
|
| 37 |
+
More information needed
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
+
## Training and evaluation data
|
| 40 |
+
|
| 41 |
+
More information needed
|
| 42 |
+
|
| 43 |
+
## Training procedure
|
| 44 |
+
|
| 45 |
+
### Training hyperparameters
|
| 46 |
+
|
| 47 |
+
The following hyperparameters were used during training:
|
| 48 |
+
- learning_rate: 3e-05
|
| 49 |
+
- train_batch_size: 8
|
| 50 |
+
- eval_batch_size: 8
|
| 51 |
+
- seed: 42
|
| 52 |
+
- gradient_accumulation_steps: 2
|
| 53 |
+
- total_train_batch_size: 16
|
| 54 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 55 |
+
- lr_scheduler_type: linear
|
| 56 |
+
- lr_scheduler_warmup_steps: 5
|
| 57 |
+
- num_epochs: 8
|
| 58 |
+
|
| 59 |
+
### Training results
|
| 60 |
+
|
| 61 |
+
| Training Loss | Epoch | Step | Validation Loss | F1 Micro | F1 Macro | Precision | Recall | Accuracy | Hamming |
|
| 62 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|:---------:|:------:|:--------:|:-------:|
|
| 63 |
+
| 1.3535 | 1.0 | 5 | 0.6631 | 0.1481 | 0.1452 | 0.08 | 1.0 | 0.0 | 0.92 |
|
| 64 |
+
| 1.1928 | 2.0 | 10 | 0.5828 | 0.1481 | 0.1452 | 0.08 | 1.0 | 0.0 | 0.92 |
|
| 65 |
+
| 1.0551 | 3.0 | 15 | 0.5213 | 0.1401 | 0.1322 | 0.0759 | 0.9062 | 0.0 | 0.89 |
|
| 66 |
+
| 0.9999 | 4.0 | 20 | 0.4835 | 0.1418 | 0.1274 | 0.0771 | 0.875 | 0.0 | 0.8475 |
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
### Framework versions
|
| 70 |
+
|
| 71 |
+
- Transformers 5.8.0
|
| 72 |
+
- Pytorch 2.11.0+cu130
|
| 73 |
+
- Datasets 4.8.5
|
| 74 |
+
- Tokenizers 0.22.2
|
config.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation": "gelu",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"DistilBertForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_dropout": 0.1,
|
| 7 |
+
"bos_token_id": null,
|
| 8 |
+
"dim": 768,
|
| 9 |
+
"dropout": 0.1,
|
| 10 |
+
"dtype": "float32",
|
| 11 |
+
"eos_token_id": null,
|
| 12 |
+
"hidden_dim": 3072,
|
| 13 |
+
"id2label": {
|
| 14 |
+
"0": "LABEL_0",
|
| 15 |
+
"1": "LABEL_1",
|
| 16 |
+
"2": "LABEL_2",
|
| 17 |
+
"3": "LABEL_3",
|
| 18 |
+
"4": "LABEL_4",
|
| 19 |
+
"5": "LABEL_5",
|
| 20 |
+
"6": "LABEL_6",
|
| 21 |
+
"7": "LABEL_7",
|
| 22 |
+
"8": "LABEL_8",
|
| 23 |
+
"9": "LABEL_9",
|
| 24 |
+
"10": "LABEL_10",
|
| 25 |
+
"11": "LABEL_11",
|
| 26 |
+
"12": "LABEL_12",
|
| 27 |
+
"13": "LABEL_13",
|
| 28 |
+
"14": "LABEL_14",
|
| 29 |
+
"15": "LABEL_15",
|
| 30 |
+
"16": "LABEL_16",
|
| 31 |
+
"17": "LABEL_17",
|
| 32 |
+
"18": "LABEL_18",
|
| 33 |
+
"19": "LABEL_19"
|
| 34 |
+
},
|
| 35 |
+
"initializer_range": 0.02,
|
| 36 |
+
"label2id": {
|
| 37 |
+
"LABEL_0": 0,
|
| 38 |
+
"LABEL_1": 1,
|
| 39 |
+
"LABEL_10": 10,
|
| 40 |
+
"LABEL_11": 11,
|
| 41 |
+
"LABEL_12": 12,
|
| 42 |
+
"LABEL_13": 13,
|
| 43 |
+
"LABEL_14": 14,
|
| 44 |
+
"LABEL_15": 15,
|
| 45 |
+
"LABEL_16": 16,
|
| 46 |
+
"LABEL_17": 17,
|
| 47 |
+
"LABEL_18": 18,
|
| 48 |
+
"LABEL_19": 19,
|
| 49 |
+
"LABEL_2": 2,
|
| 50 |
+
"LABEL_3": 3,
|
| 51 |
+
"LABEL_4": 4,
|
| 52 |
+
"LABEL_5": 5,
|
| 53 |
+
"LABEL_6": 6,
|
| 54 |
+
"LABEL_7": 7,
|
| 55 |
+
"LABEL_8": 8,
|
| 56 |
+
"LABEL_9": 9
|
| 57 |
+
},
|
| 58 |
+
"max_position_embeddings": 512,
|
| 59 |
+
"model_type": "distilbert",
|
| 60 |
+
"n_heads": 12,
|
| 61 |
+
"n_layers": 6,
|
| 62 |
+
"pad_token_id": 0,
|
| 63 |
+
"problem_type": "multi_label_classification",
|
| 64 |
+
"qa_dropout": 0.1,
|
| 65 |
+
"seq_classif_dropout": 0.2,
|
| 66 |
+
"sinusoidal_pos_embds": false,
|
| 67 |
+
"tie_weights_": true,
|
| 68 |
+
"tie_word_embeddings": true,
|
| 69 |
+
"transformers_version": "5.8.0",
|
| 70 |
+
"use_cache": false,
|
| 71 |
+
"vocab_size": 30522
|
| 72 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:47236dfdfc9cfc4c87c96dfdefc072d83982c74151298784f3a5007d77c165bb
|
| 3 |
+
size 267887936
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"cls_token": "[CLS]",
|
| 4 |
+
"do_lower_case": true,
|
| 5 |
+
"is_local": false,
|
| 6 |
+
"local_files_only": false,
|
| 7 |
+
"mask_token": "[MASK]",
|
| 8 |
+
"model_max_length": 512,
|
| 9 |
+
"pad_token": "[PAD]",
|
| 10 |
+
"sep_token": "[SEP]",
|
| 11 |
+
"strip_accents": null,
|
| 12 |
+
"tokenize_chinese_chars": true,
|
| 13 |
+
"tokenizer_class": "BertTokenizer",
|
| 14 |
+
"unk_token": "[UNK]"
|
| 15 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f2a67b9b3a81433171067eee5ac5567f0effae5b3d842161da65bc3dda49ab2f
|
| 3 |
+
size 5329
|