peft safetensors region:us
---
library_name: peft
---

## Prompt Template:

Same template was used in SFT, and DPO process:

```
### Instruction:
Use the article title and text below, to write the funniest possible comment about this article.

### Input:
{" ".join(sample['title_article_text'].split(' ')[:300])}

### Response:
```


## Training procedure


The following `bitsandbytes` quantization config was used during training:
- quant_method: QuantizationMethod.BITS_AND_BYTES
- load_in_8bit: False
- load_in_4bit: True
- llm_int8_threshold: 6.0
- llm_int8_skip_modules: None
- llm_int8_enable_fp32_cpu_offload: False
- llm_int8_has_fp16_weight: False
- bnb_4bit_quant_type: fp4
- bnb_4bit_use_double_quant: False
- bnb_4bit_compute_dtype: float32

### Framework versions

```python
transformers==4.35.0
peft==0.5.0
trl==0.7.2
```