odoom commited on
Commit
23f6f1c
·
verified ·
1 Parent(s): d09437c

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,78 +1,62 @@
1
  ---
2
- library_name: peft
3
  base_model: mistralai/Mistral-7B-Instruct-v0.2
4
- license: apache-2.0
 
5
  tags:
6
- - nixpkgs
7
- - security
8
- - lora
9
- - nix
10
- - patch-generation
11
- datasets:
12
- - odoom/nixpkgs-security-patches
13
  ---
14
 
15
- # nixpkgs-security-lora
16
-
17
- LoRA adapter for generating nixpkgs security patches. Fine-tuned on [odoom/nixpkgs-security-patches](https://huggingface.co/datasets/odoom/nixpkgs-security-patches) — 1,273 real security fixes from the NixOS/nixpkgs repository.
18
 
19
- ## Model Details
 
20
 
21
- - **Base model**: [Mistral 7B Instruct v0.2](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2)
22
- - **Method**: QLoRA (4-bit NF4 quantization + LoRA rank 32)
23
- - **Target**: Cloudflare Workers AI `@cf/mistral/mistral-7b-instruct-v0.2-lora`
24
- - **Adapter size**: 161 MB
25
 
26
- ## Training
27
-
28
- - **LoRA rank**: 32, alpha: 64, dropout: 0.05
29
- - **Target modules**: q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
30
- - **Epochs**: 3
31
- - **Effective batch size**: 16 (batch 1 × gradient accumulation 16)
32
- - **Learning rate**: 2e-4, cosine schedule
33
- - **Max sequence length**: 4,096 tokens
34
- - **Hardware**: NVIDIA L4 GPU (HuggingFace Jobs)
35
 
36
- ## Training Data
 
 
 
 
37
 
38
- 1,273 training examples and 142 eval examples derived from merged security PRs in [NixOS/nixpkgs](https://github.com/NixOS/nixpkgs). Each example pairs a CVE description with the actual nix patch diff that fixed it.
39
 
40
- Quality filters applied:
41
- - Only merged PRs with security-related titles (CVE, vulnerability, security fix)
42
- - Removed examples using deprecated `sha256` hash format (modern nixpkgs uses SRI hashes)
43
- - Removed trivially small diffs (< 3 changed lines)
44
 
45
- ## Intended Use
46
 
47
- This adapter is designed for the [Vulnpatch](https://github.com/Vulnpatch) automated security patch agent. Given a CVE description and affected package info, it generates candidate nix package patches.
48
 
49
- ## Usage with Cloudflare Workers AI
50
 
51
- ```javascript
52
- const response = await env.AI.run(
53
- "@cf/mistral/mistral-7b-instruct-v0.2-lora",
54
- {
55
- messages: [
56
- { role: "user", content: "Fix CVE-2024-1234 in package foo..." }
57
- ],
58
- lora: "nixpkgs-security-lora"
59
- }
60
- );
61
- ```
62
 
63
- ## Usage with Transformers + PEFT
 
 
 
 
 
64
 
65
- ```python
66
- from transformers import AutoModelForCausalLM, AutoTokenizer
67
- from peft import PeftModel
68
 
69
- model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2")
70
- model = PeftModel.from_pretrained(model, "odoom/nixpkgs-security-lora")
71
- tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2")
72
- ```
73
 
74
- ## Limitations
75
 
76
- - Specialized for nixpkgs package expressions — not a general code model
77
- - Training data is Nix-specific; won't generalize to other package managers
78
- - May produce patches that need manual review for correctness
 
 
 
 
 
 
 
 
 
1
  ---
 
2
  base_model: mistralai/Mistral-7B-Instruct-v0.2
3
+ library_name: peft
4
+ model_name: lora-output
5
  tags:
6
+ - base_model:adapter:mistralai/Mistral-7B-Instruct-v0.2
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ licence: license
12
+ pipeline_tag: text-generation
13
  ---
14
 
15
+ # Model Card for lora-output
 
 
16
 
17
+ This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.2](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2).
18
+ It has been trained using [TRL](https://github.com/huggingface/trl).
19
 
20
+ ## Quick start
 
 
 
21
 
22
+ ```python
23
+ from transformers import pipeline
 
 
 
 
 
 
 
24
 
25
+ 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?"
26
+ generator = pipeline("text-generation", model="None", device="cuda")
27
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
28
+ print(output["generated_text"])
29
+ ```
30
 
31
+ ## Training procedure
32
 
33
+
 
 
 
34
 
 
35
 
 
36
 
37
+ This model was trained with SFT.
38
 
39
+ ### Framework versions
 
 
 
 
 
 
 
 
 
 
40
 
41
+ - PEFT 0.18.1
42
+ - TRL: 0.29.0
43
+ - Transformers: 5.2.0
44
+ - Pytorch: 2.10.0
45
+ - Datasets: 4.6.1
46
+ - Tokenizers: 0.22.2
47
 
48
+ ## Citations
 
 
49
 
 
 
 
 
50
 
 
51
 
52
+ Cite TRL as:
53
+
54
+ ```bibtex
55
+ @software{vonwerra2020trl,
56
+ title = {{TRL: Transformers Reinforcement Learning}},
57
+ author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin},
58
+ license = {Apache-2.0},
59
+ url = {https://github.com/huggingface/trl},
60
+ year = {2020}
61
+ }
62
+ ```
adapter_config.json CHANGED
@@ -29,13 +29,13 @@
29
  "rank_pattern": {},
30
  "revision": null,
31
  "target_modules": [
32
- "v_proj",
33
  "o_proj",
34
- "down_proj",
35
  "k_proj",
36
- "q_proj",
37
  "gate_proj",
38
- "up_proj"
 
 
 
39
  ],
40
  "target_parameters": null,
41
  "task_type": "CAUSAL_LM",
 
29
  "rank_pattern": {},
30
  "revision": null,
31
  "target_modules": [
 
32
  "o_proj",
 
33
  "k_proj",
 
34
  "gate_proj",
35
+ "v_proj",
36
+ "up_proj",
37
+ "q_proj",
38
+ "down_proj"
39
  ],
40
  "target_parameters": null,
41
  "task_type": "CAUSAL_LM",
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:72b013d01342db5b92eb257e6838fd6f864be365af81b172975a1a6377b50672
3
  size 167832688
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6c7bb4264624b032025acd56379bb1473d0830a49293d310d9f127ef5881a39
3
  size 167832688
checkpoint-111/README.md ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: mistralai/Mistral-7B-Instruct-v0.2
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:mistralai/Mistral-7B-Instruct-v0.2
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ ---
12
+
13
+ # Model Card for Model ID
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+
19
+ ## Model Details
20
+
21
+ ### Model Description
22
+
23
+ <!-- Provide a longer summary of what this model is. -->
24
+
25
+
26
+
27
+ - **Developed by:** [More Information Needed]
28
+ - **Funded by [optional]:** [More Information Needed]
29
+ - **Shared by [optional]:** [More Information Needed]
30
+ - **Model type:** [More Information Needed]
31
+ - **Language(s) (NLP):** [More Information Needed]
32
+ - **License:** [More Information Needed]
33
+ - **Finetuned from model [optional]:** [More Information Needed]
34
+
35
+ ### Model Sources [optional]
36
+
37
+ <!-- Provide the basic links for the model. -->
38
+
39
+ - **Repository:** [More Information Needed]
40
+ - **Paper [optional]:** [More Information Needed]
41
+ - **Demo [optional]:** [More Information Needed]
42
+
43
+ ## Uses
44
+
45
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
46
+
47
+ ### Direct Use
48
+
49
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
50
+
51
+ [More Information Needed]
52
+
53
+ ### Downstream Use [optional]
54
+
55
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
56
+
57
+ [More Information Needed]
58
+
59
+ ### Out-of-Scope Use
60
+
61
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
62
+
63
+ [More Information Needed]
64
+
65
+ ## Bias, Risks, and Limitations
66
+
67
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
68
+
69
+ [More Information Needed]
70
+
71
+ ### Recommendations
72
+
73
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
74
+
75
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
76
+
77
+ ## How to Get Started with the Model
78
+
79
+ Use the code below to get started with the model.
80
+
81
+ [More Information Needed]
82
+
83
+ ## Training Details
84
+
85
+ ### Training Data
86
+
87
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
88
+
89
+ [More Information Needed]
90
+
91
+ ### Training Procedure
92
+
93
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
94
+
95
+ #### Preprocessing [optional]
96
+
97
+ [More Information Needed]
98
+
99
+
100
+ #### Training Hyperparameters
101
+
102
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
103
+
104
+ #### Speeds, Sizes, Times [optional]
105
+
106
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
107
+
108
+ [More Information Needed]
109
+
110
+ ## Evaluation
111
+
112
+ <!-- This section describes the evaluation protocols and provides the results. -->
113
+
114
+ ### Testing Data, Factors & Metrics
115
+
116
+ #### Testing Data
117
+
118
+ <!-- This should link to a Dataset Card if possible. -->
119
+
120
+ [More Information Needed]
121
+
122
+ #### Factors
123
+
124
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
125
+
126
+ [More Information Needed]
127
+
128
+ #### Metrics
129
+
130
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
131
+
132
+ [More Information Needed]
133
+
134
+ ### Results
135
+
136
+ [More Information Needed]
137
+
138
+ #### Summary
139
+
140
+
141
+
142
+ ## Model Examination [optional]
143
+
144
+ <!-- Relevant interpretability work for the model goes here -->
145
+
146
+ [More Information Needed]
147
+
148
+ ## Environmental Impact
149
+
150
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
151
+
152
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
153
+
154
+ - **Hardware Type:** [More Information Needed]
155
+ - **Hours used:** [More Information Needed]
156
+ - **Cloud Provider:** [More Information Needed]
157
+ - **Compute Region:** [More Information Needed]
158
+ - **Carbon Emitted:** [More Information Needed]
159
+
160
+ ## Technical Specifications [optional]
161
+
162
+ ### Model Architecture and Objective
163
+
164
+ [More Information Needed]
165
+
166
+ ### Compute Infrastructure
167
+
168
+ [More Information Needed]
169
+
170
+ #### Hardware
171
+
172
+ [More Information Needed]
173
+
174
+ #### Software
175
+
176
+ [More Information Needed]
177
+
178
+ ## Citation [optional]
179
+
180
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
181
+
182
+ **BibTeX:**
183
+
184
+ [More Information Needed]
185
+
186
+ **APA:**
187
+
188
+ [More Information Needed]
189
+
190
+ ## Glossary [optional]
191
+
192
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
193
+
194
+ [More Information Needed]
195
+
196
+ ## More Information [optional]
197
+
198
+ [More Information Needed]
199
+
200
+ ## Model Card Authors [optional]
201
+
202
+ [More Information Needed]
203
+
204
+ ## Model Card Contact
205
+
206
+ [More Information Needed]
207
+ ### Framework versions
208
+
209
+ - PEFT 0.18.1
checkpoint-111/adapter_config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "mistralai/Mistral-7B-Instruct-v0.2",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "layer_replication": null,
16
+ "layers_pattern": null,
17
+ "layers_to_transform": null,
18
+ "loftq_config": {},
19
+ "lora_alpha": 64,
20
+ "lora_bias": false,
21
+ "lora_dropout": 0.05,
22
+ "megatron_config": null,
23
+ "megatron_core": "megatron.core",
24
+ "modules_to_save": null,
25
+ "peft_type": "LORA",
26
+ "peft_version": "0.18.1",
27
+ "qalora_group_size": 16,
28
+ "r": 32,
29
+ "rank_pattern": {},
30
+ "revision": null,
31
+ "target_modules": [
32
+ "o_proj",
33
+ "k_proj",
34
+ "gate_proj",
35
+ "v_proj",
36
+ "up_proj",
37
+ "q_proj",
38
+ "down_proj"
39
+ ],
40
+ "target_parameters": null,
41
+ "task_type": "CAUSAL_LM",
42
+ "trainable_token_indices": null,
43
+ "use_dora": false,
44
+ "use_qalora": false,
45
+ "use_rslora": false
46
+ }
checkpoint-111/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6c7bb4264624b032025acd56379bb1473d0830a49293d310d9f127ef5881a39
3
+ size 167832688
checkpoint-111/chat_template.jinja ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if messages[0]['role'] == 'system' %}
2
+ {%- set system_message = messages[0]['content'] %}
3
+ {%- set loop_messages = messages[1:] %}
4
+ {%- else %}
5
+ {%- set loop_messages = messages %}
6
+ {%- endif %}
7
+
8
+ {{- bos_token }}
9
+ {%- for message in loop_messages %}
10
+ {%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}
11
+ {{- raise_exception('After the optional system message, conversation roles must alternate user/assistant/user/assistant/...') }}
12
+ {%- endif %}
13
+ {%- if message['role'] == 'user' %}
14
+ {%- if loop.first and system_message is defined %}
15
+ {{- ' [INST] ' + system_message + '\n\n' + message['content'] + ' [/INST]' }}
16
+ {%- else %}
17
+ {{- ' [INST] ' + message['content'] + ' [/INST]' }}
18
+ {%- endif %}
19
+ {%- elif message['role'] == 'assistant' %}
20
+ {{- ' ' + message['content'] + eos_token}}
21
+ {%- else %}
22
+ {{- raise_exception('Only user and assistant roles are supported, with the exception of an initial optional system message!') }}
23
+ {%- endif %}
24
+ {%- endfor %}
checkpoint-111/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf5c67f049d87c8936c10bbee78f4bcfd05b4eb578d79cc9e7aec14d6c440b9a
3
+ size 170934309
checkpoint-111/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:200edf41d0452114a9b5c7df0f379fca0c34b52e2956eebcc659d84f161b2e17
3
+ size 14645
checkpoint-111/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a814c7086586a3d280cf6a82cfc3d9d901c8a2195dd28858196f15d0e8eb43a1
3
+ size 1465
checkpoint-111/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-111/tokenizer_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": null,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "</s>",
7
+ "extra_special_tokens": [],
8
+ "is_local": false,
9
+ "legacy": false,
10
+ "model_max_length": 1000000000000000019884624838656,
11
+ "pad_token": "</s>",
12
+ "sp_model_kwargs": {},
13
+ "spaces_between_special_tokens": false,
14
+ "tokenizer_class": "TokenizersBackend",
15
+ "unk_token": "<unk>",
16
+ "use_default_system_prompt": false
17
+ }
checkpoint-111/trainer_state.json ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 3.0,
6
+ "eval_steps": 100,
7
+ "global_step": 111,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "entropy": 1.418435550481081,
14
+ "epoch": 0.27303754266211605,
15
+ "grad_norm": 0.056396484375,
16
+ "learning_rate": 0.00019959742939952392,
17
+ "loss": 1.6161483764648437,
18
+ "mean_token_accuracy": 0.6638647213578224,
19
+ "num_tokens": 151209.0,
20
+ "step": 10
21
+ },
22
+ {
23
+ "entropy": 1.097722884826362,
24
+ "epoch": 0.5460750853242321,
25
+ "grad_norm": 0.033203125,
26
+ "learning_rate": 0.00019253043004739968,
27
+ "loss": 1.1661317825317383,
28
+ "mean_token_accuracy": 0.7458787495270371,
29
+ "num_tokens": 320046.0,
30
+ "step": 20
31
+ },
32
+ {
33
+ "entropy": 1.063631435856223,
34
+ "epoch": 0.8191126279863481,
35
+ "grad_norm": 0.0247802734375,
36
+ "learning_rate": 0.00017724169592245995,
37
+ "loss": 1.118991756439209,
38
+ "mean_token_accuracy": 0.7535936305299401,
39
+ "num_tokens": 492438.0,
40
+ "step": 30
41
+ },
42
+ {
43
+ "entropy": 0.9953024551852957,
44
+ "epoch": 1.0819112627986347,
45
+ "grad_norm": 0.0255126953125,
46
+ "learning_rate": 0.00015508969814521025,
47
+ "loss": 1.0578977584838867,
48
+ "mean_token_accuracy": 0.7685656903626082,
49
+ "num_tokens": 642939.0,
50
+ "step": 40
51
+ },
52
+ {
53
+ "entropy": 0.9422929083928466,
54
+ "epoch": 1.3549488054607508,
55
+ "grad_norm": 0.025390625,
56
+ "learning_rate": 0.00012804273893060028,
57
+ "loss": 1.0265376091003418,
58
+ "mean_token_accuracy": 0.7775206623598934,
59
+ "num_tokens": 817432.0,
60
+ "step": 50
61
+ },
62
+ {
63
+ "entropy": 0.9282504981383681,
64
+ "epoch": 1.627986348122867,
65
+ "grad_norm": 0.025390625,
66
+ "learning_rate": 9.850405929847366e-05,
67
+ "loss": 0.9812464714050293,
68
+ "mean_token_accuracy": 0.7824548855423927,
69
+ "num_tokens": 971956.0,
70
+ "step": 60
71
+ },
72
+ {
73
+ "entropy": 0.9165813697502017,
74
+ "epoch": 1.901023890784983,
75
+ "grad_norm": 0.028076171875,
76
+ "learning_rate": 6.909830056250527e-05,
77
+ "loss": 0.9443504333496093,
78
+ "mean_token_accuracy": 0.7839378425851464,
79
+ "num_tokens": 1134082.0,
80
+ "step": 70
81
+ },
82
+ {
83
+ "entropy": 0.946953180354911,
84
+ "epoch": 2.1638225255972694,
85
+ "grad_norm": 0.02880859375,
86
+ "learning_rate": 4.2438293431432665e-05,
87
+ "loss": 0.968726921081543,
88
+ "mean_token_accuracy": 0.7822197033213331,
89
+ "num_tokens": 1290177.0,
90
+ "step": 80
91
+ },
92
+ {
93
+ "entropy": 0.8450189002789557,
94
+ "epoch": 2.4368600682593855,
95
+ "grad_norm": 0.031982421875,
96
+ "learning_rate": 2.0892896534365904e-05,
97
+ "loss": 0.9016420364379882,
98
+ "mean_token_accuracy": 0.7995872467756271,
99
+ "num_tokens": 1461672.0,
100
+ "step": 90
101
+ },
102
+ {
103
+ "entropy": 0.8309150729328394,
104
+ "epoch": 2.7098976109215016,
105
+ "grad_norm": 0.037353515625,
106
+ "learning_rate": 6.37651293602628e-06,
107
+ "loss": 0.8841998100280761,
108
+ "mean_token_accuracy": 0.8054205430671573,
109
+ "num_tokens": 1624257.0,
110
+ "step": 100
111
+ },
112
+ {
113
+ "epoch": 2.7098976109215016,
114
+ "eval_entropy": 0.9007232843926458,
115
+ "eval_loss": 0.9238418340682983,
116
+ "eval_mean_token_accuracy": 0.7843361054406022,
117
+ "eval_num_tokens": 1624257.0,
118
+ "eval_runtime": 42.5945,
119
+ "eval_samples_per_second": 1.549,
120
+ "eval_steps_per_second": 1.549,
121
+ "step": 100
122
+ },
123
+ {
124
+ "entropy": 0.8297194179147482,
125
+ "epoch": 2.9829351535836177,
126
+ "grad_norm": 0.0322265625,
127
+ "learning_rate": 1.7898702322648453e-07,
128
+ "loss": 0.8666117668151856,
129
+ "mean_token_accuracy": 0.8052121920511126,
130
+ "num_tokens": 1778979.0,
131
+ "step": 110
132
+ }
133
+ ],
134
+ "logging_steps": 10,
135
+ "max_steps": 111,
136
+ "num_input_tokens_seen": 0,
137
+ "num_train_epochs": 3,
138
+ "save_steps": 200,
139
+ "stateful_callbacks": {
140
+ "TrainerControl": {
141
+ "args": {
142
+ "should_epoch_stop": false,
143
+ "should_evaluate": false,
144
+ "should_log": false,
145
+ "should_save": true,
146
+ "should_training_stop": true
147
+ },
148
+ "attributes": {}
149
+ }
150
+ },
151
+ "total_flos": 7.754556700156723e+16,
152
+ "train_batch_size": 1,
153
+ "trial_name": null,
154
+ "trial_params": null
155
+ }
checkpoint-111/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13b53f9087af6406754f9d4a944b842846aaebb983e7344dbff137c8f3f21285
3
+ size 5649