File size: 3,840 Bytes
f8e2c67
3660329
7d5b243
c64d853
3660329
 
c64d853
 
3660329
c64d853
fabe7ab
f8e2c67
 
3660329
f8e2c67
3660329
f8e2c67
c64d853
3660329
f8e2c67
3660329
f8e2c67
3660329
f8e2c67
3660329
f8e2c67
3660329
f8e2c67
3660329
 
 
fabe7ab
f8e2c67
3660329
82c1cea
3660329
82c1cea
f8e2c67
3660329
 
 
 
 
 
fabe7ab
3660329
 
 
 
 
 
 
 
 
 
fabe7ab
3660329
 
 
 
 
 
 
f8e2c67
c64d853
f8e2c67
c64d853
3660329
 
 
 
 
 
 
 
 
 
83a494b
 
 
 
 
 
 
 
 
 
 
f8e2c67
c64d853
f8e2c67
3660329
f8e2c67
c64d853
f8e2c67
3660329
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
---
license: mit
library_name: "trl"
tags:
- SFT
- Zeroshot
base_model: mistralai/Mistral-7B-Instruct-v0.2
model-index:
- name: Weni/workflow-test1
  results: []
language: ['pt', 'en', 'es']
---

# Weni/workflow-test1

This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.2] on the dataset Weni/zeroshot-3.2.0 with the SFT trainer. It is part of the Zeroshot project for [Weni](https://weni.ai/).

It achieves the following results on the evaluation set:
- Loss: 0

## Intended uses & limitations

This model has not been trained to avoid specific intructions. 

## Training procedure

Finetuning was done on the model mistralai/Mistral-7B-Instruct-v0.2 with the following prompt:

```
Portuguese:
<s>[INST]Você é muito especialista em classificar a frase do usuário em um chatbot sobre: {context}
Pare, pense bem e responda com APENAS UM ÚNICO \`id\` da classe que melhor represente a intenção para a frase do usuário de acordo com a análise de seu contexto, responda APENAS com o \`id\` da classe só se você tiver muita certeza e não explique o motivo. Na ausência, falta de informações ou caso a frase do usuário não se enquadre em nenhuma classe, classifique como "-1".

# Essas são as Classes com seus Id e Contexto:
\`\`\`python
{all_classes}
\`\`\`

# Frase do usuário: {input}
# Id da Classe: [/INST] \n {output_id} </s>


Spanish:
<s>[INST]Eres muy experto en clasificar la frase del usuario en un chatbot sobre: {context}
Deténgase, piense bien y responda con SOLO UN ÚNICO \`id\` de la clase que mejor represente la intención para la frase del usuario de acuerdo con el análisis de su contexto, responda SOLO con el \`id\` de la clase si está muy seguro y no explique el motivo. En ausencia, falta de información o en caso de que la frase del usuario no se ajuste a ninguna clase, clasifique como "-1".

# Estas son las Clases con sus Id y Contexto:
{all_classes}

# Frase del usuario: {input}
# Id de la Clase: [/INST] \n {output_id} </s>


English:
<s>[INST]You are very expert in classifying the user sentence in a chatbot about: {context}
Stop, think carefully, and respond with ONLY ONE SINGLE \`id\` of the class that best represents the intention for the user's sentence according to the analysis of its context, respond ONLY with the \`id\` of the class if you are very sure and do not explain the reason. In the absence, lack of information, or if the user's sentence does not fit into any class, classify as "-1".

# These are the Classes and its Context:
{all_classes}

# User's sentence: {input}
# Class Id: [/INST] \n {output_id} </s>
```

### Training hyperparameters

The following hyperparameters were used during training:
- learning_rate: 2e-4
- per_device_train_batch_size: 8
- per_device_eval_batch_size: 2
- gradient_accumulation_steps: 1
- num_gpus: 2
- total_train_batch_size: 16
- optimizer: AdamW
- lr_scheduler_type: cosine
- num_steps: 0
- quantization_type: bitsandbytes
- LoRA:
  - bits: 4
  - use_exllama: True
  - device_map: auto
  - use_cache: False
  - lora_r: 8
  - lora_alpha: 16
  - lora_dropout: 0.1
  - bias: none
  - target_modules: ['q_proj', 'k_proj', 'v_proj', 'o_proj']
  - task_type: CAUSAL_LM

### Training results

0

### Framework versions

- git+https://github.com/huggingface/transformers@main
- datasets==2.17.1
- peft==0.8.2
- safetensors==0.4.2
- evaluate==0.4.1
- bitsandbytes==0.42
- huggingface_hub==0.20.3
- seqeval==1.2.2
- optimum==1.17.1
- auto-gptq==0.7.0
- gpustat==1.1.1
- deepspeed==0.13.2
- wandb==0.16.3
- git+https://github.com/huggingface/trl.git@main
- git+https://github.com/huggingface/accelerate.git@main
- coloredlogs==15.0.1
- traitlets==5.14.1
- autoawq@https://github.com/casper-hansen/AutoAWQ/releases/download/v0.2.0/autoawq-0.2.0+cu118-cp310-cp310-linux_x86_64.whl

### Hardware
- Cloud provided: runpod.io