Edit model card

Weni/WeniGPT-2.3.1-Zephyr-7B-LLM_Base_2.0.3_DPO

This model is a fine-tuned version of [Weni/WeniGPT-2.2.3-Zephyr-7B-LLM_Base_2.0.3_SFT] on the dataset Weni/WeniGPT-QA-1.0.1_DPO with the DPO trainer. It is part of the WeniGPT project for Weni.

It achieves the following results on the evaluation set: {'eval_loss': 0.6507170796394348, 'eval_runtime': 183.7529, 'eval_samples_per_second': 1.731, 'eval_steps_per_second': 0.218, 'eval_rewards/chosen': -0.09338005632162094, 'eval_rewards/rejected': -0.6047716736793518, 'eval_rewards/accuracies': 0.0625, 'eval_rewards/margins': 0.5113915801048279, 'eval_logps/rejected': -16.8372745513916, 'eval_logps/chosen': -7.511054039001465, 'eval_logits/rejected': -2.115985870361328, 'eval_logits/chosen': -2.114337921142578, 'epoch': 0.99}

Intended uses & limitations

This model has not been trained to avoid specific intructions.

Training procedure

Finetuning was done on the model Weni/WeniGPT-2.2.3-Zephyr-7B-LLM_Base_2.0.3_SFT with the following prompt:

---------------------
Pt:
### Instruction:
Você é um médico tratando um paciente com amnésia. Para responder as perguntas do paciente, você irá ler um texto anteriormente para se contextualizar. Se você trouxer informações desconhecidas, fora do texto lido, poderá deixar o paciente confuso. Se o paciente fizer uma questão sobre informações não presentes no texto, você precisa responder de forma educada que você não tem informação suficiente para responder, pois se tentar responder, pode trazer informações que não ajudarão o paciente recuperar sua memória.Lembre, se não estiver no texto, você precisa responder de forma educada que você não tem informação suficiente para responder. Precisamos ajudar o paciente.
</s>### Input:
TEXTO: {context}

PERGUNTA: {question}
</s>
### Response:
RESPOSTA: {chosen_response}</s>
### Response:
RESPOSTA: {rejected_response}</s>
---------------------

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 5e-05
  • 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: 89
  • 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/WeniGPT-2.3.1-Zephyr-7B-LLM_Base_2.0.3_DPO