---
title: Llama-3-8B-Instruct-Uni-DPO
canonical_url: "https://www.modelscope.cn/models/pspdada/Llama-3-8B-Instruct-Uni-DPO"
md_url: "https://www.modelscope.cn/models/pspdada/Llama-3-8B-Instruct-Uni-DPO.md"
repository: pspdada/Llama-3-8B-Instruct-Uni-DPO
chinese_name: Llama-3-8B-Instruct-Uni-DPO
last_updated: 2026-02-22
license: "Apache License 2.0"
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - llama
architectures:
  - LlamaForCausalLM
parameters: 8.0B
tensor_type:
  - BF16
library_name:
  - safetensors
  - pytorch
frameworks:
  - Pytorch
language:
  - en
inference_backends:
  - "deploy_task text/emb"
  - "lmdeploy 0.9.1"
  - "lmdeploy_turbomind 0.9.1"
  - "sglang 0.5.2"
  - "vllm 0.9.2"
downloads: 19
stars: 1
tags:
  - bf16
  - llama
  - RLHF
  - DPO
---

# Llama-3-8B-Instruct-Uni-DPO

> Llama-3-8B-Instruct-Uni-DPO - pspdada 在 ModelScope 开源的模型。pspdada/Llama-3-8B-Instruct-Uni-DPO | ICLR 2026 | Uni-DPO: A Unified Paradigm for Dynamic Preference Optimization of LLMs

pspdada/Llama-3-8B-Instruct-Uni-DPO 是 ModelScope 魔搭社区上的 8.0B 参数text-generation模型，采用 Apache License 2.0 许可，可用 deploy_task text/emb、lmdeploy 0.9.1、lmdeploy_turbomind 0.9.1 部署。

- **Repository**: pspdada/Llama-3-8B-Instruct-Uni-DPO
- **License**: Apache License 2.0
- **Tasks**: text-generation
- **Parameters**: 8.0B
- **Inference backends**: deploy_task text/emb, lmdeploy 0.9.1, lmdeploy_turbomind 0.9.1, sglang 0.5.2, vllm 0.9.2
- **Tags**: bf16, llama, RLHF, DPO
- **Downloads**: 19
- **Stars**: 1
- **Last updated**: 2026-02-22

Source: https://www.modelscope.cn/models/pspdada/Llama-3-8B-Instruct-Uni-DPO

---

# `pspdada/Llama-3-8B-Instruct-Uni-DPO` | ICLR 2026 | Uni-DPO: <br> A Unified Paradigm for Dynamic Preference Optimization of LLMs <!-- omit in toc -->

<a href='https://arxiv.org/abs/2506.10054'>
<img src='https://img.shields.io/badge/论文-Arxiv-purple'></a>
<a href='https://huggingface.co/datasets/psp-dada/Uni-DPO'>
<img src='https://img.shields.io/badge/数据集-HF-Green'></a>
<a href='https://huggingface.co/collections/psp-dada/uni-dpo'>
<img src='https://img.shields.io/badge/模型-HF-orange'></a>
<a href='https://huggingface.co/papers/2506.10054'>
<img src='https://img.shields.io/badge/讨论区-HF-blue'></a>
<a href='https://github.com/pspdada/Uni-DPO/blob/main/LICENSE'>
<img src='https://img.shields.io/badge/许可证-Apache_2.0-yellow'></a>

<a href='https://modelscope.cn/datasets/pspdada/Uni-DPO'>
<img src='https://img.shields.io/badge/数据集-🤖ModelScope-pink'></a>
<a href='https://modelscope.cn/collections/pspdada/Uni-DPO'>
<img src='https://img.shields.io/badge/模型-🤖ModelScope-red'></a>

## 🎊 新闻 <!-- omit in toc -->

- [2026.02.16] 📖 代码、数据与模型已发布！
- [2026.01.26] 🎉 我们的 Uni-DPO 被 **ICLR 2026** 接收！

## 🚀 概览 <!-- omit in toc -->

**Uni-DPO** 提出一种统一的动态偏好优化范式，用于基于偏好数据训练大语言模型。不同于以往将所有偏好样本等同处理的 DPO 方法，Uni-DPO 同时考虑：**偏好数据自身质量**与**模型学习动态**，从而实现更有效、更稳健的偏好学习。

**核心优势：**

- **数据质量感知**：自适应地提升高质量样本权重，降低模糊样本影响
- **训练动态感知**：动态地关注模型尚未学会的样本，缓解过拟合
- **统一且轻量**：无缝将双视角动态加权机制和校准 NLL 损失集成到标准 DPO 训练流程，额外开销极小

## 🔑 主要特性

- **面向偏好优化的双视角动态加权。**
  Uni-DPO 联合建模了*哪些数据值得学习*（内在质量）和*模型仍存在哪些困难*（学习动态）。通过结合质量感知权重和性能感知权重，Uni-DPO 在整个优化过程中动态重新分配训练焦点。

<table align="center">
  <p align="center">
    <img src="https://modelscope.cn/api/v1/datasets/pspdada/Uni-DPO/repo?Revision=master&FilePath=docs/figures/figure1.png" width="80%" />
  </p>
</table>

- **质量感知加权过滤模糊的偏好对。**
  偏好数据的可靠性差异很大。Uni-DPO 利用偏好回答与拒绝回答之间的分数差值，为清晰、高质量的偏好对分配更高的权重，同时抑制嘈杂或模糊的样本。

<table align="center">
  <p align="center">
    <img src="https://modelscope.cn/api/v1/datasets/pspdada/Uni-DPO/repo?Revision=master&FilePath=docs/figures/figure2.png" width="80%" />
  </p>
</table>

- **性能感知加权缓解训练过程中的过拟合。**
  对于模型已经掌握的样本，即使它们质量很高，也并非总是最具信息量的。Uni-DPO 引入了一种类似焦点损失的稳定化性能权重，它会降低已拟合良好样本的权重，而强调那些困难但信息量大的样本，从而有效减少过拟合。

<table align="center">
  <p align="center">
    <img src="https://modelscope.cn/api/v1/datasets/pspdada/Uni-DPO/repo?Revision=master&FilePath=docs/figures/figure3.png" width="80%" />
  </p>
</table>

- **解耦数据质量与学习难度。**
  实证分析表明，数据质量（分数差值）和学习难度（奖励差值）之间的相关性很弱。Uni-DPO 显式地对这种不匹配进行建模，确保优化过程同时受到这两个维度的指导，而不是单独依赖其中任何一个。

<table align="center">
  <p align="center">
    <img src="https://modelscope.cn/api/v1/datasets/pspdada/Uni-DPO/repo?Revision=master&FilePath=docs/figures/figure4.png" width="80%" />
  </p>
</table>

- **在文本、数学和多模态基准测试中达到业界领先性能。**
  Uni-DPO 在多种设置下始终优于 DPO 和 SimPO。

<table align="center">
  <p align="center">
    <img src="https://modelscope.cn/api/v1/datasets/pspdada/Uni-DPO/repo?Revision=master&FilePath=docs/figures/table1.png" width="80%" />
  </p>
</table>

## 使用方法

有关此模型的详细信息，请参阅 GitHub 仓库的[文档](https://github.com/pspdada/Uni-DPO?tab=readme-ov-file#-model-weights)。

### 下载方式

您可以通过如下 `git clone` 命令，或者 `ModelScope SDK` 来下载模型

SDK 下载

```bash
# 安装 ModelScope
pip install modelscope
```

```python
# SDK 模型下载
from modelscope import snapshot_download
model_dir = snapshot_download('pspdada/Llama-3-8B-Instruct-Uni-DPO')
```

Git 下载

```bash
# Git 模型下载
git clone https://www.modelscope.cn/pspdada/Llama-3-8B-Instruct-Uni-DPO.git
```

## 📝 引用

如果我们的模型/代码/数据/论文对您有帮助，请引用我们的论文并为我们点 ⭐️！

```bibtex
@inproceedings{peng2026unidpo,
  title     = {Uni-{DPO}: A Unified Paradigm for Dynamic Preference Optimization of {LLM}s},
  author    = {Shangpin Peng and Weinong Wang and Zhuotao Tian and Senqiao Yang and Xing W and Haotian Xu and Chengquan Zhang and Takashi Isobe and Baotian Hu and Min Zhang},
  booktitle = {The Fourteenth International Conference on Learning Representations},
  year      = {2026},
  url       = {https://openreview.net/forum?id=G7DBGlgjjp}
}
```

## 📧 联系我们 <!-- omit in toc -->

如果您有任何问题、意见或建议，欢迎提交 issue 或 PR，共同推动该方向的研究进展。

## 许可证 <!-- omit in toc -->

Apache License 2.0
