Wonder-Griffin
commited on
End of training
Browse files- README.md +47 -51
- config.json +63 -4
- model.safetensors +2 -2
- training_args.bin +3 -0
README.md
CHANGED
@@ -1,51 +1,47 @@
|
|
1 |
-
---
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
##
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
-
|
36 |
-
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
prompt = "Once upon a time"
|
49 |
-
inputs = tokenizer(prompt, return_tensors="pt")
|
50 |
-
outputs = model.generate(inputs['input_ids'], max_length=50, pad_token_id=tokenizer.eos_token_id)
|
51 |
-
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
|
|
1 |
+
---
|
2 |
+
base_model: Wonder-Griffin/JudgeLLM2
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
model-index:
|
6 |
+
- name: Judge-GPT2
|
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 |
+
# Judge-GPT2
|
14 |
+
|
15 |
+
This model is a fine-tuned version of [Wonder-Griffin/JudgeLLM2](https://huggingface.co/Wonder-Griffin/JudgeLLM2) on an unknown dataset.
|
16 |
+
|
17 |
+
## Model description
|
18 |
+
|
19 |
+
More information needed
|
20 |
+
|
21 |
+
## Intended uses & limitations
|
22 |
+
|
23 |
+
More information needed
|
24 |
+
|
25 |
+
## Training and evaluation data
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Training procedure
|
30 |
+
|
31 |
+
### Training hyperparameters
|
32 |
+
|
33 |
+
The following hyperparameters were used during training:
|
34 |
+
- learning_rate: 5e-05
|
35 |
+
- train_batch_size: 8
|
36 |
+
- eval_batch_size: 8
|
37 |
+
- seed: 42
|
38 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
39 |
+
- lr_scheduler_type: linear
|
40 |
+
- num_epochs: 3.0
|
41 |
+
|
42 |
+
### Framework versions
|
43 |
+
|
44 |
+
- Transformers 4.43.3
|
45 |
+
- Pytorch 2.4.0+cu124
|
46 |
+
- Datasets 2.20.0
|
47 |
+
- Tokenizers 0.19.1
|
|
|
|
|
|
|
|
config.json
CHANGED
@@ -1,15 +1,21 @@
|
|
1 |
{
|
|
|
|
|
|
|
2 |
"architectures": [
|
3 |
-
"
|
4 |
],
|
|
|
5 |
"batch_size": 32,
|
6 |
"bias": true,
|
7 |
"block_size": 512,
|
|
|
8 |
"dim_feedforward": 3072,
|
9 |
"dropout": 0.1,
|
|
|
|
|
10 |
"ff_expansion_factor": 4,
|
11 |
"hidden_act": "gelu",
|
12 |
-
"hidden_size": 768,
|
13 |
"id2label": {
|
14 |
"0": "LABEL_0",
|
15 |
"1": "LABEL_1",
|
@@ -17,6 +23,8 @@
|
|
17 |
"3": "LABEL_3",
|
18 |
"4": "LABEL_4"
|
19 |
},
|
|
|
|
|
20 |
"label2id": {
|
21 |
"LABEL_0": 0,
|
22 |
"LABEL_1": 1,
|
@@ -25,19 +33,70 @@
|
|
25 |
"LABEL_4": 4
|
26 |
},
|
27 |
"label_smoothing": 0.1,
|
|
|
28 |
"learning_rate": 0.0003,
|
29 |
"log_interval": 100,
|
30 |
"max_grad_norm": 1.0,
|
31 |
-
"max_position_embeddings": 512,
|
32 |
"model_type": "gpt2",
|
33 |
"n_embd": 768,
|
34 |
"n_head": 12,
|
|
|
35 |
"n_layer": 12,
|
|
|
36 |
"output_dir": "C:/Users/wonde/output",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
"torch_dtype": "float32",
|
38 |
"total_steps": 10000,
|
39 |
"transformers_version": "4.43.3",
|
40 |
-
"
|
|
|
41 |
"warmup_steps": 1000,
|
42 |
"weight_decay": 0.01
|
43 |
}
|
|
|
1 |
{
|
2 |
+
"_name_": "Judge-GPT2",
|
3 |
+
"_name_or_path": "Wonder-Griffin/JudgeLLM2",
|
4 |
+
"activation_function": "gelu_new",
|
5 |
"architectures": [
|
6 |
+
"GPT2LMHeadModel"
|
7 |
],
|
8 |
+
"attn_pdrop": 0.1,
|
9 |
"batch_size": 32,
|
10 |
"bias": true,
|
11 |
"block_size": 512,
|
12 |
+
"bos_token_id": 50256,
|
13 |
"dim_feedforward": 3072,
|
14 |
"dropout": 0.1,
|
15 |
+
"embd_pdrop": 0.1,
|
16 |
+
"eos_token_id": 50256,
|
17 |
"ff_expansion_factor": 4,
|
18 |
"hidden_act": "gelu",
|
|
|
19 |
"id2label": {
|
20 |
"0": "LABEL_0",
|
21 |
"1": "LABEL_1",
|
|
|
23 |
"3": "LABEL_3",
|
24 |
"4": "LABEL_4"
|
25 |
},
|
26 |
+
"inference_mode": true,
|
27 |
+
"initializer_range": 0.02,
|
28 |
"label2id": {
|
29 |
"LABEL_0": 0,
|
30 |
"LABEL_1": 1,
|
|
|
33 |
"LABEL_4": 4
|
34 |
},
|
35 |
"label_smoothing": 0.1,
|
36 |
+
"layer_norm_epsilon": 1e-05,
|
37 |
"learning_rate": 0.0003,
|
38 |
"log_interval": 100,
|
39 |
"max_grad_norm": 1.0,
|
|
|
40 |
"model_type": "gpt2",
|
41 |
"n_embd": 768,
|
42 |
"n_head": 12,
|
43 |
+
"n_inner": null,
|
44 |
"n_layer": 12,
|
45 |
+
"n_positions": 512,
|
46 |
"output_dir": "C:/Users/wonde/output",
|
47 |
+
"pretrained_weights": "Wonder-Griffin/Judge-GPT2",
|
48 |
+
"reorder_and_upcast_attn": false,
|
49 |
+
"resid_pdrop": 0.1,
|
50 |
+
"scale_attn_by_inverse_layer_idx": false,
|
51 |
+
"scale_attn_weights": true,
|
52 |
+
"summary_activation": null,
|
53 |
+
"summary_first_dropout": 0.1,
|
54 |
+
"summary_proj_to_labels": true,
|
55 |
+
"summary_type": "cls_index",
|
56 |
+
"summary_use_proj": true,
|
57 |
+
"task_heads": {
|
58 |
+
"classifier_head": {
|
59 |
+
"params": {
|
60 |
+
"num_labels": 5
|
61 |
+
},
|
62 |
+
"type": "JudgeClassifier"
|
63 |
+
},
|
64 |
+
"lm_head": {
|
65 |
+
"params": {
|
66 |
+
"vocab_size": 50257
|
67 |
+
},
|
68 |
+
"type": "JudgeCasualLMHead"
|
69 |
+
},
|
70 |
+
"qa_head": {
|
71 |
+
"params": {
|
72 |
+
"num_labels": 2
|
73 |
+
},
|
74 |
+
"type": "JudgeWithQA"
|
75 |
+
}
|
76 |
+
},
|
77 |
+
"task_specific_params": {
|
78 |
+
"question-answering": {
|
79 |
+
"max_answer_length": 100
|
80 |
+
},
|
81 |
+
"sequence-classification": {
|
82 |
+
"eval_steps": 500
|
83 |
+
},
|
84 |
+
"text-generation": {
|
85 |
+
"do_sample": true,
|
86 |
+
"max_length": 100
|
87 |
+
}
|
88 |
+
},
|
89 |
+
"tokenizer": {
|
90 |
+
"params": {
|
91 |
+
"vocab_size": 50257
|
92 |
+
},
|
93 |
+
"type": "AutoTokenizer"
|
94 |
+
},
|
95 |
"torch_dtype": "float32",
|
96 |
"total_steps": 10000,
|
97 |
"transformers_version": "4.43.3",
|
98 |
+
"use_cache": true,
|
99 |
+
"vocab_size": 30522,
|
100 |
"warmup_steps": 1000,
|
101 |
"weight_decay": 0.01
|
102 |
}
|
model.safetensors
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:6226a0b17d9cd2d41487623616804e90a3f3cfd31369dc6f676b1e7f4b47fa86
|
3 |
+
size 435575424
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3d66cf00c5d39fe4a0b6a597cc25e6b74ee22f8f2790b715f0d83753841f413a
|
3 |
+
size 5176
|