anhnv125/reward-model
Browse files- README.md +79 -0
- config.json +41 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +6 -0
- tokenizer.json +0 -0
- tokenizer_config.json +20 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: ChaiML/reward_models_100_170000000_cp_498032
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
model-index:
|
6 |
+
- name: reward-model
|
7 |
+
results: []
|
8 |
+
---
|
9 |
+
|
10 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
11 |
+
should probably proofread and complete it, then remove this comment. -->
|
12 |
+
|
13 |
+
# reward-model
|
14 |
+
|
15 |
+
This model is a fine-tuned version of [ChaiML/reward_models_100_170000000_cp_498032](https://huggingface.co/ChaiML/reward_models_100_170000000_cp_498032) on the None dataset.
|
16 |
+
It achieves the following results on the evaluation set:
|
17 |
+
- Loss: 0.6275
|
18 |
+
|
19 |
+
## Model description
|
20 |
+
|
21 |
+
More information needed
|
22 |
+
|
23 |
+
## Intended uses & limitations
|
24 |
+
|
25 |
+
More information needed
|
26 |
+
|
27 |
+
## Training and evaluation data
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Training procedure
|
32 |
+
|
33 |
+
### Training hyperparameters
|
34 |
+
|
35 |
+
The following hyperparameters were used during training:
|
36 |
+
- learning_rate: 1e-06
|
37 |
+
- train_batch_size: 16
|
38 |
+
- eval_batch_size: 16
|
39 |
+
- seed: 7
|
40 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
41 |
+
- lr_scheduler_type: cosine
|
42 |
+
- lr_scheduler_warmup_steps: 200
|
43 |
+
- num_epochs: 1
|
44 |
+
|
45 |
+
### Training results
|
46 |
+
|
47 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
48 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
49 |
+
| 0.6911 | 0.04 | 200 | 0.6674 |
|
50 |
+
| 0.654 | 0.09 | 400 | 0.6472 |
|
51 |
+
| 0.6654 | 0.13 | 600 | 0.6429 |
|
52 |
+
| 0.6381 | 0.17 | 800 | 0.6391 |
|
53 |
+
| 0.6546 | 0.21 | 1000 | 0.6381 |
|
54 |
+
| 0.6575 | 0.26 | 1200 | 0.6352 |
|
55 |
+
| 0.6458 | 0.3 | 1400 | 0.6344 |
|
56 |
+
| 0.6574 | 0.34 | 1600 | 0.6335 |
|
57 |
+
| 0.6409 | 0.39 | 1800 | 0.6314 |
|
58 |
+
| 0.6255 | 0.43 | 2000 | 0.6306 |
|
59 |
+
| 0.6342 | 0.47 | 2200 | 0.6300 |
|
60 |
+
| 0.6117 | 0.51 | 2400 | 0.6298 |
|
61 |
+
| 0.6651 | 0.56 | 2600 | 0.6307 |
|
62 |
+
| 0.6624 | 0.6 | 2800 | 0.6294 |
|
63 |
+
| 0.6213 | 0.64 | 3000 | 0.6286 |
|
64 |
+
| 0.6486 | 0.68 | 3200 | 0.6278 |
|
65 |
+
| 0.6258 | 0.73 | 3400 | 0.6277 |
|
66 |
+
| 0.6336 | 0.77 | 3600 | 0.6278 |
|
67 |
+
| 0.5842 | 0.81 | 3800 | 0.6277 |
|
68 |
+
| 0.6748 | 0.86 | 4000 | 0.6275 |
|
69 |
+
| 0.5985 | 0.9 | 4200 | 0.6275 |
|
70 |
+
| 0.6207 | 0.94 | 4400 | 0.6275 |
|
71 |
+
| 0.5901 | 0.98 | 4600 | 0.6275 |
|
72 |
+
|
73 |
+
|
74 |
+
### Framework versions
|
75 |
+
|
76 |
+
- Transformers 4.34.1
|
77 |
+
- Pytorch 2.0.1+cu117
|
78 |
+
- Datasets 2.14.6
|
79 |
+
- Tokenizers 0.14.1
|
config.json
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "ChaiML/reward_models_100_170000000_cp_498032",
|
3 |
+
"activation_function": "gelu_new",
|
4 |
+
"architectures": [
|
5 |
+
"GPT2ForSequenceClassification"
|
6 |
+
],
|
7 |
+
"attn_pdrop": 0.1,
|
8 |
+
"bos_token_id": 50256,
|
9 |
+
"embd_pdrop": 0.1,
|
10 |
+
"eos_token_id": 50256,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"layer_norm_epsilon": 1e-05,
|
13 |
+
"model_type": "gpt2",
|
14 |
+
"n_ctx": 1024,
|
15 |
+
"n_embd": 768,
|
16 |
+
"n_head": 12,
|
17 |
+
"n_inner": null,
|
18 |
+
"n_layer": 12,
|
19 |
+
"n_positions": 1024,
|
20 |
+
"pad_token_id": 50256,
|
21 |
+
"problem_type": "single_label_classification",
|
22 |
+
"reorder_and_upcast_attn": false,
|
23 |
+
"resid_pdrop": 0.1,
|
24 |
+
"scale_attn_by_inverse_layer_idx": false,
|
25 |
+
"scale_attn_weights": true,
|
26 |
+
"summary_activation": null,
|
27 |
+
"summary_first_dropout": 0.1,
|
28 |
+
"summary_proj_to_labels": true,
|
29 |
+
"summary_type": "cls_index",
|
30 |
+
"summary_use_proj": true,
|
31 |
+
"task_specific_params": {
|
32 |
+
"text-generation": {
|
33 |
+
"do_sample": true,
|
34 |
+
"max_length": 50
|
35 |
+
}
|
36 |
+
},
|
37 |
+
"torch_dtype": "float32",
|
38 |
+
"transformers_version": "4.34.1",
|
39 |
+
"use_cache": true,
|
40 |
+
"vocab_size": 50257
|
41 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7c77f3c439e79b61353c7d208bb56505daf62353607e797738738c1ca330a015
|
3 |
+
size 497780432
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:513e7d7e373ae76c6639bb27cab878f2d1198dd9669f21b92ce1e737a81403af
|
3 |
+
size 497813601
|
special_tokens_map.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<|endoftext|>",
|
3 |
+
"eos_token": "<|endoftext|>",
|
4 |
+
"pad_token": "<|endoftext|>",
|
5 |
+
"unk_token": "<|endoftext|>"
|
6 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"50256": {
|
5 |
+
"content": "<|endoftext|>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": false,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
}
|
12 |
+
},
|
13 |
+
"bos_token": "<|endoftext|>",
|
14 |
+
"clean_up_tokenization_spaces": true,
|
15 |
+
"eos_token": "<|endoftext|>",
|
16 |
+
"model_max_length": 1024,
|
17 |
+
"pad_token": "<|endoftext|>",
|
18 |
+
"tokenizer_class": "GPT2Tokenizer",
|
19 |
+
"unk_token": "<|endoftext|>"
|
20 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2476ce46368e55f2548101f9c52721bb520a3d61335f0cb050bcde326b7c5640
|
3 |
+
size 4027
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|