ironrock commited on
Commit
8602a4d
1 Parent(s): aaf769a

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. README.md +103 -0
  2. special_tokens_map.json +24 -0
  3. tokenizer.json +0 -0
  4. tokenizer.model +3 -0
  5. tokenizer_config.json +45 -0
README.md ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - pt
4
+ license: mit
5
+ library_name: peft
6
+ tags:
7
+ - SFT
8
+ - WeniGPT
9
+ base_model: mistralai/Mixtral-8x7B-Instruct-v0.1
10
+ model-index:
11
+ - name: Weni/WeniGPT-Agents-Mixtral-1.0.5-SFT
12
+ results: []
13
+ ---
14
+
15
+ # Weni/WeniGPT-Agents-Mixtral-1.0.5-SFT
16
+
17
+ This model is a fine-tuned version of [mistralai/Mixtral-8x7B-Instruct-v0.1] on the dataset Weni/wenigpt-agent-1.4.0 with the SFT trainer. It is part of the WeniGPT project for [Weni](https://weni.ai/).
18
+ Description: Experiment with SFT and a new tokenizer configuration for chat template of mixtral
19
+
20
+ It achieves the following results on the evaluation set:
21
+ {'eval_loss': 1.02373468875885, 'eval_runtime': 12.0111, 'eval_samples_per_second': 3.83, 'eval_steps_per_second': 0.999, 'epoch': 2.97}
22
+
23
+ ## Intended uses & limitations
24
+
25
+ This model has not been trained to avoid specific intructions.
26
+
27
+ ## Training procedure
28
+
29
+ Finetuning was done on the model mistralai/Mixtral-8x7B-Instruct-v0.1 with the following prompt:
30
+
31
+ ```
32
+ ---------------------
33
+ System_prompt:
34
+ 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:
35
+ {instructions_formatted}
36
+
37
+ {context_statement}
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.0002
67
+ - per_device_train_batch_size: 1
68
+ - per_device_eval_batch_size: 1
69
+ - gradient_accumulation_steps: 4
70
+ - num_gpus: 4
71
+ - total_train_batch_size: 16
72
+ - optimizer: AdamW
73
+ - lr_scheduler_type: cosine
74
+ - num_steps: 78
75
+ - quantization_type: bitsandbytes
76
+ - LoRA: ("\n - bits: 4\n - use_exllama: True\n - device_map: auto\n - use_cache: False\n - lora_r: 16\n - lora_alpha: 32\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",)
77
+
78
+ ### Training results
79
+
80
+ ### Framework versions
81
+
82
+ - PEFT 0.10.0
83
+ - transformers==4.38.2
84
+ - datasets==2.18.0
85
+ - peft==0.10.0
86
+ - safetensors==0.4.2
87
+ - evaluate==0.4.1
88
+ - bitsandbytes==0.43
89
+ - huggingface_hub==0.22.2
90
+ - seqeval==1.2.2
91
+ - optimum==1.18.1
92
+ - auto-gptq==0.7.1
93
+ - gpustat==1.1.1
94
+ - deepspeed==0.14.0
95
+ - wandb==0.16.6
96
+ - trl==0.8.1
97
+ - accelerate==0.29.2
98
+ - coloredlogs==15.0.1
99
+ - traitlets==5.14.2
100
+ - autoawq@https://github.com/casper-hansen/AutoAWQ/releases/download/v0.2.4/autoawq-0.2.4+cu118-cp310-cp310-linux_x86_64.whl
101
+
102
+ ### Hardware
103
+ - Cloud provided: runpod.io
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": "<unk>",
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,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ },
30
+ "additional_special_tokens": [],
31
+ "bos_token": "<s>",
32
+ "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 %}",
33
+ "clean_up_tokenization_spaces": false,
34
+ "eos_token": "</s>",
35
+ "legacy": true,
36
+ "max_lenght": 4096,
37
+ "model_max_length": 1000000000000000019884624838656,
38
+ "pad_token": "<unk>",
39
+ "padding": true,
40
+ "sp_model_kwargs": {},
41
+ "spaces_between_special_tokens": false,
42
+ "tokenizer_class": "LlamaTokenizer",
43
+ "unk_token": "<unk>",
44
+ "use_default_system_prompt": false
45
+ }