Model save
Browse files- README.md +42 -71
- adapter_model.safetensors +2 -2
README.md
CHANGED
@@ -1,103 +1,74 @@
|
|
1 |
---
|
2 |
license: mit
|
3 |
-
library_name:
|
4 |
tags:
|
|
|
|
|
5 |
- KTO
|
6 |
- WeniGPT
|
|
|
7 |
base_model: HuggingFaceH4/zephyr-7b-beta
|
8 |
model-index:
|
9 |
-
- name:
|
10 |
results: []
|
11 |
-
language: ['pt']
|
12 |
---
|
13 |
|
14 |
-
|
|
|
15 |
|
16 |
-
|
17 |
-
Description: testing kto dataset during training
|
18 |
|
|
|
19 |
It achieves the following results on the evaluation set:
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
-
##
|
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 |
-
|
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.0002
|
67 |
-
-
|
68 |
-
-
|
|
|
69 |
- gradient_accumulation_steps: 4
|
70 |
-
- num_gpus: 1
|
71 |
- total_train_batch_size: 16
|
72 |
-
- optimizer:
|
73 |
-
- lr_scheduler_type:
|
74 |
-
-
|
75 |
-
-
|
76 |
-
-
|
77 |
|
78 |
### Training results
|
79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
### Framework versions
|
81 |
|
82 |
-
-
|
83 |
-
-
|
84 |
-
-
|
85 |
-
-
|
86 |
-
-
|
87 |
-
- bitsandbytes==0.43
|
88 |
-
- huggingface_hub==0.20.3
|
89 |
-
- seqeval==1.2.2
|
90 |
-
- optimum==1.17.1
|
91 |
-
- auto-gptq==0.7.1
|
92 |
-
- gpustat==1.1.1
|
93 |
-
- deepspeed==0.14.0
|
94 |
-
- wandb==0.16.3
|
95 |
-
- # trl==0.8.1
|
96 |
-
- git+https://github.com/kawine/trl.git#egg=trl
|
97 |
-
- accelerate==0.28.0
|
98 |
-
- coloredlogs==15.0.1
|
99 |
-
- traitlets==5.14.1
|
100 |
-
- autoawq@https://github.com/casper-hansen/AutoAWQ/releases/download/v0.2.0/autoawq-0.2.0+cu118-cp310-cp310-linux_x86_64.whl
|
101 |
-
|
102 |
-
### Hardware
|
103 |
-
- Cloud provided: runpod.io
|
|
|
1 |
---
|
2 |
license: mit
|
3 |
+
library_name: peft
|
4 |
tags:
|
5 |
+
- trl
|
6 |
+
- kto
|
7 |
- KTO
|
8 |
- WeniGPT
|
9 |
+
- generated_from_trainer
|
10 |
base_model: HuggingFaceH4/zephyr-7b-beta
|
11 |
model-index:
|
12 |
+
- name: WeniGPT-Agents-Zephyr-1.0.1-KTO
|
13 |
results: []
|
|
|
14 |
---
|
15 |
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
|
19 |
+
# WeniGPT-Agents-Zephyr-1.0.1-KTO
|
|
|
20 |
|
21 |
+
This model is a fine-tuned version of [HuggingFaceH4/zephyr-7b-beta](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta) on the None dataset.
|
22 |
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.4733
|
24 |
+
- Rewards/chosen: -219.2543
|
25 |
+
- Logps/chosen: -2469.1658
|
26 |
+
- Rewards/rejected: -195.7859
|
27 |
+
- Logps/rejected: -2225.6833
|
28 |
+
- Kl: 0.0
|
29 |
+
- Rewards/margins: -26.2359
|
30 |
|
31 |
+
## Model description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
+
More information needed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
|
35 |
+
## Intended uses & limitations
|
36 |
|
37 |
+
More information needed
|
|
|
|
|
38 |
|
39 |
+
## Training and evaluation data
|
40 |
|
41 |
+
More information needed
|
42 |
|
43 |
+
## Training procedure
|
44 |
|
45 |
### Training hyperparameters
|
46 |
|
47 |
The following hyperparameters were used during training:
|
48 |
- learning_rate: 0.0002
|
49 |
+
- train_batch_size: 4
|
50 |
+
- eval_batch_size: 4
|
51 |
+
- seed: 42
|
52 |
- gradient_accumulation_steps: 4
|
|
|
53 |
- total_train_batch_size: 16
|
54 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
55 |
+
- lr_scheduler_type: linear
|
56 |
+
- lr_scheduler_warmup_ratio: 0.03
|
57 |
+
- training_steps: 145
|
58 |
+
- mixed_precision_training: Native AMP
|
59 |
|
60 |
### Training results
|
61 |
|
62 |
+
| Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Logps/chosen | Rewards/rejected | Logps/rejected | Kl | Rewards/margins |
|
63 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------------:|:------------:|:----------------:|:--------------:|:---:|:---------------:|
|
64 |
+
| 0.4463 | 0.34 | 50 | 0.4733 | -114.5865 | -1422.4874 | -124.0729 | -1508.5540 | 0.0 | 10.3186 |
|
65 |
+
| 0.4719 | 0.68 | 100 | 0.4733 | -219.2543 | -2469.1658 | -195.7859 | -2225.6833 | 0.0 | -26.2359 |
|
66 |
+
|
67 |
+
|
68 |
### Framework versions
|
69 |
|
70 |
+
- PEFT 0.10.0
|
71 |
+
- Transformers 4.39.1
|
72 |
+
- Pytorch 2.1.0+cu118
|
73 |
+
- Datasets 2.18.0
|
74 |
+
- Tokenizers 0.15.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
adapter_model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0cc56559735688364892fd066cf09f670d88c669dfb50ddd8e525bf409dd2aa8
|
3 |
+
size 1103203256
|