Commit
·
615606e
1
Parent(s):
bc6dd8d
Model save
Browse files- README.md +58 -0
- adapter_config.json +25 -0
- adapter_model.safetensors +3 -0
- all_results.json +13 -0
- eval_results.json +8 -0
- runs/Nov27_15-15-56_hpc-hblab/events.out.tfevents.1701072986.hpc-hblab.998006.0 +3 -0
- runs/Nov29_15-52-57_hpc-hblab/events.out.tfevents.1701248066.hpc-hblab.1391487.0 +3 -0
- runs/Nov29_16-00-52_hpc-hblab/events.out.tfevents.1701248543.hpc-hblab.1392562.0 +3 -0
- runs/Nov29_17-16-48_hpc-hblab/events.out.tfevents.1701253096.hpc-hblab.1408066.0 +3 -0
- runs/Nov29_17-20-34_hpc-hblab/events.out.tfevents.1701253323.hpc-hblab.1409430.0 +3 -0
- runs/Nov29_17-24-08_hpc-hblab/events.out.tfevents.1701253533.hpc-hblab.1410000.0 +3 -0
- runs/Nov29_17-45-15_hpc-hblab/events.out.tfevents.1701254798.hpc-hblab.1414379.0 +3 -0
- runs/Nov29_17-57-18_hpc-hblab/events.out.tfevents.1701255521.hpc-hblab.1416992.0 +3 -0
- runs/Nov30_08-14-28_hpc-hblab/events.out.tfevents.1701306954.hpc-hblab.1528715.0 +3 -0
- runs/Nov30_08-21-57_hpc-hblab/events.out.tfevents.1701307403.hpc-hblab.1529729.0 +3 -0
- runs/Nov30_08-21-57_hpc-hblab/events.out.tfevents.1701307474.hpc-hblab.1529729.1 +3 -0
- special_tokens_map.json +24 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +41 -0
- train_results.json +8 -0
- trainer_state.json +36 -0
- training_args.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- generated_from_trainer
|
| 4 |
+
model-index:
|
| 5 |
+
- name: math-lora
|
| 6 |
+
results: []
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 10 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 11 |
+
|
| 12 |
+
# math-lora
|
| 13 |
+
|
| 14 |
+
This model was trained from scratch on an unknown dataset.
|
| 15 |
+
It achieves the following results on the evaluation set:
|
| 16 |
+
- Loss: 1.6782
|
| 17 |
+
|
| 18 |
+
## Model description
|
| 19 |
+
|
| 20 |
+
More information needed
|
| 21 |
+
|
| 22 |
+
## Intended uses & limitations
|
| 23 |
+
|
| 24 |
+
More information needed
|
| 25 |
+
|
| 26 |
+
## Training and evaluation data
|
| 27 |
+
|
| 28 |
+
More information needed
|
| 29 |
+
|
| 30 |
+
## Training procedure
|
| 31 |
+
|
| 32 |
+
### Training hyperparameters
|
| 33 |
+
|
| 34 |
+
The following hyperparameters were used during training:
|
| 35 |
+
- learning_rate: 2e-05
|
| 36 |
+
- train_batch_size: 4
|
| 37 |
+
- eval_batch_size: 8
|
| 38 |
+
- seed: 42
|
| 39 |
+
- distributed_type: multi-GPU
|
| 40 |
+
- gradient_accumulation_steps: 128
|
| 41 |
+
- total_train_batch_size: 512
|
| 42 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 43 |
+
- lr_scheduler_type: cosine
|
| 44 |
+
- num_epochs: 1
|
| 45 |
+
|
| 46 |
+
### Training results
|
| 47 |
+
|
| 48 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
| 49 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
| 50 |
+
| No log | 0 | 0 | 1.6782 |
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
### Framework versions
|
| 54 |
+
|
| 55 |
+
- Transformers 4.35.0
|
| 56 |
+
- Pytorch 2.1.1+cu121
|
| 57 |
+
- Datasets 2.14.6
|
| 58 |
+
- Tokenizers 0.14.1
|
adapter_config.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": null,
|
| 4 |
+
"base_model_name_or_path": "models",
|
| 5 |
+
"bias": "none",
|
| 6 |
+
"fan_in_fan_out": false,
|
| 7 |
+
"inference_mode": true,
|
| 8 |
+
"init_lora_weights": true,
|
| 9 |
+
"layers_pattern": null,
|
| 10 |
+
"layers_to_transform": null,
|
| 11 |
+
"lora_alpha": 16,
|
| 12 |
+
"lora_dropout": 0.1,
|
| 13 |
+
"modules_to_save": null,
|
| 14 |
+
"peft_type": "LORA",
|
| 15 |
+
"r": 64,
|
| 16 |
+
"rank_pattern": {},
|
| 17 |
+
"revision": null,
|
| 18 |
+
"target_modules": [
|
| 19 |
+
"k_proj",
|
| 20 |
+
"q_proj",
|
| 21 |
+
"v_proj",
|
| 22 |
+
"o_proj"
|
| 23 |
+
],
|
| 24 |
+
"task_type": "CAUSAL_LM"
|
| 25 |
+
}
|
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c7ab2d40757d64f0fcd70df52ae53610eb4487d8afb2022d6ad3d1a8f3fb2f08
|
| 3 |
+
size 218138576
|
all_results.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 0,
|
| 3 |
+
"eval_loss": 1.6781893968582153,
|
| 4 |
+
"eval_runtime": 1.9026,
|
| 5 |
+
"eval_samples": 100,
|
| 6 |
+
"eval_samples_per_second": 52.559,
|
| 7 |
+
"eval_steps_per_second": 6.833,
|
| 8 |
+
"train_loss": 0,
|
| 9 |
+
"train_runtime": 68.9963,
|
| 10 |
+
"train_samples": 1100,
|
| 11 |
+
"train_samples_per_second": 15.943,
|
| 12 |
+
"train_steps_per_second": 0.029
|
| 13 |
+
}
|
eval_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 0,
|
| 3 |
+
"eval_loss": 1.6781893968582153,
|
| 4 |
+
"eval_runtime": 1.9026,
|
| 5 |
+
"eval_samples": 100,
|
| 6 |
+
"eval_samples_per_second": 52.559,
|
| 7 |
+
"eval_steps_per_second": 6.833
|
| 8 |
+
}
|
runs/Nov27_15-15-56_hpc-hblab/events.out.tfevents.1701072986.hpc-hblab.998006.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:80bd3b6737ead906d192567a5ba3f6711d780b0d6d91830bdcf94c876c1339c4
|
| 3 |
+
size 7337
|
runs/Nov29_15-52-57_hpc-hblab/events.out.tfevents.1701248066.hpc-hblab.1391487.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8fca52b4674efbe46da6f33649de9575d4c85d7e5ecc3623fc24243dfffc9343
|
| 3 |
+
size 4494
|
runs/Nov29_16-00-52_hpc-hblab/events.out.tfevents.1701248543.hpc-hblab.1392562.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e4d1b03ca897c681e6a6eb3ecfaf0d62b275a702ea0ab8a9c830b1f4930bf385
|
| 3 |
+
size 4485
|
runs/Nov29_17-16-48_hpc-hblab/events.out.tfevents.1701253096.hpc-hblab.1408066.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4f0a27c54ddca770f21d40986893a6b917f3be95c46dae749aa8a830846ed799
|
| 3 |
+
size 4485
|
runs/Nov29_17-20-34_hpc-hblab/events.out.tfevents.1701253323.hpc-hblab.1409430.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:20133b418f86e3f474079b1ef08789f7c8ce5e92016464c3538dd8e17568349f
|
| 3 |
+
size 4485
|
runs/Nov29_17-24-08_hpc-hblab/events.out.tfevents.1701253533.hpc-hblab.1410000.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f71f247da6367ca19b8c989bec2f2a09a1424451e599ae428215494ed97e58d0
|
| 3 |
+
size 4229
|
runs/Nov29_17-45-15_hpc-hblab/events.out.tfevents.1701254798.hpc-hblab.1414379.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0999c4d147f70f963dd933356c10c5bee0b136617f3d4a64e99ddc457dad391b
|
| 3 |
+
size 4485
|
runs/Nov29_17-57-18_hpc-hblab/events.out.tfevents.1701255521.hpc-hblab.1416992.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:087d411b7fede443c205abefdbfaa67807ba7b89fec2076550ab4f2346857d75
|
| 3 |
+
size 4485
|
runs/Nov30_08-14-28_hpc-hblab/events.out.tfevents.1701306954.hpc-hblab.1528715.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cb3e003011617dc3ad850c557004cf46c4a7d7d903d6f885f764ea5059c662c5
|
| 3 |
+
size 4485
|
runs/Nov30_08-21-57_hpc-hblab/events.out.tfevents.1701307403.hpc-hblab.1529729.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bde428ea04b1e48fd4ed933af2d29c8292d8c5d1dc2d387cb18df69cffaf77df
|
| 3 |
+
size 4821
|
runs/Nov30_08-21-57_hpc-hblab/events.out.tfevents.1701307474.hpc-hblab.1529729.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8b3c00212451bd99b651c63c2feb6b00182cf936bedec39679da6e816649fa58
|
| 3 |
+
size 344
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<s>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "</s>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": "</s>",
|
| 17 |
+
"unk_token": {
|
| 18 |
+
"content": "<unk>",
|
| 19 |
+
"lstrip": false,
|
| 20 |
+
"normalized": false,
|
| 21 |
+
"rstrip": false,
|
| 22 |
+
"single_word": false
|
| 23 |
+
}
|
| 24 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
|
| 3 |
+
size 493443
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {
|
| 3 |
+
"0": {
|
| 4 |
+
"content": "<unk>",
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"normalized": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"single_word": false,
|
| 9 |
+
"special": true
|
| 10 |
+
},
|
| 11 |
+
"1": {
|
| 12 |
+
"content": "<s>",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"special": true
|
| 18 |
+
},
|
| 19 |
+
"2": {
|
| 20 |
+
"content": "</s>",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false,
|
| 25 |
+
"special": true
|
| 26 |
+
}
|
| 27 |
+
},
|
| 28 |
+
"additional_special_tokens": [],
|
| 29 |
+
"bos_token": "<s>",
|
| 30 |
+
"chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
|
| 31 |
+
"clean_up_tokenization_spaces": false,
|
| 32 |
+
"eos_token": "</s>",
|
| 33 |
+
"legacy": true,
|
| 34 |
+
"model_max_length": 2048,
|
| 35 |
+
"pad_token": "</s>",
|
| 36 |
+
"sp_model_kwargs": {},
|
| 37 |
+
"spaces_between_special_tokens": false,
|
| 38 |
+
"tokenizer_class": "LlamaTokenizer",
|
| 39 |
+
"unk_token": "<unk>",
|
| 40 |
+
"use_default_system_prompt": true
|
| 41 |
+
}
|
train_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 0,
|
| 3 |
+
"train_loss": 0,
|
| 4 |
+
"train_runtime": 68.9963,
|
| 5 |
+
"train_samples": 1100,
|
| 6 |
+
"train_samples_per_second": 15.943,
|
| 7 |
+
"train_steps_per_second": 0.029
|
| 8 |
+
}
|
trainer_state.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_metric": null,
|
| 3 |
+
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 0,
|
| 5 |
+
"eval_steps": 500,
|
| 6 |
+
"global_step": 0,
|
| 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,
|
| 13 |
+
"eval_loss": 1.6781895160675049,
|
| 14 |
+
"eval_runtime": 1.9005,
|
| 15 |
+
"eval_samples_per_second": 52.619,
|
| 16 |
+
"eval_steps_per_second": 6.84,
|
| 17 |
+
"step": 0
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0,
|
| 21 |
+
"step": 0,
|
| 22 |
+
"total_flos": 4138152939749376.0,
|
| 23 |
+
"train_loss": 0,
|
| 24 |
+
"train_runtime": 68.9963,
|
| 25 |
+
"train_samples_per_second": 15.943,
|
| 26 |
+
"train_steps_per_second": 0.029
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"logging_steps": 5,
|
| 30 |
+
"max_steps": 2,
|
| 31 |
+
"num_train_epochs": 1,
|
| 32 |
+
"save_steps": 500,
|
| 33 |
+
"total_flos": 4138152939749376.0,
|
| 34 |
+
"trial_name": null,
|
| 35 |
+
"trial_params": null
|
| 36 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6b794ac5ebe87d869f2f6a88f8400a90ee48517c4e6afe65a5e8e32fb1f3e1c4
|
| 3 |
+
size 4664
|