# ALPO

Source code for ALPO in paper: 

**From Utterance to Vividity: Training Expressive Dialogue Translation LLM via Adaptive Local Preference Optimization**

## Run

The code can be run in the following command:

```shell script
bash train.sh
```

## Dependencies

- [pytorch](https://github.com/pytorch/pytorch) == 2.2.2

- [transformers](https://github.com/huggingface/transformers) == 4.41.2

- [vllm](https://github.com/vllm-project/vllm) == 0.4.3

## Folder Hierarchy

```
ALPO
├─Data
│  ├─Label
│  └─Source
├─Inference
├─LLaMAFactory
│  ├─config
│  │  └─deepspeed
│  ├─data
│  ├─TermRecognition
│  ├─VividnessAlignment
│  └─YamlConfig
├─Log
└─MainPipeline
    └─info
```