akseljoonas HF Staff commited on
Commit
0fccd6c
·
verified ·
1 Parent(s): a7a8fcc

Model save

Browse files
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen2.5-3B-Instruct
3
+ library_name: transformers
4
+ model_name: Agentic-Qwen-3B-e7-lr2-b96-no-wd
5
+ tags:
6
+ - generated_from_trainer
7
+ - trl
8
+ - sft
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for Agentic-Qwen-3B-e7-lr2-b96-no-wd
13
+
14
+ This model is a fine-tuned version of [Qwen/Qwen2.5-3B-Instruct](https://huggingface.co/Qwen/Qwen2.5-3B-Instruct).
15
+ It has been trained using [TRL](https://github.com/huggingface/trl).
16
+
17
+ ## Quick start
18
+
19
+ ```python
20
+ from transformers import pipeline
21
+
22
+ question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
23
+ generator = pipeline("text-generation", model="akseljoonas/Agentic-Qwen-3B-e7-lr2-b96-no-wd", device="cuda")
24
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
25
+ print(output["generated_text"])
26
+ ```
27
+
28
+ ## Training procedure
29
+
30
+ [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/akseljoonas-university-of-groningen/huggingface/runs/ss61j0ns)
31
+
32
+
33
+ This model was trained with SFT.
34
+
35
+ ### Framework versions
36
+
37
+ - TRL: 0.16.0
38
+ - Transformers: 4.52.4
39
+ - Pytorch: 2.6.0
40
+ - Datasets: 3.6.0
41
+ - Tokenizers: 0.21.1
42
+
43
+ ## Citations
44
+
45
+
46
+
47
+ Cite TRL as:
48
+
49
+ ```bibtex
50
+ @misc{vonwerra2022trl,
51
+ title = {{TRL: Transformer Reinforcement Learning}},
52
+ author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallouédec},
53
+ year = 2020,
54
+ journal = {GitHub repository},
55
+ publisher = {GitHub},
56
+ howpublished = {\url{https://github.com/huggingface/trl}}
57
+ }
58
+ ```
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 106682420035584.0,
3
+ "train_loss": 0.6038688605739957,
4
+ "train_runtime": 1070.0148,
5
+ "train_samples": 1845,
6
+ "train_samples_per_second": 3.474,
7
+ "train_steps_per_second": 0.039
8
+ }
generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 151645,
6
+ 151643
7
+ ],
8
+ "pad_token_id": 151643,
9
+ "repetition_penalty": 1.05,
10
+ "temperature": 0.7,
11
+ "top_k": 20,
12
+ "top_p": 0.8,
13
+ "transformers_version": "4.52.4"
14
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 106682420035584.0,
3
+ "train_loss": 0.6038688605739957,
4
+ "train_runtime": 1070.0148,
5
+ "train_samples": 1845,
6
+ "train_samples_per_second": 3.474,
7
+ "train_steps_per_second": 0.039
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 7.0,
6
+ "eval_steps": 500,
7
+ "global_step": 42,
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.8955223880597015,
14
+ "grad_norm": 0.900656714392764,
15
+ "learning_rate": 1.6000000000000003e-05,
16
+ "loss": 0.932,
17
+ "mean_token_accuracy": 0.8076159665981929,
18
+ "num_tokens": 9406298.0,
19
+ "step": 5
20
+ },
21
+ {
22
+ "epoch": 1.716417910447761,
23
+ "grad_norm": 0.4764308318290881,
24
+ "learning_rate": 1.9428774454610845e-05,
25
+ "loss": 0.7128,
26
+ "mean_token_accuracy": 0.8432981382716785,
27
+ "num_tokens": 17339132.0,
28
+ "step": 10
29
+ },
30
+ {
31
+ "epoch": 2.5373134328358207,
32
+ "grad_norm": 0.29201950249687686,
33
+ "learning_rate": 1.7219560939545246e-05,
34
+ "loss": 0.6113,
35
+ "mean_token_accuracy": 0.864370275627483,
36
+ "num_tokens": 25334534.0,
37
+ "step": 15
38
+ },
39
+ {
40
+ "epoch": 3.3582089552238807,
41
+ "grad_norm": 0.20142965457472725,
42
+ "learning_rate": 1.3728564777803089e-05,
43
+ "loss": 0.538,
44
+ "mean_token_accuracy": 0.8771601741964167,
45
+ "num_tokens": 33275501.0,
46
+ "step": 20
47
+ },
48
+ {
49
+ "epoch": 4.17910447761194,
50
+ "grad_norm": 0.17437828908394032,
51
+ "learning_rate": 9.57558796803852e-06,
52
+ "loss": 0.5454,
53
+ "mean_token_accuracy": 0.8782916686751626,
54
+ "num_tokens": 41225062.0,
55
+ "step": 25
56
+ },
57
+ {
58
+ "epoch": 5.0,
59
+ "grad_norm": 0.22117380793963837,
60
+ "learning_rate": 5.497962551823266e-06,
61
+ "loss": 0.527,
62
+ "mean_token_accuracy": 0.8798674431714144,
63
+ "num_tokens": 49232938.0,
64
+ "step": 30
65
+ },
66
+ {
67
+ "epoch": 5.895522388059701,
68
+ "grad_norm": 0.14468869535451614,
69
+ "learning_rate": 2.2196424568156073e-06,
70
+ "loss": 0.5209,
71
+ "mean_token_accuracy": 0.8800060609976451,
72
+ "num_tokens": 58665081.0,
73
+ "step": 35
74
+ },
75
+ {
76
+ "epoch": 6.7164179104477615,
77
+ "grad_norm": 0.12750932530621908,
78
+ "learning_rate": 3.226705306650113e-07,
79
+ "loss": 0.4861,
80
+ "mean_token_accuracy": 0.8856360175392844,
81
+ "num_tokens": 66624412.0,
82
+ "step": 40
83
+ },
84
+ {
85
+ "epoch": 7.0,
86
+ "mean_token_accuracy": 0.8826957188154522,
87
+ "num_tokens": 68894483.0,
88
+ "step": 42,
89
+ "total_flos": 106682420035584.0,
90
+ "train_loss": 0.6038688605739957,
91
+ "train_runtime": 1070.0148,
92
+ "train_samples_per_second": 3.474,
93
+ "train_steps_per_second": 0.039
94
+ }
95
+ ],
96
+ "logging_steps": 5,
97
+ "max_steps": 42,
98
+ "num_input_tokens_seen": 0,
99
+ "num_train_epochs": 7,
100
+ "save_steps": 500,
101
+ "stateful_callbacks": {
102
+ "TrainerControl": {
103
+ "args": {
104
+ "should_epoch_stop": false,
105
+ "should_evaluate": false,
106
+ "should_log": false,
107
+ "should_save": true,
108
+ "should_training_stop": true
109
+ },
110
+ "attributes": {}
111
+ }
112
+ },
113
+ "total_flos": 106682420035584.0,
114
+ "train_batch_size": 1,
115
+ "trial_name": null,
116
+ "trial_params": null
117
+ }