beamaia commited on
Commit
fce61ce
1 Parent(s): b1a0a1a

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: "trl"
4
+ tags:
5
+ - KTO
6
+ - WeniGPT
7
+ base_model: Weni/WeniGPT-Agents-Mistral-1.0.1-SFT-merged
8
+ model-index:
9
+ - name: Weni/WeniGPT-Agents-Mistral-4.0.0-KTO
10
+ results: []
11
+ language: ['pt']
12
+ ---
13
+
14
+ # Weni/WeniGPT-Agents-Mistral-4.0.0-KTO
15
+
16
+ This model is a fine-tuned version of [Weni/WeniGPT-Agents-Mistral-1.0.1-SFT-merged] 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 KTO and a new tokenizer configuration for chat template of mistral
18
+
19
+ It achieves the following results on the evaluation set:
20
+ {'eval_loss': nan, 'eval_runtime': 37.5555, 'eval_samples_per_second': 5.805, 'eval_steps_per_second': 1.464, 'epoch': 0.88}
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 Weni/WeniGPT-Agents-Mistral-1.0.1-SFT-merged 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
+ {context_statement}
37
+
38
+ Lista de requisitos:
39
+ - Responda de forma natural, mas nunca fale sobre um assunto fora do contexto.
40
+ - Nunca traga informações do seu próprio conhecimento.
41
+ - Repito é crucial que você responda usando apenas informações do contexto.
42
+ - Nunca mencione o contexto fornecido.
43
+ - Nunca mencione a pergunta fornecida.
44
+ - Gere a resposta mais útil possível para a pergunta usando informações do conexto acima.
45
+ - Nunca elabore sobre o porque e como você fez a tarefa, apenas responda.
46
+
47
+
48
+ ---------------------
49
+ Question:
50
+ {question}
51
+
52
+
53
+ ---------------------
54
+ Response:
55
+ {answer}
56
+
57
+
58
+ ---------------------
59
+
60
+ ```
61
+
62
+ ### Training hyperparameters
63
+
64
+ The following hyperparameters were used during training:
65
+ - learning_rate: 0.0002
66
+ - per_device_train_batch_size: 1
67
+ - per_device_eval_batch_size: 1
68
+ - gradient_accumulation_steps: 8
69
+ - num_gpus: 4
70
+ - total_train_batch_size: 32
71
+ - optimizer: AdamW
72
+ - lr_scheduler_type: cosine
73
+ - num_steps: 23
74
+ - quantization_type: bitsandbytes
75
+ - 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']\n - task_type: CAUSAL_LM",)
76
+
77
+ ### Training results
78
+
79
+ ### Framework versions
80
+
81
+ - transformers==4.38.2
82
+ - datasets==2.18.0
83
+ - peft==0.10.0
84
+ - safetensors==0.4.2
85
+ - evaluate==0.4.1
86
+ - bitsandbytes==0.43
87
+ - huggingface_hub==0.22.2
88
+ - seqeval==1.2.2
89
+ - optimum==1.18.1
90
+ - auto-gptq==0.7.1
91
+ - gpustat==1.1.1
92
+ - deepspeed==0.14.0
93
+ - wandb==0.16.6
94
+ - trl==0.8.1
95
+ - accelerate==0.29.2
96
+ - coloredlogs==15.0.1
97
+ - traitlets==5.14.2
98
+ - autoawq@https://github.com/casper-hansen/AutoAWQ/releases/download/v0.2.4/autoawq-0.2.4+cu118-cp310-cp310-linux_x86_64.whl
99
+
100
+ ### Hardware
101
+ - Cloud provided: runpod.io
added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "<|im_end|>": 32001,
3
+ "<|im_start|>": 32000
4
+ }
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:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
3
+ size 493443
tokenizer_config.json ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "32000": {
30
+ "content": "<|im_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "32001": {
38
+ "content": "<|im_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ }
45
+ },
46
+ "additional_special_tokens": [
47
+ "<|im_start|>",
48
+ "<|im_end|>"
49
+ ],
50
+ "bos_token": "<|im_start|>",
51
+ "chat_template": "{% for message in messages %}{% if message['role'] == 'user' %}{{ bos_token + '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'system' %}{{ '<<SYS>>\\n' + message['content'] + '\\n<</SYS>>\\n\\n' }}{% elif message['role'] == 'assistant' %}{{ ' ' + message['content'] + ' ' + eos_token }}{% endif %}{% endfor %}",
52
+ "clean_up_tokenization_spaces": false,
53
+ "eos_token": "<|im_end|>",
54
+ "legacy": true,
55
+ "max_lenght": 8192,
56
+ "max_length": 8192,
57
+ "model_max_length": 1000000000000000019884624838656,
58
+ "pad_token": "<|im_end|>",
59
+ "padding": true,
60
+ "sp_model_kwargs": {},
61
+ "spaces_between_special_tokens": false,
62
+ "stride": 0,
63
+ "tokenizer_class": "LlamaTokenizer",
64
+ "truncation_side": "right",
65
+ "truncation_strategy": "longest_first",
66
+ "unk_token": "<unk>",
67
+ "use_default_system_prompt": false
68
+ }