MuntasirHossain
commited on
Commit
•
8dea0c7
1
Parent(s):
5f7d770
End of training
Browse files- README.md +78 -0
- adapter_config.json +34 -0
- adapter_model.safetensors +3 -0
- added_tokens.json +4 -0
- runs/May24_02-09-36_304c44d61a1a/events.out.tfevents.1716516589.304c44d61a1a.2075.0 +3 -0
- special_tokens_map.json +28 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +0 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- trl
|
6 |
+
- orpo
|
7 |
+
- generated_from_trainer
|
8 |
+
base_model: mistralai/Mistral-7B-v0.3
|
9 |
+
model-index:
|
10 |
+
- name: Orpo-Mistral-7B-v0.3-peft-adapter
|
11 |
+
results: []
|
12 |
+
---
|
13 |
+
|
14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
15 |
+
should probably proofread and complete it, then remove this comment. -->
|
16 |
+
|
17 |
+
# Orpo-Mistral-7B-v0.3-peft-adapter
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [mistralai/Mistral-7B-v0.3](https://huggingface.co/mistralai/Mistral-7B-v0.3) on an unknown dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 0.6129
|
22 |
+
- Rewards/chosen: -0.0574
|
23 |
+
- Rewards/rejected: -0.0794
|
24 |
+
- Rewards/accuracies: 0.6429
|
25 |
+
- Rewards/margins: 0.0221
|
26 |
+
- Logps/rejected: -0.7943
|
27 |
+
- Logps/chosen: -0.5738
|
28 |
+
- Logits/rejected: -3.2681
|
29 |
+
- Logits/chosen: -3.2859
|
30 |
+
- Nll Loss: 0.5465
|
31 |
+
- Log Odds Ratio: -0.5869
|
32 |
+
- Log Odds Chosen: 0.4083
|
33 |
+
|
34 |
+
## Model description
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Intended uses & limitations
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Training and evaluation data
|
43 |
+
|
44 |
+
More information needed
|
45 |
+
|
46 |
+
## Training procedure
|
47 |
+
|
48 |
+
### Training hyperparameters
|
49 |
+
|
50 |
+
The following hyperparameters were used during training:
|
51 |
+
- learning_rate: 8e-06
|
52 |
+
- train_batch_size: 4
|
53 |
+
- eval_batch_size: 4
|
54 |
+
- seed: 42
|
55 |
+
- gradient_accumulation_steps: 2
|
56 |
+
- total_train_batch_size: 8
|
57 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
58 |
+
- lr_scheduler_type: linear
|
59 |
+
- lr_scheduler_warmup_steps: 10
|
60 |
+
- num_epochs: 1
|
61 |
+
|
62 |
+
### Training results
|
63 |
+
|
64 |
+
| Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/accuracies | Rewards/margins | Logps/rejected | Logps/chosen | Logits/rejected | Logits/chosen | Nll Loss | Log Odds Ratio | Log Odds Chosen |
|
65 |
+
|:-------------:|:------:|:----:|:---------------:|:--------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------:|:---------------:|:-------------:|:--------:|:--------------:|:---------------:|
|
66 |
+
| 0.7914 | 0.2003 | 62 | 0.6937 | -0.0709 | -0.0851 | 0.6071 | 0.0142 | -0.8514 | -0.7090 | -3.2582 | -3.2848 | 0.6333 | -0.6178 | 0.2402 |
|
67 |
+
| 0.802 | 0.4006 | 124 | 0.6338 | -0.0607 | -0.0781 | 0.6429 | 0.0174 | -0.7809 | -0.6070 | -3.2744 | -3.2972 | 0.5693 | -0.5966 | 0.3287 |
|
68 |
+
| 0.8605 | 0.6010 | 186 | 0.6204 | -0.0586 | -0.0799 | 0.6071 | 0.0213 | -0.7990 | -0.5863 | -3.2692 | -3.2895 | 0.5538 | -0.5899 | 0.3927 |
|
69 |
+
| 0.7359 | 0.8013 | 248 | 0.6129 | -0.0574 | -0.0794 | 0.6429 | 0.0221 | -0.7943 | -0.5738 | -3.2681 | -3.2859 | 0.5465 | -0.5869 | 0.4083 |
|
70 |
+
|
71 |
+
|
72 |
+
### Framework versions
|
73 |
+
|
74 |
+
- PEFT 0.11.1
|
75 |
+
- Transformers 4.41.1
|
76 |
+
- Pytorch 2.3.0+cu121
|
77 |
+
- Datasets 2.19.1
|
78 |
+
- Tokenizers 0.19.1
|
adapter_config.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "mistralai/Mistral-7B-v0.3",
|
5 |
+
"bias": "none",
|
6 |
+
"fan_in_fan_out": false,
|
7 |
+
"inference_mode": true,
|
8 |
+
"init_lora_weights": true,
|
9 |
+
"layer_replication": null,
|
10 |
+
"layers_pattern": null,
|
11 |
+
"layers_to_transform": null,
|
12 |
+
"loftq_config": {},
|
13 |
+
"lora_alpha": 32,
|
14 |
+
"lora_dropout": 0.05,
|
15 |
+
"megatron_config": null,
|
16 |
+
"megatron_core": "megatron.core",
|
17 |
+
"modules_to_save": null,
|
18 |
+
"peft_type": "LORA",
|
19 |
+
"r": 16,
|
20 |
+
"rank_pattern": {},
|
21 |
+
"revision": null,
|
22 |
+
"target_modules": [
|
23 |
+
"k_proj",
|
24 |
+
"o_proj",
|
25 |
+
"up_proj",
|
26 |
+
"down_proj",
|
27 |
+
"v_proj",
|
28 |
+
"q_proj",
|
29 |
+
"gate_proj"
|
30 |
+
],
|
31 |
+
"task_type": "CAUSAL_LM",
|
32 |
+
"use_dora": false,
|
33 |
+
"use_rslora": false
|
34 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c10e4acd3d3556d24abaa9b1bdc4ad0d5d4ef7284038830f27774b5b4325e574
|
3 |
+
size 1241641304
|
added_tokens.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<|im_end|>": 32769,
|
3 |
+
"<|im_start|>": 32768
|
4 |
+
}
|
runs/May24_02-09-36_304c44d61a1a/events.out.tfevents.1716516589.304c44d61a1a.2075.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:51d77830e86ddbf4dc1151d31193027ff834ff6d4c1baf008393d3ff49fe4fdf
|
3 |
+
size 273501
|
special_tokens_map.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
{
|
4 |
+
"content": "<|im_start|>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false
|
9 |
+
},
|
10 |
+
{
|
11 |
+
"content": "<|im_end|>",
|
12 |
+
"lstrip": false,
|
13 |
+
"normalized": false,
|
14 |
+
"rstrip": false,
|
15 |
+
"single_word": false
|
16 |
+
}
|
17 |
+
],
|
18 |
+
"bos_token": "<|im_start|>",
|
19 |
+
"eos_token": "<|im_end|>",
|
20 |
+
"pad_token": "<|im_end|>",
|
21 |
+
"unk_token": {
|
22 |
+
"content": "<unk>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": false,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false
|
27 |
+
}
|
28 |
+
}
|
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:37f00374dea48658ee8f5d0f21895b9bc55cb0103939607c8185bfd1c6ca1f89
|
3 |
+
size 587404
|
tokenizer_config.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e6df297d2fbe904d84332ce14ee555ce0ae87f7b6160459d6b4ee8a1e06af4f1
|
3 |
+
size 5432
|