peft - PEFT 0.5.0 text-generation en dataset:Anthropic/hh-rlhf dataset:OpenAssistant/oasst1 dataset:wangrongsheng/comparison_gpt4_data_en base_model:Nekochu/Luminia-13B-v1-Lora license:mit region:us
---
library_name: peft - PEFT 0.5.0
base_model: Nekochu/Luminia-13B-v1-Lora
license: mit
inference: false
model-index:
- name: Luminia-13B-v1-Lora
  results: []
language:
- en
datasets:
- Anthropic/hh-rlhf
- OpenAssistant/oasst1
- wangrongsheng/comparison_gpt4_data_en
model_creator: Hugging Face H4
model_name: Luminia 13B v1 Lora
model_type: llama2
prompt_template: >-
  Below is an instruction that describes a task. Write a response that
  appropriately completes the request. ### Instruction: {prompt} ### Response: 
pipeline_tag: text-generation
---

## Model Details

  QLoRA Reinforcement Learning (DPO) on Llama-2-13b-chat.

### Model Description

- **Train by:** [Nekochu]
- **Model type:** [Llama]
- **Finetuned from model [Llama2](https://huggingface.co/meta-llama/Llama-2-13b-chat-hf)**


## How to Get Started with the Model

<details>
  <summary>Output example tested In <i>text-generation-webui</i></summary>
  
| Input | base llama-2-chat | QLoRa |
|:---------:|:-------:|:---------:|
| Name 3 applications for artificial intelligence | Sure! Here are three potential applications of artificial intelligence (AI):<br><br>- Healthcare: AI can be used to analyze medical records and identify patterns that could lead to better diagnoses or treatments for diseases. Additionally, AI-powered robots can assist in surgeries and other medical procedures, allowing doctors to perform complex tasks with greater precision and accuracy.<br> - Finance: AI can be used to detect fraud and prevent financial losses by analyzing large amounts of data quickly and accurately. Additionally, AI-powered chatbots can help customers with their financial queries, freeing up human representatives to focus on more complex issues.<br> Education: AI can be used to personalize learning experiences for students, adapting to their individual needs and abilities. Additionally, AI-powered tools can help teachers with grading and providing feedback, reducing their workload and allowing them to focus on more important aspects of  | Certainly! In terms of applications, there are countless possibilities, but here are three examples that come to mind: <br><br> 1) Virtual Assistants - These virtual assistants use natural language processing (NLP) capabilities to understand voice commands from users, perform tasks such as scheduling appointments or sending emails, and even make decisions based on user preferences.<br> 2) Predictive Maintenance - Artificial intelligence algorithms can analyze data from sensors in industrial machines and predict when maintenance will be required, reducing downtime and increasing productivity.<br> 3) Fraud Detection - Machine learning algorithms can analyze patterns in customer transactions to identify fraudulent activity, allowing businesses to take action before financial loss occurs. |

</details>

## Prompt template: Alpaca

```
Below is an instruction that describes a task. Write a response that appropriately completes the request.
### Instruction:
{prompt}
### Response:
```

## Training Details

main branch is 200k step. 3 epoch for a total of [400k step](https://huggingface.co/Nekochu/Luminia-13B-v1-QLora/tree/400k) in 10 days

<details>
  <summary>Click to see details</summary>

## Training and evaluation data

<div style="width: auto; margin-left: auto; margin-right: auto">
    <img src="https://i.imgur.com/25r7urB.jpg" alt="Nekochu" style="width: 100%; min-width: 400px; display: block; margin: auto;">
</div>

 - [Luminia 13B v1 evaluation reward ](https://huggingface.co/Nekochu/Luminia-13B-v1-QLora/blob/main/trainer_state.json)

## Training procedure

<details open> <summary>Datasets</summary>

- HH-RLHF (en)
- Open Assistant (multilingual)
- GPT-4 Generated Data (en&zh)

</details>

### Training hyperparameters

The following hyperparameters were used during training:

- finetuning_type: lora
- quantization_bit: 4
- stage: dpo
- learning_rate: 5e-05
- cutoff_len: 4096
- num_train_epochs: 3.0
- max_samples: 100000
- warmup_steps: 0
- train_batch_size: 1
- distributed_type: single-GPU
- num_devices: 1
- warmup_steps: 0
- rope_scaling: linear
- lora_rank: 32
- lora_dropout: 0.15
- dpo_beta: 0.1
- bnb_4bit_compute_dtype: bfloat16

</details>

### Trainer

- hiyouga/LLaMA-Efficient-Tuning
  