Instructions to use ealharbi/crystallography-cryoem-mistral-7b-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use ealharbi/crystallography-cryoem-mistral-7b-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3") model = PeftModel.from_pretrained(base_model, "ealharbi/crystallography-cryoem-mistral-7b-lora") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- README.md +39 -184
- adapter_config.json +4 -4
- adapter_model.safetensors +1 -1
- log_history.json +103 -103
- tokenizer.json +6 -1
README.md
CHANGED
|
@@ -1,207 +1,62 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
base_model: mistralai/Mistral-7B-Instruct-v0.3
|
| 3 |
library_name: peft
|
| 4 |
pipeline_tag: text-generation
|
|
|
|
|
|
|
| 5 |
tags:
|
| 6 |
-
-
|
|
|
|
| 7 |
- lora
|
| 8 |
-
-
|
| 9 |
---
|
| 10 |
|
| 11 |
-
#
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
| 14 |
|
|
|
|
| 15 |
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
- **Developed by:** [More Information Needed]
|
| 26 |
-
- **Funded by [optional]:** [More Information Needed]
|
| 27 |
-
- **Shared by [optional]:** [More Information Needed]
|
| 28 |
-
- **Model type:** [More Information Needed]
|
| 29 |
-
- **Language(s) (NLP):** [More Information Needed]
|
| 30 |
-
- **License:** [More Information Needed]
|
| 31 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
| 32 |
-
|
| 33 |
-
### Model Sources [optional]
|
| 34 |
-
|
| 35 |
-
<!-- Provide the basic links for the model. -->
|
| 36 |
-
|
| 37 |
-
- **Repository:** [More Information Needed]
|
| 38 |
-
- **Paper [optional]:** [More Information Needed]
|
| 39 |
-
- **Demo [optional]:** [More Information Needed]
|
| 40 |
-
|
| 41 |
-
## Uses
|
| 42 |
-
|
| 43 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 44 |
-
|
| 45 |
-
### Direct Use
|
| 46 |
-
|
| 47 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 48 |
-
|
| 49 |
-
[More Information Needed]
|
| 50 |
-
|
| 51 |
-
### Downstream Use [optional]
|
| 52 |
-
|
| 53 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 54 |
-
|
| 55 |
-
[More Information Needed]
|
| 56 |
-
|
| 57 |
-
### Out-of-Scope Use
|
| 58 |
-
|
| 59 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 60 |
-
|
| 61 |
-
[More Information Needed]
|
| 62 |
-
|
| 63 |
-
## Bias, Risks, and Limitations
|
| 64 |
-
|
| 65 |
-
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 66 |
-
|
| 67 |
-
[More Information Needed]
|
| 68 |
-
|
| 69 |
-
### Recommendations
|
| 70 |
-
|
| 71 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 72 |
-
|
| 73 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 74 |
-
|
| 75 |
-
## How to Get Started with the Model
|
| 76 |
-
|
| 77 |
-
Use the code below to get started with the model.
|
| 78 |
-
|
| 79 |
-
[More Information Needed]
|
| 80 |
-
|
| 81 |
-
## Training Details
|
| 82 |
-
|
| 83 |
-
### Training Data
|
| 84 |
-
|
| 85 |
-
<!-- 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. -->
|
| 86 |
-
|
| 87 |
-
[More Information Needed]
|
| 88 |
-
|
| 89 |
-
### Training Procedure
|
| 90 |
-
|
| 91 |
-
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 92 |
-
|
| 93 |
-
#### Preprocessing [optional]
|
| 94 |
-
|
| 95 |
-
[More Information Needed]
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
#### Training Hyperparameters
|
| 99 |
-
|
| 100 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 101 |
-
|
| 102 |
-
#### Speeds, Sizes, Times [optional]
|
| 103 |
-
|
| 104 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 105 |
-
|
| 106 |
-
[More Information Needed]
|
| 107 |
|
| 108 |
## Evaluation
|
| 109 |
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
#### Testing Data
|
| 115 |
-
|
| 116 |
-
<!-- This should link to a Dataset Card if possible. -->
|
| 117 |
-
|
| 118 |
-
[More Information Needed]
|
| 119 |
-
|
| 120 |
-
#### Factors
|
| 121 |
-
|
| 122 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 123 |
-
|
| 124 |
-
[More Information Needed]
|
| 125 |
-
|
| 126 |
-
#### Metrics
|
| 127 |
-
|
| 128 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 129 |
-
|
| 130 |
-
[More Information Needed]
|
| 131 |
-
|
| 132 |
-
### Results
|
| 133 |
-
|
| 134 |
-
[More Information Needed]
|
| 135 |
-
|
| 136 |
-
#### Summary
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
## Model Examination [optional]
|
| 141 |
-
|
| 142 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 143 |
-
|
| 144 |
-
[More Information Needed]
|
| 145 |
-
|
| 146 |
-
## Environmental Impact
|
| 147 |
-
|
| 148 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 149 |
-
|
| 150 |
-
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).
|
| 151 |
-
|
| 152 |
-
- **Hardware Type:** [More Information Needed]
|
| 153 |
-
- **Hours used:** [More Information Needed]
|
| 154 |
-
- **Cloud Provider:** [More Information Needed]
|
| 155 |
-
- **Compute Region:** [More Information Needed]
|
| 156 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 157 |
-
|
| 158 |
-
## Technical Specifications [optional]
|
| 159 |
-
|
| 160 |
-
### Model Architecture and Objective
|
| 161 |
-
|
| 162 |
-
[More Information Needed]
|
| 163 |
-
|
| 164 |
-
### Compute Infrastructure
|
| 165 |
-
|
| 166 |
-
[More Information Needed]
|
| 167 |
-
|
| 168 |
-
#### Hardware
|
| 169 |
-
|
| 170 |
-
[More Information Needed]
|
| 171 |
-
|
| 172 |
-
#### Software
|
| 173 |
-
|
| 174 |
-
[More Information Needed]
|
| 175 |
-
|
| 176 |
-
## Citation [optional]
|
| 177 |
-
|
| 178 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 179 |
-
|
| 180 |
-
**BibTeX:**
|
| 181 |
-
|
| 182 |
-
[More Information Needed]
|
| 183 |
-
|
| 184 |
-
**APA:**
|
| 185 |
-
|
| 186 |
-
[More Information Needed]
|
| 187 |
-
|
| 188 |
-
## Glossary [optional]
|
| 189 |
|
| 190 |
-
|
|
|
|
| 191 |
|
| 192 |
-
|
| 193 |
|
| 194 |
-
|
|
|
|
|
|
|
| 195 |
|
| 196 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 197 |
|
| 198 |
-
|
| 199 |
|
| 200 |
-
|
| 201 |
|
| 202 |
-
|
|
|
|
| 203 |
|
| 204 |
-
|
| 205 |
-
### Framework versions
|
| 206 |
|
| 207 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
base_model: mistralai/Mistral-7B-Instruct-v0.3
|
| 4 |
library_name: peft
|
| 5 |
pipeline_tag: text-generation
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
tags:
|
| 9 |
+
- crystallography
|
| 10 |
+
- structural-biology
|
| 11 |
- lora
|
| 12 |
+
- peft
|
| 13 |
---
|
| 14 |
|
| 15 |
+
# Mistral 7B — crystallography LoRA adapter
|
| 16 |
|
| 17 |
+
LoRA adapter for `mistralai/Mistral-7B-Instruct-v0.3`, fine-tuned on confirmed
|
| 18 |
+
question-and-answer pairs from the CCP4BB, CCP-EM, phenixbb and COOT
|
| 19 |
+
mailing lists.
|
| 20 |
|
| 21 |
+
## Training
|
| 22 |
|
| 23 |
+
| | |
|
| 24 |
+
|---|---|
|
| 25 |
+
| Method | LoRA, r=64, α=128, dropout=0.05 |
|
| 26 |
+
| Learning rate | 2.675e-05 |
|
| 27 |
+
| Max length | 2048 tokens |
|
| 28 |
+
| Epochs | 2, early stopping |
|
| 29 |
+
| Seed | 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
## Evaluation
|
| 32 |
|
| 33 |
+
BERTScore F1 against held-out confirmed answers (433 questions,
|
| 34 |
+
`roberta-large`, `score(prediction, reference)`):
|
| 35 |
+
**0.8367 → 0.8536**.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
+
BERTScore measures overlap with the reference wording, not factual
|
| 38 |
+
correctness; the paper reports three LLM judges alongside it.
|
| 39 |
|
| 40 |
+
## Use
|
| 41 |
|
| 42 |
+
```python
|
| 43 |
+
from peft import PeftModel
|
| 44 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 45 |
|
| 46 |
+
tok = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
|
| 47 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 48 |
+
"mistralai/Mistral-7B-Instruct-v0.3", device_map="auto", dtype="bfloat16")
|
| 49 |
+
model = PeftModel.from_pretrained(model, "ealharbi/ccp4bb-mistral-7b-lora")
|
| 50 |
+
```
|
| 51 |
|
| 52 |
+
The system prompt used in training was:
|
| 53 |
|
| 54 |
+
> You are a helpful crystallography assistant. Be concise and precise.
|
| 55 |
|
| 56 |
+
The training pairs are single-turn, so ask one self-contained question
|
| 57 |
+
at a time; multi-turn prompts fall outside the fine-tuning format.
|
| 58 |
|
| 59 |
+
## Caveat
|
|
|
|
| 60 |
|
| 61 |
+
Answers are generated and may be wrong. Verify anything consequential
|
| 62 |
+
against the program documentation and the primary literature.
|
adapter_config.json
CHANGED
|
@@ -31,12 +31,12 @@
|
|
| 31 |
"revision": null,
|
| 32 |
"target_modules": [
|
| 33 |
"down_proj",
|
| 34 |
-
"k_proj",
|
| 35 |
"v_proj",
|
| 36 |
-
"
|
| 37 |
"o_proj",
|
| 38 |
-
"
|
| 39 |
-
"
|
|
|
|
| 40 |
],
|
| 41 |
"target_parameters": null,
|
| 42 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 31 |
"revision": null,
|
| 32 |
"target_modules": [
|
| 33 |
"down_proj",
|
|
|
|
| 34 |
"v_proj",
|
| 35 |
+
"gate_proj",
|
| 36 |
"o_proj",
|
| 37 |
+
"q_proj",
|
| 38 |
+
"k_proj",
|
| 39 |
+
"up_proj"
|
| 40 |
],
|
| 41 |
"target_parameters": null,
|
| 42 |
"task_type": "CAUSAL_LM",
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 671149168
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5418540686d67f2d7bdd5925e415817d3b1d868865cc71d28e9b3a11f8624f28
|
| 3 |
size 671149168
|
log_history.json
CHANGED
|
@@ -2,18 +2,18 @@
|
|
| 2 |
"model": "mistralai/Mistral-7B-Instruct-v0.3",
|
| 3 |
"seed": 1,
|
| 4 |
"epochs_requested": 2,
|
| 5 |
-
"epoch_reached": 1.
|
| 6 |
"global_step": 140,
|
| 7 |
"max_steps": 216,
|
| 8 |
"early_stopped": true,
|
| 9 |
-
"best_eval_loss":
|
| 10 |
"best_checkpoint": "finetuned_models/mistralai-Mistral-7B-Instruct-v0.3_seed1/checkpoint-110",
|
| 11 |
"final_metrics": {
|
| 12 |
-
"eval_loss":
|
| 13 |
-
"eval_runtime":
|
| 14 |
-
"eval_samples_per_second":
|
| 15 |
-
"eval_steps_per_second":
|
| 16 |
-
"epoch": 1.
|
| 17 |
},
|
| 18 |
"learning_rate": 2.675263789416278e-05,
|
| 19 |
"lora": {
|
|
@@ -31,167 +31,167 @@
|
|
| 31 |
"early_stopping_patience": 3,
|
| 32 |
"log_history": [
|
| 33 |
{
|
| 34 |
-
"eval_loss":
|
| 35 |
-
"eval_runtime":
|
| 36 |
-
"eval_samples_per_second":
|
| 37 |
-
"eval_steps_per_second":
|
| 38 |
-
"epoch": 0.
|
| 39 |
"step": 10
|
| 40 |
},
|
| 41 |
{
|
| 42 |
-
"eval_loss":
|
| 43 |
-
"eval_runtime":
|
| 44 |
-
"eval_samples_per_second":
|
| 45 |
-
"eval_steps_per_second": 10.
|
| 46 |
-
"epoch": 0.
|
| 47 |
"step": 20
|
| 48 |
},
|
| 49 |
{
|
| 50 |
-
"loss": 2.
|
| 51 |
-
"grad_norm":
|
| 52 |
"learning_rate": 2.6318280611836455e-05,
|
| 53 |
-
"epoch": 0.
|
| 54 |
"step": 25
|
| 55 |
},
|
| 56 |
{
|
| 57 |
-
"eval_loss":
|
| 58 |
-
"eval_runtime":
|
| 59 |
-
"eval_samples_per_second":
|
| 60 |
-
"eval_steps_per_second":
|
| 61 |
-
"epoch": 0.
|
| 62 |
"step": 30
|
| 63 |
},
|
| 64 |
{
|
| 65 |
-
"eval_loss":
|
| 66 |
-
"eval_runtime":
|
| 67 |
-
"eval_samples_per_second":
|
| 68 |
-
"eval_steps_per_second":
|
| 69 |
-
"epoch": 0.
|
| 70 |
"step": 40
|
| 71 |
},
|
| 72 |
{
|
| 73 |
-
"loss": 1.
|
| 74 |
-
"grad_norm": 2.
|
| 75 |
"learning_rate": 2.4174302619519622e-05,
|
| 76 |
-
"epoch": 0.
|
| 77 |
"step": 50
|
| 78 |
},
|
| 79 |
{
|
| 80 |
-
"eval_loss":
|
| 81 |
-
"eval_runtime":
|
| 82 |
-
"eval_samples_per_second":
|
| 83 |
-
"eval_steps_per_second":
|
| 84 |
-
"epoch": 0.
|
| 85 |
"step": 50
|
| 86 |
},
|
| 87 |
{
|
| 88 |
-
"eval_loss":
|
| 89 |
-
"eval_runtime": 10.
|
| 90 |
-
"eval_samples_per_second":
|
| 91 |
-
"eval_steps_per_second":
|
| 92 |
-
"epoch": 0.
|
| 93 |
"step": 60
|
| 94 |
},
|
| 95 |
{
|
| 96 |
-
"eval_loss":
|
| 97 |
-
"eval_runtime": 10.
|
| 98 |
-
"eval_samples_per_second":
|
| 99 |
-
"eval_steps_per_second":
|
| 100 |
-
"epoch": 0.
|
| 101 |
"step": 70
|
| 102 |
},
|
| 103 |
{
|
| 104 |
-
"loss":
|
| 105 |
-
"grad_norm": 1.
|
| 106 |
"learning_rate": 2.0523325458099818e-05,
|
| 107 |
-
"epoch": 0.
|
| 108 |
"step": 75
|
| 109 |
},
|
| 110 |
{
|
| 111 |
-
"eval_loss":
|
| 112 |
-
"eval_runtime":
|
| 113 |
-
"eval_samples_per_second":
|
| 114 |
-
"eval_steps_per_second": 9.
|
| 115 |
-
"epoch": 0.
|
| 116 |
"step": 80
|
| 117 |
},
|
| 118 |
{
|
| 119 |
-
"eval_loss":
|
| 120 |
-
"eval_runtime": 10.
|
| 121 |
-
"eval_samples_per_second":
|
| 122 |
-
"eval_steps_per_second": 10.
|
| 123 |
-
"epoch": 0.
|
| 124 |
"step": 90
|
| 125 |
},
|
| 126 |
{
|
| 127 |
-
"loss": 1.
|
| 128 |
-
"grad_norm":
|
| 129 |
"learning_rate": 1.587489051192989e-05,
|
| 130 |
-
"epoch": 0.
|
| 131 |
"step": 100
|
| 132 |
},
|
| 133 |
{
|
| 134 |
-
"eval_loss":
|
| 135 |
-
"eval_runtime":
|
| 136 |
-
"eval_samples_per_second":
|
| 137 |
-
"eval_steps_per_second":
|
| 138 |
-
"epoch": 0.
|
| 139 |
"step": 100
|
| 140 |
},
|
| 141 |
{
|
| 142 |
-
"eval_loss":
|
| 143 |
-
"eval_runtime":
|
| 144 |
-
"eval_samples_per_second":
|
| 145 |
-
"eval_steps_per_second":
|
| 146 |
-
"epoch": 1.
|
| 147 |
"step": 110
|
| 148 |
},
|
| 149 |
{
|
| 150 |
-
"eval_loss":
|
| 151 |
-
"eval_runtime":
|
| 152 |
-
"eval_samples_per_second":
|
| 153 |
-
"eval_steps_per_second":
|
| 154 |
-
"epoch": 1.
|
| 155 |
"step": 120
|
| 156 |
},
|
| 157 |
{
|
| 158 |
-
"loss": 1.
|
| 159 |
-
"grad_norm": 1.
|
| 160 |
"learning_rate": 1.0877747382232885e-05,
|
| 161 |
-
"epoch": 1.
|
| 162 |
"step": 125
|
| 163 |
},
|
| 164 |
{
|
| 165 |
-
"eval_loss":
|
| 166 |
-
"eval_runtime":
|
| 167 |
-
"eval_samples_per_second":
|
| 168 |
-
"eval_steps_per_second":
|
| 169 |
-
"epoch": 1.
|
| 170 |
"step": 130
|
| 171 |
},
|
| 172 |
{
|
| 173 |
-
"eval_loss":
|
| 174 |
-
"eval_runtime":
|
| 175 |
-
"eval_samples_per_second":
|
| 176 |
-
"eval_steps_per_second":
|
| 177 |
-
"epoch": 1.
|
| 178 |
"step": 140
|
| 179 |
},
|
| 180 |
{
|
| 181 |
-
"train_runtime":
|
| 182 |
-
"train_samples_per_second":
|
| 183 |
-
"train_steps_per_second": 0.
|
| 184 |
-
"total_flos":
|
| 185 |
-
"train_loss": 1.
|
| 186 |
-
"epoch": 1.
|
| 187 |
"step": 140
|
| 188 |
},
|
| 189 |
{
|
| 190 |
-
"eval_loss":
|
| 191 |
-
"eval_runtime":
|
| 192 |
-
"eval_samples_per_second":
|
| 193 |
-
"eval_steps_per_second":
|
| 194 |
-
"epoch": 1.
|
| 195 |
"step": 140
|
| 196 |
}
|
| 197 |
]
|
|
|
|
| 2 |
"model": "mistralai/Mistral-7B-Instruct-v0.3",
|
| 3 |
"seed": 1,
|
| 4 |
"epochs_requested": 2,
|
| 5 |
+
"epoch_reached": 1.2962962962962963,
|
| 6 |
"global_step": 140,
|
| 7 |
"max_steps": 216,
|
| 8 |
"early_stopped": true,
|
| 9 |
+
"best_eval_loss": 1.654082179069519,
|
| 10 |
"best_checkpoint": "finetuned_models/mistralai-Mistral-7B-Instruct-v0.3_seed1/checkpoint-110",
|
| 11 |
"final_metrics": {
|
| 12 |
+
"eval_loss": 1.654082179069519,
|
| 13 |
+
"eval_runtime": 13.1871,
|
| 14 |
+
"eval_samples_per_second": 32.759,
|
| 15 |
+
"eval_steps_per_second": 8.19,
|
| 16 |
+
"epoch": 1.2962962962962963
|
| 17 |
},
|
| 18 |
"learning_rate": 2.675263789416278e-05,
|
| 19 |
"lora": {
|
|
|
|
| 31 |
"early_stopping_patience": 3,
|
| 32 |
"log_history": [
|
| 33 |
{
|
| 34 |
+
"eval_loss": 1.8488812446594238,
|
| 35 |
+
"eval_runtime": 9.8489,
|
| 36 |
+
"eval_samples_per_second": 43.863,
|
| 37 |
+
"eval_steps_per_second": 10.966,
|
| 38 |
+
"epoch": 0.09259259259259259,
|
| 39 |
"step": 10
|
| 40 |
},
|
| 41 |
{
|
| 42 |
+
"eval_loss": 1.764305591583252,
|
| 43 |
+
"eval_runtime": 9.8335,
|
| 44 |
+
"eval_samples_per_second": 43.931,
|
| 45 |
+
"eval_steps_per_second": 10.983,
|
| 46 |
+
"epoch": 0.18518518518518517,
|
| 47 |
"step": 20
|
| 48 |
},
|
| 49 |
{
|
| 50 |
+
"loss": 2.0483358764648436,
|
| 51 |
+
"grad_norm": 2.1267218589782715,
|
| 52 |
"learning_rate": 2.6318280611836455e-05,
|
| 53 |
+
"epoch": 0.23148148148148148,
|
| 54 |
"step": 25
|
| 55 |
},
|
| 56 |
{
|
| 57 |
+
"eval_loss": 1.728833556175232,
|
| 58 |
+
"eval_runtime": 9.9208,
|
| 59 |
+
"eval_samples_per_second": 43.545,
|
| 60 |
+
"eval_steps_per_second": 10.886,
|
| 61 |
+
"epoch": 0.2777777777777778,
|
| 62 |
"step": 30
|
| 63 |
},
|
| 64 |
{
|
| 65 |
+
"eval_loss": 1.7081001996994019,
|
| 66 |
+
"eval_runtime": 9.9092,
|
| 67 |
+
"eval_samples_per_second": 43.596,
|
| 68 |
+
"eval_steps_per_second": 10.899,
|
| 69 |
+
"epoch": 0.37037037037037035,
|
| 70 |
"step": 40
|
| 71 |
},
|
| 72 |
{
|
| 73 |
+
"loss": 1.7389724731445313,
|
| 74 |
+
"grad_norm": 2.0094456672668457,
|
| 75 |
"learning_rate": 2.4174302619519622e-05,
|
| 76 |
+
"epoch": 0.46296296296296297,
|
| 77 |
"step": 50
|
| 78 |
},
|
| 79 |
{
|
| 80 |
+
"eval_loss": 1.6942864656448364,
|
| 81 |
+
"eval_runtime": 9.9717,
|
| 82 |
+
"eval_samples_per_second": 43.323,
|
| 83 |
+
"eval_steps_per_second": 10.831,
|
| 84 |
+
"epoch": 0.46296296296296297,
|
| 85 |
"step": 50
|
| 86 |
},
|
| 87 |
{
|
| 88 |
+
"eval_loss": 1.6831718683242798,
|
| 89 |
+
"eval_runtime": 10.0379,
|
| 90 |
+
"eval_samples_per_second": 43.037,
|
| 91 |
+
"eval_steps_per_second": 10.759,
|
| 92 |
+
"epoch": 0.5555555555555556,
|
| 93 |
"step": 60
|
| 94 |
},
|
| 95 |
{
|
| 96 |
+
"eval_loss": 1.6765761375427246,
|
| 97 |
+
"eval_runtime": 10.0079,
|
| 98 |
+
"eval_samples_per_second": 43.166,
|
| 99 |
+
"eval_steps_per_second": 10.791,
|
| 100 |
+
"epoch": 0.6481481481481481,
|
| 101 |
"step": 70
|
| 102 |
},
|
| 103 |
{
|
| 104 |
+
"loss": 1.7271536254882813,
|
| 105 |
+
"grad_norm": 1.6946066617965698,
|
| 106 |
"learning_rate": 2.0523325458099818e-05,
|
| 107 |
+
"epoch": 0.6944444444444444,
|
| 108 |
"step": 75
|
| 109 |
},
|
| 110 |
{
|
| 111 |
+
"eval_loss": 1.6678999662399292,
|
| 112 |
+
"eval_runtime": 10.8076,
|
| 113 |
+
"eval_samples_per_second": 39.972,
|
| 114 |
+
"eval_steps_per_second": 9.993,
|
| 115 |
+
"epoch": 0.7407407407407407,
|
| 116 |
"step": 80
|
| 117 |
},
|
| 118 |
{
|
| 119 |
+
"eval_loss": 1.6625776290893555,
|
| 120 |
+
"eval_runtime": 10.0228,
|
| 121 |
+
"eval_samples_per_second": 43.102,
|
| 122 |
+
"eval_steps_per_second": 10.775,
|
| 123 |
+
"epoch": 0.8333333333333334,
|
| 124 |
"step": 90
|
| 125 |
},
|
| 126 |
{
|
| 127 |
+
"loss": 1.6924752807617187,
|
| 128 |
+
"grad_norm": 1.8865303993225098,
|
| 129 |
"learning_rate": 1.587489051192989e-05,
|
| 130 |
+
"epoch": 0.9259259259259259,
|
| 131 |
"step": 100
|
| 132 |
},
|
| 133 |
{
|
| 134 |
+
"eval_loss": 1.6575430631637573,
|
| 135 |
+
"eval_runtime": 9.9455,
|
| 136 |
+
"eval_samples_per_second": 43.437,
|
| 137 |
+
"eval_steps_per_second": 10.859,
|
| 138 |
+
"epoch": 0.9259259259259259,
|
| 139 |
"step": 100
|
| 140 |
},
|
| 141 |
{
|
| 142 |
+
"eval_loss": 1.654082179069519,
|
| 143 |
+
"eval_runtime": 9.9907,
|
| 144 |
+
"eval_samples_per_second": 43.24,
|
| 145 |
+
"eval_steps_per_second": 10.81,
|
| 146 |
+
"epoch": 1.0185185185185186,
|
| 147 |
"step": 110
|
| 148 |
},
|
| 149 |
{
|
| 150 |
+
"eval_loss": 1.6632981300354004,
|
| 151 |
+
"eval_runtime": 9.9243,
|
| 152 |
+
"eval_samples_per_second": 43.53,
|
| 153 |
+
"eval_steps_per_second": 10.882,
|
| 154 |
+
"epoch": 1.1111111111111112,
|
| 155 |
"step": 120
|
| 156 |
},
|
| 157 |
{
|
| 158 |
+
"loss": 1.5846710205078125,
|
| 159 |
+
"grad_norm": 1.8140192031860352,
|
| 160 |
"learning_rate": 1.0877747382232885e-05,
|
| 161 |
+
"epoch": 1.1574074074074074,
|
| 162 |
"step": 125
|
| 163 |
},
|
| 164 |
{
|
| 165 |
+
"eval_loss": 1.6580889225006104,
|
| 166 |
+
"eval_runtime": 9.8547,
|
| 167 |
+
"eval_samples_per_second": 43.837,
|
| 168 |
+
"eval_steps_per_second": 10.959,
|
| 169 |
+
"epoch": 1.2037037037037037,
|
| 170 |
"step": 130
|
| 171 |
},
|
| 172 |
{
|
| 173 |
+
"eval_loss": 1.6590867042541504,
|
| 174 |
+
"eval_runtime": 9.9468,
|
| 175 |
+
"eval_samples_per_second": 43.431,
|
| 176 |
+
"eval_steps_per_second": 10.858,
|
| 177 |
+
"epoch": 1.2962962962962963,
|
| 178 |
"step": 140
|
| 179 |
},
|
| 180 |
{
|
| 181 |
+
"train_runtime": 454.6607,
|
| 182 |
+
"train_samples_per_second": 15.198,
|
| 183 |
+
"train_steps_per_second": 0.475,
|
| 184 |
+
"total_flos": 3.648040061632512e+16,
|
| 185 |
+
"train_loss": 1.7275653975350516,
|
| 186 |
+
"epoch": 1.2962962962962963,
|
| 187 |
"step": 140
|
| 188 |
},
|
| 189 |
{
|
| 190 |
+
"eval_loss": 1.654082179069519,
|
| 191 |
+
"eval_runtime": 13.1871,
|
| 192 |
+
"eval_samples_per_second": 32.759,
|
| 193 |
+
"eval_steps_per_second": 8.19,
|
| 194 |
+
"epoch": 1.2962962962962963,
|
| 195 |
"step": 140
|
| 196 |
}
|
| 197 |
]
|
tokenizer.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
| 1 |
{
|
| 2 |
"version": "1.0",
|
| 3 |
-
"truncation":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
"padding": null,
|
| 5 |
"added_tokens": [
|
| 6 |
{
|
|
|
|
| 1 |
{
|
| 2 |
"version": "1.0",
|
| 3 |
+
"truncation": {
|
| 4 |
+
"direction": "Right",
|
| 5 |
+
"max_length": 2048,
|
| 6 |
+
"strategy": "LongestFirst",
|
| 7 |
+
"stride": 0
|
| 8 |
+
},
|
| 9 |
"padding": null,
|
| 10 |
"added_tokens": [
|
| 11 |
{
|