Instructions to use joseph10/tiny-bert-sst2-distilled with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use joseph10/tiny-bert-sst2-distilled with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="joseph10/tiny-bert-sst2-distilled")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("joseph10/tiny-bert-sst2-distilled") model = AutoModelForSequenceClassification.from_pretrained("joseph10/tiny-bert-sst2-distilled") - Notebooks
- Google Colab
- Kaggle
Training in progress, epoch 2
Browse files- logs/events.out.tfevents.1701810876.joseph_legion.26688.6 +2 -2
- model.safetensors +1 -1
- run-5/checkpoint-958/config.json +38 -0
- run-5/checkpoint-958/model.safetensors +3 -0
- run-5/checkpoint-958/optimizer.pt +3 -0
- run-5/checkpoint-958/rng_state.pth +3 -0
- run-5/checkpoint-958/scheduler.pt +3 -0
- run-5/checkpoint-958/special_tokens_map.json +7 -0
- run-5/checkpoint-958/tokenizer.json +0 -0
- run-5/checkpoint-958/tokenizer_config.json +57 -0
- run-5/checkpoint-958/trainer_state.json +54 -0
- run-5/checkpoint-958/training_args.bin +3 -0
- run-5/checkpoint-958/vocab.txt +0 -0
logs/events.out.tfevents.1701810876.joseph_legion.26688.6
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d0b0ce5de953b5bff5b9ed83143fd0106ab793bfaed2d89f86b0b850e043d56
|
| 3 |
+
size 5680
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 17550344
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:78e52206f628d4473e4d2a54670bdb382f9cd4cb3ec4addc845399c614ca9975
|
| 3 |
size 17550344
|
run-5/checkpoint-958/config.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "google/bert_uncased_L-2_H-128_A-2",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"hidden_act": "gelu",
|
| 9 |
+
"hidden_dropout_prob": 0.1,
|
| 10 |
+
"hidden_size": 128,
|
| 11 |
+
"id2label": {
|
| 12 |
+
"0": "noHate",
|
| 13 |
+
"1": "hate",
|
| 14 |
+
"2": "idk/skip",
|
| 15 |
+
"3": "relation"
|
| 16 |
+
},
|
| 17 |
+
"initializer_range": 0.02,
|
| 18 |
+
"intermediate_size": 512,
|
| 19 |
+
"label2id": {
|
| 20 |
+
"hate": "1",
|
| 21 |
+
"idk/skip": "2",
|
| 22 |
+
"noHate": "0",
|
| 23 |
+
"relation": "3"
|
| 24 |
+
},
|
| 25 |
+
"layer_norm_eps": 1e-12,
|
| 26 |
+
"max_position_embeddings": 512,
|
| 27 |
+
"model_type": "bert",
|
| 28 |
+
"num_attention_heads": 2,
|
| 29 |
+
"num_hidden_layers": 2,
|
| 30 |
+
"pad_token_id": 0,
|
| 31 |
+
"position_embedding_type": "absolute",
|
| 32 |
+
"problem_type": "single_label_classification",
|
| 33 |
+
"torch_dtype": "float32",
|
| 34 |
+
"transformers_version": "4.35.2",
|
| 35 |
+
"type_vocab_size": 2,
|
| 36 |
+
"use_cache": true,
|
| 37 |
+
"vocab_size": 30522
|
| 38 |
+
}
|
run-5/checkpoint-958/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:78e52206f628d4473e4d2a54670bdb382f9cd4cb3ec4addc845399c614ca9975
|
| 3 |
+
size 17550344
|
run-5/checkpoint-958/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:491f61e175b4ca0e396b0c5f368f5bfceb3cf4e0388c6401ea2e0d2b4d7685ce
|
| 3 |
+
size 35125946
|
run-5/checkpoint-958/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:760305488f0c5f96bf6a4938d8a030381ed36fcabd079ffbb7eae8df9e6b968a
|
| 3 |
+
size 14308
|
run-5/checkpoint-958/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0040b74a6931dc6a97976ad93d0e4afd61fb362eeabc11b8d866c20f60db54a5
|
| 3 |
+
size 1064
|
run-5/checkpoint-958/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 |
+
}
|
run-5/checkpoint-958/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
run-5/checkpoint-958/tokenizer_config.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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": true,
|
| 45 |
+
"cls_token": "[CLS]",
|
| 46 |
+
"do_basic_tokenize": true,
|
| 47 |
+
"do_lower_case": true,
|
| 48 |
+
"mask_token": "[MASK]",
|
| 49 |
+
"model_max_length": 512,
|
| 50 |
+
"never_split": null,
|
| 51 |
+
"pad_token": "[PAD]",
|
| 52 |
+
"sep_token": "[SEP]",
|
| 53 |
+
"strip_accents": null,
|
| 54 |
+
"tokenize_chinese_chars": true,
|
| 55 |
+
"tokenizer_class": "BertTokenizer",
|
| 56 |
+
"unk_token": "[UNK]"
|
| 57 |
+
}
|
run-5/checkpoint-958/trainer_state.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_metric": 0.8555758683729433,
|
| 3 |
+
"best_model_checkpoint": "tiny-bert-sst2-distilled\\run-5\\checkpoint-479",
|
| 4 |
+
"epoch": 2.0,
|
| 5 |
+
"eval_steps": 500,
|
| 6 |
+
"global_step": 958,
|
| 7 |
+
"is_hyper_param_search": true,
|
| 8 |
+
"is_local_process_zero": true,
|
| 9 |
+
"is_world_process_zero": true,
|
| 10 |
+
"log_history": [
|
| 11 |
+
{
|
| 12 |
+
"epoch": 1.0,
|
| 13 |
+
"learning_rate": 5.596085086530314e-07,
|
| 14 |
+
"loss": 0.6358,
|
| 15 |
+
"step": 479
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"epoch": 1.0,
|
| 19 |
+
"eval_accuracy": 0.8555758683729433,
|
| 20 |
+
"eval_loss": 0.5956268310546875,
|
| 21 |
+
"eval_runtime": 26.0018,
|
| 22 |
+
"eval_samples_per_second": 84.148,
|
| 23 |
+
"eval_steps_per_second": 0.692,
|
| 24 |
+
"step": 479
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 2.0,
|
| 28 |
+
"learning_rate": 0.0,
|
| 29 |
+
"loss": 0.5852,
|
| 30 |
+
"step": 958
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"epoch": 2.0,
|
| 34 |
+
"eval_accuracy": 0.8555758683729433,
|
| 35 |
+
"eval_loss": 0.5728661417961121,
|
| 36 |
+
"eval_runtime": 27.1814,
|
| 37 |
+
"eval_samples_per_second": 80.496,
|
| 38 |
+
"eval_steps_per_second": 0.662,
|
| 39 |
+
"step": 958
|
| 40 |
+
}
|
| 41 |
+
],
|
| 42 |
+
"logging_steps": 500,
|
| 43 |
+
"max_steps": 958,
|
| 44 |
+
"num_train_epochs": 2,
|
| 45 |
+
"save_steps": 500,
|
| 46 |
+
"total_flos": 2552471240256.0,
|
| 47 |
+
"trial_name": null,
|
| 48 |
+
"trial_params": {
|
| 49 |
+
"learning_rate": 1.1192170173060629e-06,
|
| 50 |
+
"num_train_epochs": 2,
|
| 51 |
+
"per_device_train_batch_size": 16,
|
| 52 |
+
"seed": 33
|
| 53 |
+
}
|
| 54 |
+
}
|
run-5/checkpoint-958/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a585f476f2d08a1adbceb9b1a22db001bf2a46daaa81cc34c63bc4b3d4dab2bc
|
| 3 |
+
size 4664
|
run-5/checkpoint-958/vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|