Edit model card

Weni/ZeroShot-3.4.6-Mistral-7b-DPO-1.0.0

This model is a fine-tuned version of [Weni/ZeroShot-3.3.14-Mistral-7b-Multilanguage-3.2.0-merged] on the dataset Weni/zeroshot-dpo-1.1.0 with the DPO trainer. It is part of the ZeroShot project for Weni.

It achieves the following results on the evaluation set: {'eval_loss': 0.43594828248023987, 'eval_runtime': 81.5996, 'eval_samples_per_second': 2.132, 'eval_steps_per_second': 0.27, 'eval_rewards/chosen': 0.5672450661659241, 'eval_rewards/rejected': -0.1869850754737854, 'eval_rewards/accuracies': 0.8446969985961914, 'eval_rewards/margins': 0.7542301416397095, 'eval_logps/rejected': -17.42223358154297, 'eval_logps/chosen': -12.130993843078613, 'eval_logits/rejected': -1.2272884845733643, 'eval_logits/chosen': -1.2476983070373535, 'epoch': 5.88}

Intended uses & limitations

This model has not been trained to avoid specific intructions.

Training procedure

Finetuning was done on the model Weni/ZeroShot-3.3.14-Mistral-7b-Multilanguage-3.2.0-merged with the following prompt:

---------------------
Portuguese:
[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:
{all_classes}

# Frase do usuário: {input}
# Id da Classe: [/INST]


---------------------
Spanish:
[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]


---------------------
English:
[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]


---------------------
Chosen_response:
{chosen_response}


---------------------
Rejected_response:
{rejected_response}


---------------------

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 2e-06
  • per_device_train_batch_size: 8
  • per_device_eval_batch_size: 8
  • gradient_accumulation_steps: 4
  • num_gpus: 1
  • total_train_batch_size: 32
  • optimizer: AdamW
  • lr_scheduler_type: cosine
  • num_steps: 288
  • quantization_type: bitsandbytes
  • 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",)

Training results

Framework versions

Hardware

  • Cloud provided: runpod.io
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference API
Unable to determine this model’s pipeline type. Check the docs .

Model tree for Weni/ZeroShot-3.4.6-Mistral-7b-DPO-1.0.0