Training in progress, step 100
Browse files- README.md +73 -42
- adapter_config.json +5 -5
- adapter_model.safetensors +1 -1
- training_args.bin +1 -1
README.md
CHANGED
@@ -1,71 +1,102 @@
|
|
1 |
---
|
2 |
-
|
|
|
3 |
tags:
|
4 |
-
-
|
5 |
-
-
|
6 |
-
- generated_from_trainer
|
7 |
base_model: HuggingFaceH4/zephyr-7b-beta
|
8 |
model-index:
|
9 |
-
- name: WeniGPT-Agents-Zephyr-1.0.26-KTO
|
10 |
results: []
|
|
|
11 |
---
|
12 |
|
13 |
-
|
14 |
-
should probably proofread and complete it, then remove this comment. -->
|
15 |
|
16 |
-
|
|
|
17 |
|
18 |
-
This model is a fine-tuned version of [HuggingFaceH4/zephyr-7b-beta](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta) on the None dataset.
|
19 |
It achieves the following results on the evaluation set:
|
20 |
-
-
|
21 |
-
- Rewards/chosen: -231.0626
|
22 |
-
- Rewards/rejected: -192.8458
|
23 |
-
- Rewards/margins: -38.2168
|
24 |
-
- Kl: 0.0
|
25 |
-
- Logps/chosen: -2590.1130
|
26 |
-
- Logps/rejected: -2166.6335
|
27 |
|
28 |
-
##
|
29 |
|
30 |
-
|
31 |
|
32 |
-
##
|
33 |
|
34 |
-
|
35 |
|
36 |
-
|
|
|
|
|
|
|
|
|
37 |
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
|
42 |
### Training hyperparameters
|
43 |
|
44 |
The following hyperparameters were used during training:
|
45 |
- learning_rate: 0.02
|
46 |
-
-
|
47 |
-
-
|
48 |
-
- seed: 42
|
49 |
- gradient_accumulation_steps: 4
|
|
|
50 |
- total_train_batch_size: 16
|
51 |
-
- optimizer:
|
52 |
-
- lr_scheduler_type:
|
53 |
-
-
|
54 |
-
-
|
55 |
-
-
|
56 |
|
57 |
### Training results
|
58 |
|
59 |
-
| Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/margins | Kl | Logps/chosen | Logps/rejected |
|
60 |
-
|:-------------:|:-----:|:----:|:---------------:|:--------------:|:----------------:|:---------------:|:---:|:------------:|:--------------:|
|
61 |
-
| 0.5885 | 0.33 | 50 | 0.5 | -231.0727 | -192.8536 | -38.2191 | 0.0 | -2590.2131 | -2166.7112 |
|
62 |
-
| 0.7906 | 0.66 | 100 | 0.5 | -231.0626 | -192.8458 | -38.2168 | 0.0 | -2590.1130 | -2166.6335 |
|
63 |
-
|
64 |
-
|
65 |
### Framework versions
|
66 |
|
67 |
-
-
|
68 |
-
-
|
69 |
-
-
|
70 |
-
-
|
71 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
license: mit
|
3 |
+
library_name: "trl"
|
4 |
tags:
|
5 |
+
- KTO
|
6 |
+
- WeniGPT
|
|
|
7 |
base_model: HuggingFaceH4/zephyr-7b-beta
|
8 |
model-index:
|
9 |
+
- name: Weni/WeniGPT-Agents-Zephyr-1.0.26-KTO
|
10 |
results: []
|
11 |
+
language: ['pt']
|
12 |
---
|
13 |
|
14 |
+
# Weni/WeniGPT-Agents-Zephyr-1.0.26-KTO
|
|
|
15 |
|
16 |
+
This model is a fine-tuned version of [HuggingFaceH4/zephyr-7b-beta] on the dataset Weni/wenigpt-agent-1.4.0 with the KTO trainer. It is part of the WeniGPT project for [Weni](https://weni.ai/).
|
17 |
+
Description: Experiment with a new tokenizer configuration for chat template of zephyr
|
18 |
|
|
|
19 |
It achieves the following results on the evaluation set:
|
20 |
+
{'eval_loss': 0.5, 'eval_runtime': 170.3048, 'eval_samples_per_second': 2.055, 'eval_steps_per_second': 0.517, 'eval_rewards/chosen': -231.06260681152344, 'eval_rewards/rejected': -192.84584045410156, 'eval_rewards/margins': -38.216800689697266, 'eval_kl': 0.0, 'eval_logps/chosen': -2590.113037109375, 'eval_logps/rejected': -2166.633544921875, 'epoch': 0.97}
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
+
## Intended uses & limitations
|
23 |
|
24 |
+
This model has not been trained to avoid specific intructions.
|
25 |
|
26 |
+
## Training procedure
|
27 |
|
28 |
+
Finetuning was done on the model HuggingFaceH4/zephyr-7b-beta with the following prompt:
|
29 |
|
30 |
+
```
|
31 |
+
---------------------
|
32 |
+
System_prompt:
|
33 |
+
Agora você se chama {name}, você é {occupation} e seu objetivo é {chatbot_goal}. O adjetivo que mais define a sua personalidade é {adjective} e você se comporta da seguinte forma:
|
34 |
+
{instructions_formatted}
|
35 |
|
36 |
+
Na sua memória você tem esse contexto:
|
37 |
+
{context}
|
38 |
+
|
39 |
+
Lista de requisitos:
|
40 |
+
- Responda de forma natural, mas nunca fale sobre um assunto fora do contexto.
|
41 |
+
- Nunca traga informações do seu próprio conhecimento.
|
42 |
+
- Repito é crucial que você responda usando apenas informações do contexto.
|
43 |
+
- Nunca mencione o contexto fornecido.
|
44 |
+
- Nunca mencione a pergunta fornecida.
|
45 |
+
- Gere a resposta mais útil possível para a pergunta usando informações do conexto acima.
|
46 |
+
- Nunca elabore sobre o porque e como você fez a tarefa, apenas responda.
|
47 |
+
|
48 |
+
|
49 |
+
---------------------
|
50 |
+
Question:
|
51 |
+
{question}
|
52 |
|
53 |
+
|
54 |
+
---------------------
|
55 |
+
Response:
|
56 |
+
{answer}
|
57 |
+
|
58 |
+
|
59 |
+
---------------------
|
60 |
+
|
61 |
+
```
|
62 |
|
63 |
### Training hyperparameters
|
64 |
|
65 |
The following hyperparameters were used during training:
|
66 |
- learning_rate: 0.02
|
67 |
+
- per_device_train_batch_size: 4
|
68 |
+
- per_device_eval_batch_size: 4
|
|
|
69 |
- gradient_accumulation_steps: 4
|
70 |
+
- num_gpus: 1
|
71 |
- total_train_batch_size: 16
|
72 |
+
- optimizer: AdamW
|
73 |
+
- lr_scheduler_type: cosine
|
74 |
+
- num_steps: 147
|
75 |
+
- quantization_type: bitsandbytes
|
76 |
+
- LoRA: ("\n - bits: 4\n - use_exllama: True\n - device_map: auto\n - use_cache: False\n - lora_r: 8\n - lora_alpha: 16\n - lora_dropout: 0.05\n - bias: none\n - target_modules: ['q_proj', 'k_proj', 'v_proj', 'o_proj', 'gate_proj', 'up_proj', 'down_proj', 'lm_head', 'embed_tokens']\n - task_type: CAUSAL_LM",)
|
77 |
|
78 |
### Training results
|
79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
### Framework versions
|
81 |
|
82 |
+
- transformers==4.38.2
|
83 |
+
- datasets==2.18.0
|
84 |
+
- peft==0.10.0
|
85 |
+
- safetensors==0.4.2
|
86 |
+
- evaluate==0.4.1
|
87 |
+
- bitsandbytes==0.43
|
88 |
+
- huggingface_hub==0.22.2
|
89 |
+
- seqeval==1.2.2
|
90 |
+
- optimum==1.18.1
|
91 |
+
- auto-gptq==0.7.1
|
92 |
+
- gpustat==1.1.1
|
93 |
+
- deepspeed==0.14.0
|
94 |
+
- wandb==0.16.6
|
95 |
+
- trl==0.8.1
|
96 |
+
- accelerate==0.29.2
|
97 |
+
- coloredlogs==15.0.1
|
98 |
+
- traitlets==5.14.2
|
99 |
+
- autoawq@https://github.com/casper-hansen/AutoAWQ/releases/download/v0.2.4/autoawq-0.2.4+cu118-cp310-cp310-linux_x86_64.whl
|
100 |
+
|
101 |
+
### Hardware
|
102 |
+
- Cloud provided: runpod.io
|
adapter_config.json
CHANGED
@@ -20,14 +20,14 @@
|
|
20 |
"rank_pattern": {},
|
21 |
"revision": null,
|
22 |
"target_modules": [
|
23 |
-
"
|
|
|
|
|
|
|
24 |
"o_proj",
|
25 |
"embed_tokens",
|
|
|
26 |
"lm_head",
|
27 |
-
"gate_proj",
|
28 |
-
"k_proj",
|
29 |
-
"v_proj",
|
30 |
-
"down_proj",
|
31 |
"q_proj"
|
32 |
],
|
33 |
"task_type": "CAUSAL_LM",
|
|
|
20 |
"rank_pattern": {},
|
21 |
"revision": null,
|
22 |
"target_modules": [
|
23 |
+
"down_proj",
|
24 |
+
"v_proj",
|
25 |
+
"k_proj",
|
26 |
+
"gate_proj",
|
27 |
"o_proj",
|
28 |
"embed_tokens",
|
29 |
+
"up_proj",
|
30 |
"lm_head",
|
|
|
|
|
|
|
|
|
31 |
"q_proj"
|
32 |
],
|
33 |
"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 1134834064
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ca0c6df7a14bb939d714a70cf6c60964caabda1b7f33ca31a3c030ddb2a56a53
|
3 |
size 1134834064
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 5688
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f62db06d46b3b4386c365ab38793a09c9633fc50d4007e734ec177af97260ebe
|
3 |
size 5688
|