beamaia's picture
Training in progress, step 100
0102234 verified
metadata
license: mit
library_name: trl
tags:
  - KTO
  - WeniGPT
base_model: HuggingFaceH4/zephyr-7b-beta
model-index:
  - name: Weni/WeniGPT-Agents-Zephyr-1.0.27-KTO
    results: []
language:
  - pt

Weni/WeniGPT-Agents-Zephyr-1.0.27-KTO

This model is a fine-tuned version of [HuggingFaceH4/zephyr-7b-beta] on the dataset Weni/wenigpt-agent-1.4.0 with the KTO trainer. It is part of the WeniGPT project for Weni. Description: Experiment with a new tokenizer configuration for chat template of zephyr

It achieves the following results on the evaluation set: {'eval_loss': 0.47991228103637695, 'eval_runtime': 169.8862, 'eval_samples_per_second': 2.06, 'eval_steps_per_second': 0.518, 'eval_rewards/chosen': 0.06480830907821655, 'eval_rewards/rejected': -0.10202363133430481, 'eval_rewards/margins': 0.16683195531368256, 'eval_kl': 0.9039192199707031, 'eval_logps/chosen': -278.8386535644531, 'eval_logps/rejected': -239.19561767578125, 'epoch': 0.97}

Intended uses & limitations

This model has not been trained to avoid specific intructions.

Training procedure

Finetuning was done on the model HuggingFaceH4/zephyr-7b-beta with the following prompt:

---------------------
System_prompt:
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:
{instructions_formatted}

Na sua memória você tem esse contexto:
{context}

Lista de requisitos:
 - Responda de forma natural, mas nunca fale sobre um assunto fora do contexto.
 - Nunca traga informações do seu próprio conhecimento.
 - Repito é crucial que você responda usando apenas informações do contexto.
 - Nunca mencione o contexto fornecido.
 - Nunca mencione a pergunta fornecida.
 - Gere a resposta mais útil possível para a pergunta usando informações do conexto acima.
 - Nunca elabore sobre o porque e como você fez a tarefa, apenas responda.


---------------------
Question:
{question}


---------------------
Response:
{answer}


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

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 2e-06
  • per_device_train_batch_size: 4
  • per_device_eval_batch_size: 4
  • gradient_accumulation_steps: 4
  • num_gpus: 1
  • total_train_batch_size: 16
  • optimizer: AdamW
  • lr_scheduler_type: cosine
  • num_steps: 147
  • 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.05\n - bias: none\n - target_modules: ['q_proj', 'k_proj', 'v_proj', 'o_proj', 'gate_proj', 'up_proj', 'down_proj', 'lm_head', 'embed_tokens']\n - task_type: CAUSAL_LM",)

Training results

Framework versions

Hardware

  • Cloud provided: runpod.io