flyingbugs commited on
Commit
dc891f7
·
verified ·
1 Parent(s): dbe19e6

Model save

Browse files
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ model_name: granite_star_1
4
+ tags:
5
+ - generated_from_trainer
6
+ - trl
7
+ - sft
8
+ licence: license
9
+ ---
10
+
11
+ # Model Card for granite_star_1
12
+
13
+ This model is a fine-tuned version of [None](https://huggingface.co/None).
14
+ It has been trained using [TRL](https://github.com/huggingface/trl).
15
+
16
+ ## Quick start
17
+
18
+ ```python
19
+ from transformers import pipeline
20
+
21
+ 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?"
22
+ generator = pipeline("text-generation", model="flyingbugs/granite_star_1", device="cuda")
23
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
24
+ print(output["generated_text"])
25
+ ```
26
+
27
+ ## Training procedure
28
+
29
+ [<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/jjh233/huggingface/runs/etuvz9ym)
30
+
31
+
32
+ This model was trained with SFT.
33
+
34
+ ### Framework versions
35
+
36
+ - TRL: 0.16.0.dev0
37
+ - Transformers: 4.49.0
38
+ - Pytorch: 2.5.1+cu121
39
+ - Datasets: 3.3.2
40
+ - Tokenizers: 0.21.0
41
+
42
+ ## Citations
43
+
44
+
45
+
46
+ Cite TRL as:
47
+
48
+ ```bibtex
49
+ @misc{vonwerra2022trl,
50
+ title = {{TRL: Transformer Reinforcement Learning}},
51
+ 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},
52
+ year = 2020,
53
+ journal = {GitHub repository},
54
+ publisher = {GitHub},
55
+ howpublished = {\url{https://github.com/huggingface/trl}}
56
+ }
57
+ ```
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 3560949186560.0,
3
+ "train_loss": 0.84272125032213,
4
+ "train_runtime": 467.2816,
5
+ "train_samples": 1000,
6
+ "train_samples_per_second": 0.308,
7
+ "train_steps_per_second": 0.019
8
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "eos_token_id": 0,
5
+ "pad_token_id": 0,
6
+ "transformers_version": "4.49.0"
7
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 3560949186560.0,
3
+ "train_loss": 0.84272125032213,
4
+ "train_runtime": 467.2816,
5
+ "train_samples": 1000,
6
+ "train_samples_per_second": 0.308,
7
+ "train_steps_per_second": 0.019
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 9,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.3333333333333333,
13
+ "grad_norm": 17.483246106883794,
14
+ "learning_rate": 5e-05,
15
+ "loss": 1.1171,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.6666666666666666,
20
+ "grad_norm": 16.76230573230985,
21
+ "learning_rate": 4.375e-05,
22
+ "loss": 1.105,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 1.0,
27
+ "grad_norm": 20.19666361790089,
28
+ "learning_rate": 3.7500000000000003e-05,
29
+ "loss": 1.3735,
30
+ "step": 3
31
+ },
32
+ {
33
+ "epoch": 1.3333333333333333,
34
+ "grad_norm": 4.070878513965605,
35
+ "learning_rate": 3.125e-05,
36
+ "loss": 0.9698,
37
+ "step": 4
38
+ },
39
+ {
40
+ "epoch": 1.6666666666666665,
41
+ "grad_norm": 3.8268942352667814,
42
+ "learning_rate": 2.5e-05,
43
+ "loss": 0.7918,
44
+ "step": 5
45
+ },
46
+ {
47
+ "epoch": 2.0,
48
+ "grad_norm": 2.6695479402984423,
49
+ "learning_rate": 1.8750000000000002e-05,
50
+ "loss": 0.6996,
51
+ "step": 6
52
+ },
53
+ {
54
+ "epoch": 2.3333333333333335,
55
+ "grad_norm": 1.737118961654641,
56
+ "learning_rate": 1.25e-05,
57
+ "loss": 0.5728,
58
+ "step": 7
59
+ },
60
+ {
61
+ "epoch": 2.6666666666666665,
62
+ "grad_norm": 1.1676394567045352,
63
+ "learning_rate": 6.25e-06,
64
+ "loss": 0.5033,
65
+ "step": 8
66
+ },
67
+ {
68
+ "epoch": 3.0,
69
+ "grad_norm": 0.9097109004604421,
70
+ "learning_rate": 0.0,
71
+ "loss": 0.4516,
72
+ "step": 9
73
+ },
74
+ {
75
+ "epoch": 3.0,
76
+ "step": 9,
77
+ "total_flos": 3560949186560.0,
78
+ "train_loss": 0.84272125032213,
79
+ "train_runtime": 467.2816,
80
+ "train_samples_per_second": 0.308,
81
+ "train_steps_per_second": 0.019
82
+ }
83
+ ],
84
+ "logging_steps": 1,
85
+ "max_steps": 9,
86
+ "num_input_tokens_seen": 0,
87
+ "num_train_epochs": 3,
88
+ "save_steps": 500,
89
+ "stateful_callbacks": {
90
+ "TrainerControl": {
91
+ "args": {
92
+ "should_epoch_stop": false,
93
+ "should_evaluate": false,
94
+ "should_log": false,
95
+ "should_save": true,
96
+ "should_training_stop": true
97
+ },
98
+ "attributes": {}
99
+ }
100
+ },
101
+ "total_flos": 3560949186560.0,
102
+ "train_batch_size": 1,
103
+ "trial_name": null,
104
+ "trial_params": null
105
+ }