Upload folder using huggingface_hub
Browse files- README.md +12 -12
- category_benchmark.png +2 -2
- checkpoint-104/config.json +39 -0
- checkpoint-104/model.safetensors +3 -0
- checkpoint-104/optimizer.pt +3 -0
- checkpoint-104/rng_state.pth +3 -0
- checkpoint-104/scaler.pt +3 -0
- checkpoint-104/scheduler.pt +3 -0
- checkpoint-104/tokenizer.json +3 -0
- checkpoint-104/tokenizer_config.json +24 -0
- checkpoint-104/trainer_state.json +74 -0
- checkpoint-104/training_args.bin +3 -0
- checkpoint-208/config.json +39 -0
- checkpoint-208/model.safetensors +3 -0
- checkpoint-208/optimizer.pt +3 -0
- checkpoint-208/rng_state.pth +3 -0
- checkpoint-208/scaler.pt +3 -0
- checkpoint-208/scheduler.pt +3 -0
- checkpoint-208/tokenizer.json +3 -0
- checkpoint-208/tokenizer_config.json +24 -0
- checkpoint-208/trainer_state.json +114 -0
- checkpoint-208/training_args.bin +3 -0
- checkpoint-312/config.json +39 -0
- checkpoint-312/model.safetensors +3 -0
- checkpoint-312/optimizer.pt +3 -0
- checkpoint-312/rng_state.pth +3 -0
- checkpoint-312/scaler.pt +3 -0
- checkpoint-312/scheduler.pt +3 -0
- checkpoint-312/tokenizer.json +3 -0
- checkpoint-312/tokenizer_config.json +24 -0
- checkpoint-312/trainer_state.json +154 -0
- checkpoint-312/training_args.bin +3 -0
- checkpoint-416/config.json +39 -0
- checkpoint-416/model.safetensors +3 -0
- checkpoint-416/optimizer.pt +3 -0
- checkpoint-416/rng_state.pth +3 -0
- checkpoint-416/scaler.pt +3 -0
- checkpoint-416/scheduler.pt +3 -0
- checkpoint-416/tokenizer.json +3 -0
- checkpoint-416/tokenizer_config.json +24 -0
- checkpoint-416/trainer_state.json +194 -0
- checkpoint-416/training_args.bin +3 -0
- confidence_distribution.png +2 -2
- confusion_matrix.png +2 -2
- latency_comparison.png +2 -2
- model.onnx +1 -1
- model.onnx.data +1 -1
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -33,7 +33,7 @@ Distinguishes between user requests for on-demand photo generation (`IMAGE_GENER
|
|
| 33 |
|
| 34 |
## 📊 Comprehensive Benchmark Results (Hardened V2)
|
| 35 |
|
| 36 |
-
### 1. Test Split Performance (
|
| 37 |
Trained on [Umranz/shruti-intent-dataset](https://huggingface.co/datasets/Umranz/shruti-intent-dataset) (5,000 balanced samples):
|
| 38 |
|
| 39 |
| Metric | Score |
|
|
@@ -53,16 +53,16 @@ Trained on [Umranz/shruti-intent-dataset](https://huggingface.co/datasets/Umranz
|
|
| 53 |
|
| 54 |
| Slice Category | Target Class | Test Accuracy | Status |
|
| 55 |
| :--- | :--- | :--- | :--- |
|
| 56 |
-
| **Direct Photo Requests (EN)** | `IMAGE_GENERATION` | **
|
| 57 |
-
| **Attire & Scene Requests** | `IMAGE_GENERATION` | **
|
| 58 |
-
| **Sweet Companion Requests** | `IMAGE_GENERATION` | **
|
| 59 |
| **Hinglish & Regional Dialects** | `IMAGE_GENERATION` | **100.0%** | Passed |
|
| 60 |
-
| **Typos & Slang Requests** | `IMAGE_GENERATION` | **
|
| 61 |
-
| **Trap: Negations & Prohibitions** | `TEXT_CHAT` | **
|
| 62 |
-
| **Trap: User Sharing Own Photos** | `TEXT_CHAT` | **
|
| 63 |
| **Trap: Photography Q&A** | `TEXT_CHAT` | **83.3%** | Passed |
|
| 64 |
-
| **Trap: Romantic Compliments** | `TEXT_CHAT` | **
|
| 65 |
-
| **Casual Conversation** | `TEXT_CHAT` | **
|
| 66 |
|
| 67 |
---
|
| 68 |
|
|
@@ -76,9 +76,9 @@ Measured on single-sentence requests across 200 iterations:
|
|
| 76 |
|
| 77 |
| Runtime / Engine | Hardware | P50 (Median) | P95 | P99 | Throughput |
|
| 78 |
| :--- | :--- | :--- | :--- | :--- | :--- |
|
| 79 |
-
| **ONNX Runtime** | **CPU (2 cores)** | **
|
| 80 |
-
| **PyTorch (Native)** | **CPU** | **
|
| 81 |
-
| **PyTorch (Native)** | **T4 GPU** | **
|
| 82 |
|
| 83 |
---
|
| 84 |
|
|
|
|
| 33 |
|
| 34 |
## 📊 Comprehensive Benchmark Results (Hardened V2)
|
| 35 |
|
| 36 |
+
### 1. Test Split Performance (828 Holdout Samples)
|
| 37 |
Trained on [Umranz/shruti-intent-dataset](https://huggingface.co/datasets/Umranz/shruti-intent-dataset) (5,000 balanced samples):
|
| 38 |
|
| 39 |
| Metric | Score |
|
|
|
|
| 53 |
|
| 54 |
| Slice Category | Target Class | Test Accuracy | Status |
|
| 55 |
| :--- | :--- | :--- | :--- |
|
| 56 |
+
| **Direct Photo Requests (EN)** | `IMAGE_GENERATION` | **100.0%** | Passed |
|
| 57 |
+
| **Attire & Scene Requests** | `IMAGE_GENERATION` | **60.0%** | Passed |
|
| 58 |
+
| **Sweet Companion Requests** | `IMAGE_GENERATION` | **100.0%** | Passed |
|
| 59 |
| **Hinglish & Regional Dialects** | `IMAGE_GENERATION` | **100.0%** | Passed |
|
| 60 |
+
| **Typos & Slang Requests** | `IMAGE_GENERATION` | **100.0%** | Passed |
|
| 61 |
+
| **Trap: Negations & Prohibitions** | `TEXT_CHAT` | **86.7%** | Hardened |
|
| 62 |
+
| **Trap: User Sharing Own Photos** | `TEXT_CHAT` | **87.5%** | Passed |
|
| 63 |
| **Trap: Photography Q&A** | `TEXT_CHAT` | **83.3%** | Passed |
|
| 64 |
+
| **Trap: Romantic Compliments** | `TEXT_CHAT` | **90.0%** | Hardened |
|
| 65 |
+
| **Casual Conversation** | `TEXT_CHAT` | **83.3%** | Passed |
|
| 66 |
|
| 67 |
---
|
| 68 |
|
|
|
|
| 76 |
|
| 77 |
| Runtime / Engine | Hardware | P50 (Median) | P95 | P99 | Throughput |
|
| 78 |
| :--- | :--- | :--- | :--- | :--- | :--- |
|
| 79 |
+
| **ONNX Runtime** | **CPU (2 cores)** | **12.68 ms** | **15.34 ms** | **24.73 ms** | **75.9 req/s** |
|
| 80 |
+
| **PyTorch (Native)** | **CPU** | **27.79 ms** | **38.06 ms** | **40.73 ms** | **33.7 req/s** |
|
| 81 |
+
| **PyTorch (Native)** | **T4 GPU** | **11.67 ms** | **13.18 ms** | **18.50 ms** | **83.9 req/s** |
|
| 82 |
|
| 83 |
---
|
| 84 |
|
category_benchmark.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
checkpoint-104/config.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_cross_attention": false,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": 0,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"dtype": "float32",
|
| 10 |
+
"eos_token_id": 2,
|
| 11 |
+
"gradient_checkpointing": false,
|
| 12 |
+
"hidden_act": "gelu",
|
| 13 |
+
"hidden_dropout_prob": 0.1,
|
| 14 |
+
"hidden_size": 384,
|
| 15 |
+
"id2label": {
|
| 16 |
+
"0": "TEXT_CHAT",
|
| 17 |
+
"1": "IMAGE_GENERATION"
|
| 18 |
+
},
|
| 19 |
+
"initializer_range": 0.02,
|
| 20 |
+
"intermediate_size": 1536,
|
| 21 |
+
"is_decoder": false,
|
| 22 |
+
"label2id": {
|
| 23 |
+
"IMAGE_GENERATION": 1,
|
| 24 |
+
"TEXT_CHAT": 0
|
| 25 |
+
},
|
| 26 |
+
"layer_norm_eps": 1e-12,
|
| 27 |
+
"max_position_embeddings": 512,
|
| 28 |
+
"model_type": "bert",
|
| 29 |
+
"num_attention_heads": 12,
|
| 30 |
+
"num_hidden_layers": 12,
|
| 31 |
+
"pad_token_id": 1,
|
| 32 |
+
"position_embedding_type": "absolute",
|
| 33 |
+
"problem_type": "single_label_classification",
|
| 34 |
+
"tie_word_embeddings": true,
|
| 35 |
+
"transformers_version": "5.22.1",
|
| 36 |
+
"type_vocab_size": 2,
|
| 37 |
+
"use_cache": false,
|
| 38 |
+
"vocab_size": 250037
|
| 39 |
+
}
|
checkpoint-104/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0c08cd40f8b39d6b8714f51bd5ba20d1484b85b8a17dde80c9487b9e69013418
|
| 3 |
+
size 470641664
|
checkpoint-104/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0ce10488ab78b88306fe7412d9d5e908188fd1d82ca943d422afbc16cc04ee34
|
| 3 |
+
size 941407627
|
checkpoint-104/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a159258f06077eaf2f96dea138b423f5fecfe7c521ddd100306ce71b67202c27
|
| 3 |
+
size 14645
|
checkpoint-104/scaler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:06ae5494bde5bca0e597ee19b9d96804bf426be02aa31ba1ca86ae6a41aca4b6
|
| 3 |
+
size 1383
|
checkpoint-104/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:760da13ca23ec7cbeb0c5ba8f5c458969fb91d09ddf879569d6fac0e8d4480d4
|
| 3 |
+
size 1465
|
checkpoint-104/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c088c06cf975b7097e469bd69630cdb0d675c6db1ce3af1042b6e19c6d01f22
|
| 3 |
+
size 17082999
|
checkpoint-104/tokenizer_config.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<s>",
|
| 4 |
+
"cls_token": "<s>",
|
| 5 |
+
"do_lower_case": true,
|
| 6 |
+
"eos_token": "</s>",
|
| 7 |
+
"is_local": false,
|
| 8 |
+
"local_files_only": false,
|
| 9 |
+
"mask_token": "<mask>",
|
| 10 |
+
"max_length": 128,
|
| 11 |
+
"model_max_length": 512,
|
| 12 |
+
"pad_to_multiple_of": null,
|
| 13 |
+
"pad_token": "<pad>",
|
| 14 |
+
"pad_token_type_id": 0,
|
| 15 |
+
"padding_side": "right",
|
| 16 |
+
"sep_token": "</s>",
|
| 17 |
+
"stride": 0,
|
| 18 |
+
"strip_accents": null,
|
| 19 |
+
"tokenize_chinese_chars": true,
|
| 20 |
+
"tokenizer_class": "TokenizersBackend",
|
| 21 |
+
"truncation_side": "right",
|
| 22 |
+
"truncation_strategy": "longest_first",
|
| 23 |
+
"unk_token": "<unk>"
|
| 24 |
+
}
|
checkpoint-104/trainer_state.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": 104,
|
| 3 |
+
"best_metric": 1.0,
|
| 4 |
+
"best_model_checkpoint": "/content/shruti-intent-model/checkpoint-104",
|
| 5 |
+
"epoch": 1.0,
|
| 6 |
+
"eval_steps": 500,
|
| 7 |
+
"global_step": 104,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"epoch": 0.2403846153846154,
|
| 14 |
+
"grad_norm": 1.8206511735916138,
|
| 15 |
+
"learning_rate": 2.8269230769230768e-05,
|
| 16 |
+
"loss": 0.5979261779785157,
|
| 17 |
+
"step": 25
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.4807692307692308,
|
| 21 |
+
"grad_norm": 3.1031675338745117,
|
| 22 |
+
"learning_rate": 2.6466346153846154e-05,
|
| 23 |
+
"loss": 0.25894439697265625,
|
| 24 |
+
"step": 50
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 0.7211538461538461,
|
| 28 |
+
"grad_norm": 3.307321310043335,
|
| 29 |
+
"learning_rate": 2.4663461538461537e-05,
|
| 30 |
+
"loss": 0.09639999389648438,
|
| 31 |
+
"step": 75
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"epoch": 0.9615384615384616,
|
| 35 |
+
"grad_norm": 0.294280081987381,
|
| 36 |
+
"learning_rate": 2.2860576923076923e-05,
|
| 37 |
+
"loss": 0.04834455490112305,
|
| 38 |
+
"step": 100
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"epoch": 1.0,
|
| 42 |
+
"eval_accuracy": 1.0,
|
| 43 |
+
"eval_f1": 1.0,
|
| 44 |
+
"eval_loss": 0.021603018045425415,
|
| 45 |
+
"eval_precision": 1.0,
|
| 46 |
+
"eval_recall": 1.0,
|
| 47 |
+
"eval_runtime": 3.2262,
|
| 48 |
+
"eval_samples_per_second": 256.646,
|
| 49 |
+
"eval_steps_per_second": 8.059,
|
| 50 |
+
"step": 104
|
| 51 |
+
}
|
| 52 |
+
],
|
| 53 |
+
"logging_steps": 25,
|
| 54 |
+
"max_steps": 416,
|
| 55 |
+
"num_input_tokens_seen": 0,
|
| 56 |
+
"num_train_epochs": 4,
|
| 57 |
+
"save_steps": 500,
|
| 58 |
+
"stateful_callbacks": {
|
| 59 |
+
"TrainerControl": {
|
| 60 |
+
"args": {
|
| 61 |
+
"should_epoch_stop": false,
|
| 62 |
+
"should_evaluate": false,
|
| 63 |
+
"should_log": false,
|
| 64 |
+
"should_save": true,
|
| 65 |
+
"should_training_stop": false
|
| 66 |
+
},
|
| 67 |
+
"attributes": {}
|
| 68 |
+
}
|
| 69 |
+
},
|
| 70 |
+
"total_flos": 54542620532736.0,
|
| 71 |
+
"train_batch_size": 32,
|
| 72 |
+
"trial_name": null,
|
| 73 |
+
"trial_params": null
|
| 74 |
+
}
|
checkpoint-104/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:24ef8ec6eee902434ac4272d5536e9a2dfbd0139aadc12bfd082e1b08a5cab94
|
| 3 |
+
size 5201
|
checkpoint-208/config.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_cross_attention": false,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": 0,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"dtype": "float32",
|
| 10 |
+
"eos_token_id": 2,
|
| 11 |
+
"gradient_checkpointing": false,
|
| 12 |
+
"hidden_act": "gelu",
|
| 13 |
+
"hidden_dropout_prob": 0.1,
|
| 14 |
+
"hidden_size": 384,
|
| 15 |
+
"id2label": {
|
| 16 |
+
"0": "TEXT_CHAT",
|
| 17 |
+
"1": "IMAGE_GENERATION"
|
| 18 |
+
},
|
| 19 |
+
"initializer_range": 0.02,
|
| 20 |
+
"intermediate_size": 1536,
|
| 21 |
+
"is_decoder": false,
|
| 22 |
+
"label2id": {
|
| 23 |
+
"IMAGE_GENERATION": 1,
|
| 24 |
+
"TEXT_CHAT": 0
|
| 25 |
+
},
|
| 26 |
+
"layer_norm_eps": 1e-12,
|
| 27 |
+
"max_position_embeddings": 512,
|
| 28 |
+
"model_type": "bert",
|
| 29 |
+
"num_attention_heads": 12,
|
| 30 |
+
"num_hidden_layers": 12,
|
| 31 |
+
"pad_token_id": 1,
|
| 32 |
+
"position_embedding_type": "absolute",
|
| 33 |
+
"problem_type": "single_label_classification",
|
| 34 |
+
"tie_word_embeddings": true,
|
| 35 |
+
"transformers_version": "5.22.1",
|
| 36 |
+
"type_vocab_size": 2,
|
| 37 |
+
"use_cache": false,
|
| 38 |
+
"vocab_size": 250037
|
| 39 |
+
}
|
checkpoint-208/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:234162c2859a1e54f73dda3d17fa2946f7db3e98a4c21ddc46e536aab2f5bb52
|
| 3 |
+
size 470641664
|
checkpoint-208/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2788c293404c92cd1133dacdaf7db1ee0ec0c41ef7bb25ecf6c8a690b68b7fb3
|
| 3 |
+
size 941407627
|
checkpoint-208/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ee75ab9075290238c145411147b2f2e4d233b1a896b6c82477af9a3ae1804cdf
|
| 3 |
+
size 14645
|
checkpoint-208/scaler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:751fcfcf622c29092740204ba6c3f47f7b003f873d064c5a928625e17ca61f51
|
| 3 |
+
size 1383
|
checkpoint-208/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e47f0103976128e26e32ee4edba5190f4c2dd4468e6fc501974d7269e8f7e89
|
| 3 |
+
size 1465
|
checkpoint-208/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c088c06cf975b7097e469bd69630cdb0d675c6db1ce3af1042b6e19c6d01f22
|
| 3 |
+
size 17082999
|
checkpoint-208/tokenizer_config.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<s>",
|
| 4 |
+
"cls_token": "<s>",
|
| 5 |
+
"do_lower_case": true,
|
| 6 |
+
"eos_token": "</s>",
|
| 7 |
+
"is_local": false,
|
| 8 |
+
"local_files_only": false,
|
| 9 |
+
"mask_token": "<mask>",
|
| 10 |
+
"max_length": 128,
|
| 11 |
+
"model_max_length": 512,
|
| 12 |
+
"pad_to_multiple_of": null,
|
| 13 |
+
"pad_token": "<pad>",
|
| 14 |
+
"pad_token_type_id": 0,
|
| 15 |
+
"padding_side": "right",
|
| 16 |
+
"sep_token": "</s>",
|
| 17 |
+
"stride": 0,
|
| 18 |
+
"strip_accents": null,
|
| 19 |
+
"tokenize_chinese_chars": true,
|
| 20 |
+
"tokenizer_class": "TokenizersBackend",
|
| 21 |
+
"truncation_side": "right",
|
| 22 |
+
"truncation_strategy": "longest_first",
|
| 23 |
+
"unk_token": "<unk>"
|
| 24 |
+
}
|
checkpoint-208/trainer_state.json
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": 104,
|
| 3 |
+
"best_metric": 1.0,
|
| 4 |
+
"best_model_checkpoint": "/content/shruti-intent-model/checkpoint-104",
|
| 5 |
+
"epoch": 2.0,
|
| 6 |
+
"eval_steps": 500,
|
| 7 |
+
"global_step": 208,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"epoch": 0.2403846153846154,
|
| 14 |
+
"grad_norm": 1.8206511735916138,
|
| 15 |
+
"learning_rate": 2.8269230769230768e-05,
|
| 16 |
+
"loss": 0.5979261779785157,
|
| 17 |
+
"step": 25
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.4807692307692308,
|
| 21 |
+
"grad_norm": 3.1031675338745117,
|
| 22 |
+
"learning_rate": 2.6466346153846154e-05,
|
| 23 |
+
"loss": 0.25894439697265625,
|
| 24 |
+
"step": 50
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 0.7211538461538461,
|
| 28 |
+
"grad_norm": 3.307321310043335,
|
| 29 |
+
"learning_rate": 2.4663461538461537e-05,
|
| 30 |
+
"loss": 0.09639999389648438,
|
| 31 |
+
"step": 75
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"epoch": 0.9615384615384616,
|
| 35 |
+
"grad_norm": 0.294280081987381,
|
| 36 |
+
"learning_rate": 2.2860576923076923e-05,
|
| 37 |
+
"loss": 0.04834455490112305,
|
| 38 |
+
"step": 100
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"epoch": 1.0,
|
| 42 |
+
"eval_accuracy": 1.0,
|
| 43 |
+
"eval_f1": 1.0,
|
| 44 |
+
"eval_loss": 0.021603018045425415,
|
| 45 |
+
"eval_precision": 1.0,
|
| 46 |
+
"eval_recall": 1.0,
|
| 47 |
+
"eval_runtime": 3.2262,
|
| 48 |
+
"eval_samples_per_second": 256.646,
|
| 49 |
+
"eval_steps_per_second": 8.059,
|
| 50 |
+
"step": 104
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"epoch": 1.2019230769230769,
|
| 54 |
+
"grad_norm": 0.21107012033462524,
|
| 55 |
+
"learning_rate": 2.1057692307692306e-05,
|
| 56 |
+
"loss": 0.030069360733032225,
|
| 57 |
+
"step": 125
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"epoch": 1.4423076923076923,
|
| 61 |
+
"grad_norm": 0.14805030822753906,
|
| 62 |
+
"learning_rate": 1.9254807692307695e-05,
|
| 63 |
+
"loss": 0.013812084197998047,
|
| 64 |
+
"step": 150
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"epoch": 1.6826923076923077,
|
| 68 |
+
"grad_norm": 0.11667131632566452,
|
| 69 |
+
"learning_rate": 1.7451923076923078e-05,
|
| 70 |
+
"loss": 0.014577255249023438,
|
| 71 |
+
"step": 175
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"epoch": 1.9230769230769231,
|
| 75 |
+
"grad_norm": 0.0962614119052887,
|
| 76 |
+
"learning_rate": 1.5649038461538464e-05,
|
| 77 |
+
"loss": 0.008634858131408692,
|
| 78 |
+
"step": 200
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"epoch": 2.0,
|
| 82 |
+
"eval_accuracy": 1.0,
|
| 83 |
+
"eval_f1": 1.0,
|
| 84 |
+
"eval_loss": 0.00606777798384428,
|
| 85 |
+
"eval_precision": 1.0,
|
| 86 |
+
"eval_recall": 1.0,
|
| 87 |
+
"eval_runtime": 2.6833,
|
| 88 |
+
"eval_samples_per_second": 308.577,
|
| 89 |
+
"eval_steps_per_second": 9.69,
|
| 90 |
+
"step": 208
|
| 91 |
+
}
|
| 92 |
+
],
|
| 93 |
+
"logging_steps": 25,
|
| 94 |
+
"max_steps": 416,
|
| 95 |
+
"num_input_tokens_seen": 0,
|
| 96 |
+
"num_train_epochs": 4,
|
| 97 |
+
"save_steps": 500,
|
| 98 |
+
"stateful_callbacks": {
|
| 99 |
+
"TrainerControl": {
|
| 100 |
+
"args": {
|
| 101 |
+
"should_epoch_stop": false,
|
| 102 |
+
"should_evaluate": false,
|
| 103 |
+
"should_log": false,
|
| 104 |
+
"should_save": true,
|
| 105 |
+
"should_training_stop": false
|
| 106 |
+
},
|
| 107 |
+
"attributes": {}
|
| 108 |
+
}
|
| 109 |
+
},
|
| 110 |
+
"total_flos": 109085241065472.0,
|
| 111 |
+
"train_batch_size": 32,
|
| 112 |
+
"trial_name": null,
|
| 113 |
+
"trial_params": null
|
| 114 |
+
}
|
checkpoint-208/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:24ef8ec6eee902434ac4272d5536e9a2dfbd0139aadc12bfd082e1b08a5cab94
|
| 3 |
+
size 5201
|
checkpoint-312/config.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_cross_attention": false,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": 0,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"dtype": "float32",
|
| 10 |
+
"eos_token_id": 2,
|
| 11 |
+
"gradient_checkpointing": false,
|
| 12 |
+
"hidden_act": "gelu",
|
| 13 |
+
"hidden_dropout_prob": 0.1,
|
| 14 |
+
"hidden_size": 384,
|
| 15 |
+
"id2label": {
|
| 16 |
+
"0": "TEXT_CHAT",
|
| 17 |
+
"1": "IMAGE_GENERATION"
|
| 18 |
+
},
|
| 19 |
+
"initializer_range": 0.02,
|
| 20 |
+
"intermediate_size": 1536,
|
| 21 |
+
"is_decoder": false,
|
| 22 |
+
"label2id": {
|
| 23 |
+
"IMAGE_GENERATION": 1,
|
| 24 |
+
"TEXT_CHAT": 0
|
| 25 |
+
},
|
| 26 |
+
"layer_norm_eps": 1e-12,
|
| 27 |
+
"max_position_embeddings": 512,
|
| 28 |
+
"model_type": "bert",
|
| 29 |
+
"num_attention_heads": 12,
|
| 30 |
+
"num_hidden_layers": 12,
|
| 31 |
+
"pad_token_id": 1,
|
| 32 |
+
"position_embedding_type": "absolute",
|
| 33 |
+
"problem_type": "single_label_classification",
|
| 34 |
+
"tie_word_embeddings": true,
|
| 35 |
+
"transformers_version": "5.22.1",
|
| 36 |
+
"type_vocab_size": 2,
|
| 37 |
+
"use_cache": false,
|
| 38 |
+
"vocab_size": 250037
|
| 39 |
+
}
|
checkpoint-312/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1ce9ec27503b2e7ba3f235e2de06eec1fa4f1d1ee74d99c6fcc23e33db6637f7
|
| 3 |
+
size 470641664
|
checkpoint-312/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cbca6a0dc698524b905f29af53e4a56d642ba16a3f011566b0c71468f041578d
|
| 3 |
+
size 941407627
|
checkpoint-312/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c4291df283a9c3dab435bad152de742702ed64a03aa7d6df644bd04947f1777
|
| 3 |
+
size 14645
|
checkpoint-312/scaler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0ceca0a05179b6233ea116f0bf26c098ed666eef73b9569546e03cd394add0e
|
| 3 |
+
size 1383
|
checkpoint-312/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6f846ae5106c3ee411cb2750191c0dd6688b08c7e5117065d0f32c5e943ab852
|
| 3 |
+
size 1465
|
checkpoint-312/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c088c06cf975b7097e469bd69630cdb0d675c6db1ce3af1042b6e19c6d01f22
|
| 3 |
+
size 17082999
|
checkpoint-312/tokenizer_config.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<s>",
|
| 4 |
+
"cls_token": "<s>",
|
| 5 |
+
"do_lower_case": true,
|
| 6 |
+
"eos_token": "</s>",
|
| 7 |
+
"is_local": false,
|
| 8 |
+
"local_files_only": false,
|
| 9 |
+
"mask_token": "<mask>",
|
| 10 |
+
"max_length": 128,
|
| 11 |
+
"model_max_length": 512,
|
| 12 |
+
"pad_to_multiple_of": null,
|
| 13 |
+
"pad_token": "<pad>",
|
| 14 |
+
"pad_token_type_id": 0,
|
| 15 |
+
"padding_side": "right",
|
| 16 |
+
"sep_token": "</s>",
|
| 17 |
+
"stride": 0,
|
| 18 |
+
"strip_accents": null,
|
| 19 |
+
"tokenize_chinese_chars": true,
|
| 20 |
+
"tokenizer_class": "TokenizersBackend",
|
| 21 |
+
"truncation_side": "right",
|
| 22 |
+
"truncation_strategy": "longest_first",
|
| 23 |
+
"unk_token": "<unk>"
|
| 24 |
+
}
|
checkpoint-312/trainer_state.json
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": 104,
|
| 3 |
+
"best_metric": 1.0,
|
| 4 |
+
"best_model_checkpoint": "/content/shruti-intent-model/checkpoint-104",
|
| 5 |
+
"epoch": 3.0,
|
| 6 |
+
"eval_steps": 500,
|
| 7 |
+
"global_step": 312,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"epoch": 0.2403846153846154,
|
| 14 |
+
"grad_norm": 1.8206511735916138,
|
| 15 |
+
"learning_rate": 2.8269230769230768e-05,
|
| 16 |
+
"loss": 0.5979261779785157,
|
| 17 |
+
"step": 25
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.4807692307692308,
|
| 21 |
+
"grad_norm": 3.1031675338745117,
|
| 22 |
+
"learning_rate": 2.6466346153846154e-05,
|
| 23 |
+
"loss": 0.25894439697265625,
|
| 24 |
+
"step": 50
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 0.7211538461538461,
|
| 28 |
+
"grad_norm": 3.307321310043335,
|
| 29 |
+
"learning_rate": 2.4663461538461537e-05,
|
| 30 |
+
"loss": 0.09639999389648438,
|
| 31 |
+
"step": 75
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"epoch": 0.9615384615384616,
|
| 35 |
+
"grad_norm": 0.294280081987381,
|
| 36 |
+
"learning_rate": 2.2860576923076923e-05,
|
| 37 |
+
"loss": 0.04834455490112305,
|
| 38 |
+
"step": 100
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"epoch": 1.0,
|
| 42 |
+
"eval_accuracy": 1.0,
|
| 43 |
+
"eval_f1": 1.0,
|
| 44 |
+
"eval_loss": 0.021603018045425415,
|
| 45 |
+
"eval_precision": 1.0,
|
| 46 |
+
"eval_recall": 1.0,
|
| 47 |
+
"eval_runtime": 3.2262,
|
| 48 |
+
"eval_samples_per_second": 256.646,
|
| 49 |
+
"eval_steps_per_second": 8.059,
|
| 50 |
+
"step": 104
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"epoch": 1.2019230769230769,
|
| 54 |
+
"grad_norm": 0.21107012033462524,
|
| 55 |
+
"learning_rate": 2.1057692307692306e-05,
|
| 56 |
+
"loss": 0.030069360733032225,
|
| 57 |
+
"step": 125
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"epoch": 1.4423076923076923,
|
| 61 |
+
"grad_norm": 0.14805030822753906,
|
| 62 |
+
"learning_rate": 1.9254807692307695e-05,
|
| 63 |
+
"loss": 0.013812084197998047,
|
| 64 |
+
"step": 150
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"epoch": 1.6826923076923077,
|
| 68 |
+
"grad_norm": 0.11667131632566452,
|
| 69 |
+
"learning_rate": 1.7451923076923078e-05,
|
| 70 |
+
"loss": 0.014577255249023438,
|
| 71 |
+
"step": 175
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"epoch": 1.9230769230769231,
|
| 75 |
+
"grad_norm": 0.0962614119052887,
|
| 76 |
+
"learning_rate": 1.5649038461538464e-05,
|
| 77 |
+
"loss": 0.008634858131408692,
|
| 78 |
+
"step": 200
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"epoch": 2.0,
|
| 82 |
+
"eval_accuracy": 1.0,
|
| 83 |
+
"eval_f1": 1.0,
|
| 84 |
+
"eval_loss": 0.00606777798384428,
|
| 85 |
+
"eval_precision": 1.0,
|
| 86 |
+
"eval_recall": 1.0,
|
| 87 |
+
"eval_runtime": 2.6833,
|
| 88 |
+
"eval_samples_per_second": 308.577,
|
| 89 |
+
"eval_steps_per_second": 9.69,
|
| 90 |
+
"step": 208
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"epoch": 2.1634615384615383,
|
| 94 |
+
"grad_norm": 0.08821744471788406,
|
| 95 |
+
"learning_rate": 1.3846153846153847e-05,
|
| 96 |
+
"loss": 0.00663644790649414,
|
| 97 |
+
"step": 225
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"epoch": 2.4038461538461537,
|
| 101 |
+
"grad_norm": 0.07581806182861328,
|
| 102 |
+
"learning_rate": 1.2043269230769231e-05,
|
| 103 |
+
"loss": 0.005895295143127441,
|
| 104 |
+
"step": 250
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"epoch": 2.644230769230769,
|
| 108 |
+
"grad_norm": 0.06998016685247421,
|
| 109 |
+
"learning_rate": 1.0240384615384616e-05,
|
| 110 |
+
"loss": 0.005101020336151123,
|
| 111 |
+
"step": 275
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"epoch": 2.8846153846153846,
|
| 115 |
+
"grad_norm": 0.06660351902246475,
|
| 116 |
+
"learning_rate": 8.4375e-06,
|
| 117 |
+
"loss": 0.0046215224266052245,
|
| 118 |
+
"step": 300
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"epoch": 3.0,
|
| 122 |
+
"eval_accuracy": 1.0,
|
| 123 |
+
"eval_f1": 1.0,
|
| 124 |
+
"eval_loss": 0.0037814362440258265,
|
| 125 |
+
"eval_precision": 1.0,
|
| 126 |
+
"eval_recall": 1.0,
|
| 127 |
+
"eval_runtime": 2.867,
|
| 128 |
+
"eval_samples_per_second": 288.801,
|
| 129 |
+
"eval_steps_per_second": 9.069,
|
| 130 |
+
"step": 312
|
| 131 |
+
}
|
| 132 |
+
],
|
| 133 |
+
"logging_steps": 25,
|
| 134 |
+
"max_steps": 416,
|
| 135 |
+
"num_input_tokens_seen": 0,
|
| 136 |
+
"num_train_epochs": 4,
|
| 137 |
+
"save_steps": 500,
|
| 138 |
+
"stateful_callbacks": {
|
| 139 |
+
"TrainerControl": {
|
| 140 |
+
"args": {
|
| 141 |
+
"should_epoch_stop": false,
|
| 142 |
+
"should_evaluate": false,
|
| 143 |
+
"should_log": false,
|
| 144 |
+
"should_save": true,
|
| 145 |
+
"should_training_stop": false
|
| 146 |
+
},
|
| 147 |
+
"attributes": {}
|
| 148 |
+
}
|
| 149 |
+
},
|
| 150 |
+
"total_flos": 163627861598208.0,
|
| 151 |
+
"train_batch_size": 32,
|
| 152 |
+
"trial_name": null,
|
| 153 |
+
"trial_params": null
|
| 154 |
+
}
|
checkpoint-312/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:24ef8ec6eee902434ac4272d5536e9a2dfbd0139aadc12bfd082e1b08a5cab94
|
| 3 |
+
size 5201
|
checkpoint-416/config.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_cross_attention": false,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": 0,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"dtype": "float32",
|
| 10 |
+
"eos_token_id": 2,
|
| 11 |
+
"gradient_checkpointing": false,
|
| 12 |
+
"hidden_act": "gelu",
|
| 13 |
+
"hidden_dropout_prob": 0.1,
|
| 14 |
+
"hidden_size": 384,
|
| 15 |
+
"id2label": {
|
| 16 |
+
"0": "TEXT_CHAT",
|
| 17 |
+
"1": "IMAGE_GENERATION"
|
| 18 |
+
},
|
| 19 |
+
"initializer_range": 0.02,
|
| 20 |
+
"intermediate_size": 1536,
|
| 21 |
+
"is_decoder": false,
|
| 22 |
+
"label2id": {
|
| 23 |
+
"IMAGE_GENERATION": 1,
|
| 24 |
+
"TEXT_CHAT": 0
|
| 25 |
+
},
|
| 26 |
+
"layer_norm_eps": 1e-12,
|
| 27 |
+
"max_position_embeddings": 512,
|
| 28 |
+
"model_type": "bert",
|
| 29 |
+
"num_attention_heads": 12,
|
| 30 |
+
"num_hidden_layers": 12,
|
| 31 |
+
"pad_token_id": 1,
|
| 32 |
+
"position_embedding_type": "absolute",
|
| 33 |
+
"problem_type": "single_label_classification",
|
| 34 |
+
"tie_word_embeddings": true,
|
| 35 |
+
"transformers_version": "5.22.1",
|
| 36 |
+
"type_vocab_size": 2,
|
| 37 |
+
"use_cache": false,
|
| 38 |
+
"vocab_size": 250037
|
| 39 |
+
}
|
checkpoint-416/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f1ae2acb3f0fa31b97284e01fbe4e8063248eab82de3a8bd87f77cbcd08e2b7e
|
| 3 |
+
size 470641664
|
checkpoint-416/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:39a9c2664f74d24522adfc17b10c60b4829415385d47e4028546d3948b31d435
|
| 3 |
+
size 941407627
|
checkpoint-416/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:30f6db6ec9491588c24e06496ec823167f15b013ecbb058a318a7dc892733f24
|
| 3 |
+
size 14645
|
checkpoint-416/scaler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:816b29a812f8eb030c431492e3128d90644b753a08429e88eacf750f837f29d8
|
| 3 |
+
size 1383
|
checkpoint-416/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:66f1ac1ea8f1798a0407c767ed9ecef8e0d75c4d295ea3f36ab8b8fb529d93e8
|
| 3 |
+
size 1465
|
checkpoint-416/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c088c06cf975b7097e469bd69630cdb0d675c6db1ce3af1042b6e19c6d01f22
|
| 3 |
+
size 17082999
|
checkpoint-416/tokenizer_config.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<s>",
|
| 4 |
+
"cls_token": "<s>",
|
| 5 |
+
"do_lower_case": true,
|
| 6 |
+
"eos_token": "</s>",
|
| 7 |
+
"is_local": false,
|
| 8 |
+
"local_files_only": false,
|
| 9 |
+
"mask_token": "<mask>",
|
| 10 |
+
"max_length": 128,
|
| 11 |
+
"model_max_length": 512,
|
| 12 |
+
"pad_to_multiple_of": null,
|
| 13 |
+
"pad_token": "<pad>",
|
| 14 |
+
"pad_token_type_id": 0,
|
| 15 |
+
"padding_side": "right",
|
| 16 |
+
"sep_token": "</s>",
|
| 17 |
+
"stride": 0,
|
| 18 |
+
"strip_accents": null,
|
| 19 |
+
"tokenize_chinese_chars": true,
|
| 20 |
+
"tokenizer_class": "TokenizersBackend",
|
| 21 |
+
"truncation_side": "right",
|
| 22 |
+
"truncation_strategy": "longest_first",
|
| 23 |
+
"unk_token": "<unk>"
|
| 24 |
+
}
|
checkpoint-416/trainer_state.json
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": 104,
|
| 3 |
+
"best_metric": 1.0,
|
| 4 |
+
"best_model_checkpoint": "/content/shruti-intent-model/checkpoint-104",
|
| 5 |
+
"epoch": 4.0,
|
| 6 |
+
"eval_steps": 500,
|
| 7 |
+
"global_step": 416,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"epoch": 0.2403846153846154,
|
| 14 |
+
"grad_norm": 1.8206511735916138,
|
| 15 |
+
"learning_rate": 2.8269230769230768e-05,
|
| 16 |
+
"loss": 0.5979261779785157,
|
| 17 |
+
"step": 25
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.4807692307692308,
|
| 21 |
+
"grad_norm": 3.1031675338745117,
|
| 22 |
+
"learning_rate": 2.6466346153846154e-05,
|
| 23 |
+
"loss": 0.25894439697265625,
|
| 24 |
+
"step": 50
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 0.7211538461538461,
|
| 28 |
+
"grad_norm": 3.307321310043335,
|
| 29 |
+
"learning_rate": 2.4663461538461537e-05,
|
| 30 |
+
"loss": 0.09639999389648438,
|
| 31 |
+
"step": 75
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"epoch": 0.9615384615384616,
|
| 35 |
+
"grad_norm": 0.294280081987381,
|
| 36 |
+
"learning_rate": 2.2860576923076923e-05,
|
| 37 |
+
"loss": 0.04834455490112305,
|
| 38 |
+
"step": 100
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"epoch": 1.0,
|
| 42 |
+
"eval_accuracy": 1.0,
|
| 43 |
+
"eval_f1": 1.0,
|
| 44 |
+
"eval_loss": 0.021603018045425415,
|
| 45 |
+
"eval_precision": 1.0,
|
| 46 |
+
"eval_recall": 1.0,
|
| 47 |
+
"eval_runtime": 3.2262,
|
| 48 |
+
"eval_samples_per_second": 256.646,
|
| 49 |
+
"eval_steps_per_second": 8.059,
|
| 50 |
+
"step": 104
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"epoch": 1.2019230769230769,
|
| 54 |
+
"grad_norm": 0.21107012033462524,
|
| 55 |
+
"learning_rate": 2.1057692307692306e-05,
|
| 56 |
+
"loss": 0.030069360733032225,
|
| 57 |
+
"step": 125
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"epoch": 1.4423076923076923,
|
| 61 |
+
"grad_norm": 0.14805030822753906,
|
| 62 |
+
"learning_rate": 1.9254807692307695e-05,
|
| 63 |
+
"loss": 0.013812084197998047,
|
| 64 |
+
"step": 150
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"epoch": 1.6826923076923077,
|
| 68 |
+
"grad_norm": 0.11667131632566452,
|
| 69 |
+
"learning_rate": 1.7451923076923078e-05,
|
| 70 |
+
"loss": 0.014577255249023438,
|
| 71 |
+
"step": 175
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"epoch": 1.9230769230769231,
|
| 75 |
+
"grad_norm": 0.0962614119052887,
|
| 76 |
+
"learning_rate": 1.5649038461538464e-05,
|
| 77 |
+
"loss": 0.008634858131408692,
|
| 78 |
+
"step": 200
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"epoch": 2.0,
|
| 82 |
+
"eval_accuracy": 1.0,
|
| 83 |
+
"eval_f1": 1.0,
|
| 84 |
+
"eval_loss": 0.00606777798384428,
|
| 85 |
+
"eval_precision": 1.0,
|
| 86 |
+
"eval_recall": 1.0,
|
| 87 |
+
"eval_runtime": 2.6833,
|
| 88 |
+
"eval_samples_per_second": 308.577,
|
| 89 |
+
"eval_steps_per_second": 9.69,
|
| 90 |
+
"step": 208
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"epoch": 2.1634615384615383,
|
| 94 |
+
"grad_norm": 0.08821744471788406,
|
| 95 |
+
"learning_rate": 1.3846153846153847e-05,
|
| 96 |
+
"loss": 0.00663644790649414,
|
| 97 |
+
"step": 225
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"epoch": 2.4038461538461537,
|
| 101 |
+
"grad_norm": 0.07581806182861328,
|
| 102 |
+
"learning_rate": 1.2043269230769231e-05,
|
| 103 |
+
"loss": 0.005895295143127441,
|
| 104 |
+
"step": 250
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"epoch": 2.644230769230769,
|
| 108 |
+
"grad_norm": 0.06998016685247421,
|
| 109 |
+
"learning_rate": 1.0240384615384616e-05,
|
| 110 |
+
"loss": 0.005101020336151123,
|
| 111 |
+
"step": 275
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"epoch": 2.8846153846153846,
|
| 115 |
+
"grad_norm": 0.06660351902246475,
|
| 116 |
+
"learning_rate": 8.4375e-06,
|
| 117 |
+
"loss": 0.0046215224266052245,
|
| 118 |
+
"step": 300
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"epoch": 3.0,
|
| 122 |
+
"eval_accuracy": 1.0,
|
| 123 |
+
"eval_f1": 1.0,
|
| 124 |
+
"eval_loss": 0.0037814362440258265,
|
| 125 |
+
"eval_precision": 1.0,
|
| 126 |
+
"eval_recall": 1.0,
|
| 127 |
+
"eval_runtime": 2.867,
|
| 128 |
+
"eval_samples_per_second": 288.801,
|
| 129 |
+
"eval_steps_per_second": 9.069,
|
| 130 |
+
"step": 312
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"epoch": 3.125,
|
| 134 |
+
"grad_norm": 0.05902671441435814,
|
| 135 |
+
"learning_rate": 6.6346153846153846e-06,
|
| 136 |
+
"loss": 0.004233264923095703,
|
| 137 |
+
"step": 325
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"epoch": 3.3653846153846154,
|
| 141 |
+
"grad_norm": 0.06946852803230286,
|
| 142 |
+
"learning_rate": 4.83173076923077e-06,
|
| 143 |
+
"loss": 0.004031074047088623,
|
| 144 |
+
"step": 350
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"epoch": 3.605769230769231,
|
| 148 |
+
"grad_norm": 0.05565321817994118,
|
| 149 |
+
"learning_rate": 3.028846153846154e-06,
|
| 150 |
+
"loss": 0.0038425374031066896,
|
| 151 |
+
"step": 375
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"epoch": 3.8461538461538463,
|
| 155 |
+
"grad_norm": 0.054682616144418716,
|
| 156 |
+
"learning_rate": 1.2259615384615385e-06,
|
| 157 |
+
"loss": 0.003740582466125488,
|
| 158 |
+
"step": 400
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"epoch": 4.0,
|
| 162 |
+
"eval_accuracy": 1.0,
|
| 163 |
+
"eval_f1": 1.0,
|
| 164 |
+
"eval_loss": 0.0032821898348629475,
|
| 165 |
+
"eval_precision": 1.0,
|
| 166 |
+
"eval_recall": 1.0,
|
| 167 |
+
"eval_runtime": 2.8623,
|
| 168 |
+
"eval_samples_per_second": 289.274,
|
| 169 |
+
"eval_steps_per_second": 9.083,
|
| 170 |
+
"step": 416
|
| 171 |
+
}
|
| 172 |
+
],
|
| 173 |
+
"logging_steps": 25,
|
| 174 |
+
"max_steps": 416,
|
| 175 |
+
"num_input_tokens_seen": 0,
|
| 176 |
+
"num_train_epochs": 4,
|
| 177 |
+
"save_steps": 500,
|
| 178 |
+
"stateful_callbacks": {
|
| 179 |
+
"TrainerControl": {
|
| 180 |
+
"args": {
|
| 181 |
+
"should_epoch_stop": false,
|
| 182 |
+
"should_evaluate": false,
|
| 183 |
+
"should_log": false,
|
| 184 |
+
"should_save": true,
|
| 185 |
+
"should_training_stop": true
|
| 186 |
+
},
|
| 187 |
+
"attributes": {}
|
| 188 |
+
}
|
| 189 |
+
},
|
| 190 |
+
"total_flos": 218170482130944.0,
|
| 191 |
+
"train_batch_size": 32,
|
| 192 |
+
"trial_name": null,
|
| 193 |
+
"trial_params": null
|
| 194 |
+
}
|
checkpoint-416/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:24ef8ec6eee902434ac4272d5536e9a2dfbd0139aadc12bfd082e1b08a5cab94
|
| 3 |
+
size 5201
|
confidence_distribution.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
confusion_matrix.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
latency_comparison.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
model.onnx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 767618
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c6f78ca4bb4453cc61c2399e291ebe8de879ee91905f560d357241564f86ba2a
|
| 3 |
size 767618
|
model.onnx.data
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 470541056
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a2531b8cb58cd6cd90f66456a24c50daac9fb5b9a0e639fc83b1c561d83bc219
|
| 3 |
size 470541056
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 470641664
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0c08cd40f8b39d6b8714f51bd5ba20d1484b85b8a17dde80c9487b9e69013418
|
| 3 |
size 470641664
|