Upload model
Browse files- README.md +59 -0
- config.json +43 -0
- generation_config.json +6 -0
- tf_model.h5 +3 -0
README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- generated_from_keras_callback
|
| 4 |
+
model-index:
|
| 5 |
+
- name: botGPT2_org_ds_cosine
|
| 6 |
+
results: []
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
| 10 |
+
probably proofread and complete it, then remove this comment. -->
|
| 11 |
+
|
| 12 |
+
# botGPT2_org_ds_cosine
|
| 13 |
+
|
| 14 |
+
This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.
|
| 15 |
+
It achieves the following results on the evaluation set:
|
| 16 |
+
- Train Loss: 0.1752
|
| 17 |
+
- Train Accuracy: 0.0379
|
| 18 |
+
- Train Perplexity: 236.0702
|
| 19 |
+
- Validation Loss: 0.1399
|
| 20 |
+
- Validation Accuracy: 0.0368
|
| 21 |
+
- Validation Perplexity: 372.2610
|
| 22 |
+
- Epoch: 3
|
| 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 |
+
- optimizer: {'name': 'AdamW', 'weight_decay': 0.004, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': True, 'is_legacy_optimizer': False, 'learning_rate': 5.4921643e-06, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
|
| 42 |
+
- training_precision: float32
|
| 43 |
+
|
| 44 |
+
### Training results
|
| 45 |
+
|
| 46 |
+
| Train Loss | Train Accuracy | Train Perplexity | Validation Loss | Validation Accuracy | Validation Perplexity | Epoch |
|
| 47 |
+
|:----------:|:--------------:|:----------------:|:---------------:|:-------------------:|:---------------------:|:-----:|
|
| 48 |
+
| 1.3340 | 0.0379 | 1745.3442 | 0.2794 | 0.0350 | 106.1728 | 0 |
|
| 49 |
+
| 0.2532 | 0.0380 | 138.7101 | 0.1499 | 0.0374 | 397.5620 | 1 |
|
| 50 |
+
| 0.1780 | 0.0379 | 232.5203 | 0.1403 | 0.0375 | 365.7160 | 2 |
|
| 51 |
+
| 0.1752 | 0.0379 | 236.0702 | 0.1399 | 0.0368 | 372.2610 | 3 |
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
### Framework versions
|
| 55 |
+
|
| 56 |
+
- Transformers 4.26.0
|
| 57 |
+
- TensorFlow 2.11.0
|
| 58 |
+
- Datasets 2.9.0
|
| 59 |
+
- Tokenizers 0.13.2
|
config.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation_function": "gelu_new",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"GPT2LMHeadModel"
|
| 5 |
+
],
|
| 6 |
+
"attn_pdrop": 0.1,
|
| 7 |
+
"bos_token_id": 50256,
|
| 8 |
+
"embd_pdrop": 0.1,
|
| 9 |
+
"eos_token_id": 50256,
|
| 10 |
+
"gradient_accumulation_steps": 16,
|
| 11 |
+
"initializer_range": 0.02,
|
| 12 |
+
"layer_norm_epsilon": 1e-05,
|
| 13 |
+
"learning_rate": 1e-05,
|
| 14 |
+
"lr_scheduler_type": "cosine",
|
| 15 |
+
"max_eval_steps": -1,
|
| 16 |
+
"max_train_steps": 50000,
|
| 17 |
+
"model_type": "gpt2",
|
| 18 |
+
"n_embd": 768,
|
| 19 |
+
"n_head": 12,
|
| 20 |
+
"n_inner": null,
|
| 21 |
+
"n_layer": 12,
|
| 22 |
+
"n_positions": 1024,
|
| 23 |
+
"num_warmup_steps": 2000,
|
| 24 |
+
"reorder_and_upcast_attn": false,
|
| 25 |
+
"resid_pdrop": 0.1,
|
| 26 |
+
"save_checkpoint_steps": 10000,
|
| 27 |
+
"scale_attn_by_inverse_layer_idx": false,
|
| 28 |
+
"scale_attn_weights": true,
|
| 29 |
+
"seed": 1,
|
| 30 |
+
"seq_length": 1024,
|
| 31 |
+
"shuffle_buffer": 1000,
|
| 32 |
+
"summary_activation": null,
|
| 33 |
+
"summary_first_dropout": 0.1,
|
| 34 |
+
"summary_proj_to_labels": true,
|
| 35 |
+
"summary_type": "cls_index",
|
| 36 |
+
"summary_use_proj": true,
|
| 37 |
+
"train_batch_size": 1,
|
| 38 |
+
"transformers_version": "4.26.0",
|
| 39 |
+
"use_cache": true,
|
| 40 |
+
"valid_batch_size": 1,
|
| 41 |
+
"vocab_size": 50257,
|
| 42 |
+
"weight_decay": 0.1
|
| 43 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 50256,
|
| 4 |
+
"eos_token_id": 50256,
|
| 5 |
+
"transformers_version": "4.26.0"
|
| 6 |
+
}
|
tf_model.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e81a10bed5610c4e8ab9b08a26196897b2a5c5b6197908b90984ff8c9ab650e3
|
| 3 |
+
size 497935440
|