Samtari commited on
Commit
a39ad07
·
verified ·
1 Parent(s): c515e71

Model save

Browse files
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: mistralai/Mistral-7B-v0.1
3
+ library_name: transformers
4
+ model_name: zephyr-7b-sft-qlora
5
+ tags:
6
+ - generated_from_trainer
7
+ - trl
8
+ - sft
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for zephyr-7b-sft-qlora
13
+
14
+ This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1).
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="Samtari/zephyr-7b-sft-qlora", 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
+
31
+
32
+ This model was trained with SFT.
33
+
34
+ ### Framework versions
35
+
36
+ - TRL: 0.12.2
37
+ - Transformers: 4.46.3
38
+ - Pytorch: 2.6.0
39
+ - Datasets: 3.5.0
40
+ - Tokenizers: 0.20.3
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,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 1.1953201746018304e+16,
4
+ "train_loss": 1.045757819624508,
5
+ "train_runtime": 10046.7574,
6
+ "train_samples": 207,
7
+ "train_samples_per_second": 0.014,
8
+ "train_steps_per_second": 0.002
9
+ }
runs/Apr21_13-36-55_KnowledgeHub/events.out.tfevents.1745257025.KnowledgeHub.278607.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5519b51e84f703fcd1d99cc95860cd24f4276e4892e44b51c6496af97700b90a
3
- size 7472
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e16ee85fed1be1f4473add6765dffd34036ab6fe6416dc1a12b20af022413cc
3
+ size 8086
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 1.1953201746018304e+16,
4
+ "train_loss": 1.045757819624508,
5
+ "train_runtime": 10046.7574,
6
+ "train_samples": 207,
7
+ "train_samples_per_second": 0.014,
8
+ "train_steps_per_second": 0.002
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 17,
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.058823529411764705,
13
+ "grad_norm": 0.8823225498199463,
14
+ "learning_rate": 0.0001,
15
+ "loss": 1.1403,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.29411764705882354,
20
+ "grad_norm": 0.6753513813018799,
21
+ "learning_rate": 0.00018090169943749476,
22
+ "loss": 1.0209,
23
+ "step": 5
24
+ },
25
+ {
26
+ "epoch": 0.5882352941176471,
27
+ "grad_norm": 0.499729186296463,
28
+ "learning_rate": 8.954715367323468e-05,
29
+ "loss": 1.0693,
30
+ "step": 10
31
+ },
32
+ {
33
+ "epoch": 0.8823529411764706,
34
+ "grad_norm": 0.993525505065918,
35
+ "learning_rate": 8.645454235739903e-06,
36
+ "loss": 1.0604,
37
+ "step": 15
38
+ },
39
+ {
40
+ "epoch": 1.0,
41
+ "eval_loss": 1.0393339395523071,
42
+ "eval_runtime": 9748.8038,
43
+ "eval_samples_per_second": 1.575,
44
+ "eval_steps_per_second": 0.197,
45
+ "step": 17
46
+ },
47
+ {
48
+ "epoch": 1.0,
49
+ "step": 17,
50
+ "total_flos": 1.1953201746018304e+16,
51
+ "train_loss": 1.045757819624508,
52
+ "train_runtime": 10046.7574,
53
+ "train_samples_per_second": 0.014,
54
+ "train_steps_per_second": 0.002
55
+ }
56
+ ],
57
+ "logging_steps": 5,
58
+ "max_steps": 17,
59
+ "num_input_tokens_seen": 0,
60
+ "num_train_epochs": 1,
61
+ "save_steps": 100,
62
+ "stateful_callbacks": {
63
+ "TrainerControl": {
64
+ "args": {
65
+ "should_epoch_stop": false,
66
+ "should_evaluate": false,
67
+ "should_log": false,
68
+ "should_save": true,
69
+ "should_training_stop": true
70
+ },
71
+ "attributes": {}
72
+ }
73
+ },
74
+ "total_flos": 1.1953201746018304e+16,
75
+ "train_batch_size": 4,
76
+ "trial_name": null,
77
+ "trial_params": null
78
+ }