beamaia commited on
Commit
81662fc
·
verified ·
1 Parent(s): 8cd33d4

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +75 -35
README.md CHANGED
@@ -1,66 +1,106 @@
1
  ---
2
- license: apache-2.0
3
- library_name: peft
4
  tags:
5
- - trl
6
- - sft
7
  - SFT
8
  - Zeroshot
9
- - generated_from_trainer
10
  base_model: mistralai/Mistral-7B-Instruct-v0.2
11
  model-index:
12
- - name: model-card-test1
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
- # model-card-test1
20
 
21
- This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.2](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2) on an unknown dataset.
22
  It achieves the following results on the evaluation set:
23
- - Loss: 1.8359
24
 
25
- ## Model description
26
 
27
- More information needed
28
 
29
- ## Intended uses & limitations
30
 
31
- More information needed
32
 
33
- ## Training and evaluation data
 
 
 
34
 
35
- More information needed
 
 
 
36
 
37
- ## Training procedure
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
  ### Training hyperparameters
40
 
41
  The following hyperparameters were used during training:
42
  - learning_rate: 0.0002
43
- - train_batch_size: 8
44
- - eval_batch_size: 2
45
- - seed: 42
46
- - distributed_type: multi-GPU
47
- - num_devices: 2
48
  - total_train_batch_size: 16
49
- - total_eval_batch_size: 4
50
- - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
- - lr_scheduler_type: linear
52
- - lr_scheduler_warmup_ratio: 0.1
53
- - training_steps: 1
54
- - mixed_precision_training: Native AMP
55
 
56
  ### Training results
57
 
58
-
59
 
60
  ### Framework versions
61
 
62
- - PEFT 0.8.2
63
- - Transformers 4.39.0.dev0
64
- - Pytorch 2.1.0+cu118
65
- - Datasets 2.17.1
66
- - Tokenizers 0.15.1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: mit
3
+ library_name: "trl"
4
  tags:
 
 
5
  - SFT
6
  - Zeroshot
 
7
  base_model: mistralai/Mistral-7B-Instruct-v0.2
8
  model-index:
9
+ - name: Weni/model-card-test1
10
  results: []
11
+ language: ['pt', 'en', 'es']
12
  ---
13
 
14
+ # Weni/model-card-test1
 
15
 
16
+ 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/).
17
 
 
18
  It achieves the following results on the evaluation set:
19
+ - Loss: 0
20
 
21
+ ## Intended uses & limitations
22
 
23
+ This model has not been trained to avoid specific intructions.
24
 
25
+ ## Training procedure
26
 
27
+ Finetuning was done on the model mistralai/Mistral-7B-Instruct-v0.2 with the following prompt:
28
 
29
+ ```
30
+ Portuguese:
31
+ <s>[INST]Você é muito especialista em classificar a frase do usuário em um chatbot sobre: {context}
32
+ 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".
33
 
34
+ # Essas são as Classes com seus Id e Contexto:
35
+ \`\`\`python
36
+ {all_classes}
37
+ \`\`\`
38
 
39
+ # Frase do usuário: {input}
40
+ # Id da Classe: [/INST] \n {output_id} </s>
41
+
42
+
43
+ Spanish:
44
+ <s>[INST]Eres muy experto en clasificar la frase del usuario en un chatbot sobre: {context}
45
+ 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".
46
+
47
+ # Estas son las Clases con sus Id y Contexto:
48
+ {all_classes}
49
+
50
+ # Frase del usuario: {input}
51
+ # Id de la Clase: [/INST] \n {output_id} </s>
52
+
53
+
54
+ English:
55
+ <s>[INST]You are very expert in classifying the user sentence in a chatbot about: {context}
56
+ 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".
57
+
58
+ # These are the Classes and its Context:
59
+ {all_classes}
60
+
61
+ # User's sentence: {input}
62
+ # Class Id: [/INST] \n {output_id} </s>
63
+ ```
64
 
65
  ### Training hyperparameters
66
 
67
  The following hyperparameters were used during training:
68
  - learning_rate: 0.0002
69
+ - per_device_train_batch_size: 8
70
+ - per_device_eval_batch_size: 2
71
+ - gradient_accumulation_steps: 1
72
+ - num_gpus: 2
 
73
  - total_train_batch_size: 16
74
+ - optimizer: AdamW
75
+ - lr_scheduler_type: cosine
76
+ - num_steps: 1
77
+ - quantization_type: bitsandbytes
78
+ - 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.1\n - bias: none\n - target_modules: ['q_proj', 'k_proj', 'v_proj', 'o_proj']\n - task_type: CAUSAL_LM",)
 
79
 
80
  ### Training results
81
 
82
+ {'eval_loss': 1.8359004259109497, 'eval_runtime': 399.3154, 'eval_samples_per_second': 7.18, 'eval_steps_per_second': 1.796, 'epoch': 0.0}
83
 
84
  ### Framework versions
85
 
86
+ - git+https://github.com/huggingface/transformers@main
87
+ - datasets==2.17.1
88
+ - peft==0.8.2
89
+ - safetensors==0.4.2
90
+ - evaluate==0.4.1
91
+ - bitsandbytes==0.42
92
+ - huggingface_hub==0.20.3
93
+ - seqeval==1.2.2
94
+ - optimum==1.17.1
95
+ - auto-gptq==0.7.0
96
+ - gpustat==1.1.1
97
+ - deepspeed==0.13.2
98
+ - wandb==0.16.3
99
+ - git+https://github.com/huggingface/trl.git@main
100
+ - git+https://github.com/huggingface/accelerate.git@main
101
+ - coloredlogs==15.0.1
102
+ - traitlets==5.14.1
103
+ - autoawq@https://github.com/casper-hansen/AutoAWQ/releases/download/v0.2.0/autoawq-0.2.0+cu118-cp310-cp310-linux_x86_64.whl
104
+
105
+ ### Hardware
106
+ - Cloud provided: runpod.io