aashish1904 commited on
Commit
8514eea
1 Parent(s): b53dd85

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +96 -0
README.md ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+
4
+ base_model: google/gemma-2-9b-it
5
+ library_name: transformers
6
+ datasets:
7
+ - wzhouad/gemma-2-ultrafeedback-hybrid
8
+ tags:
9
+ - alignment-handbook
10
+ - gemma
11
+
12
+ ---
13
+
14
+ ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)
15
+
16
+ # QuantFactory/gemma-2-9b-it-WPO-HB-GGUF
17
+ This is quantized version of [wzhouad/gemma-2-9b-it-WPO-HB](https://huggingface.co/wzhouad/gemma-2-9b-it-WPO-HB) created using llama.cpp
18
+
19
+ # Original Model Card
20
+
21
+ We propose a novel strategy to enhance off-policy preference optimization by simulating on-policy learning with off-policy preference data. Our Weighted Preference Optimization (WPO) method adapts off-policy data to resemble on-policy data more closely by reweighting preference pairs according to their probability under the current policy. This method not only addresses the distributional gap problem but also enhances the optimization process without incurring additional costs. Refer to our [preprint](https://arxiv.org/abs/2406.11827) and [repo](https://github.com/wzhouad/WPO) for details.
22
+
23
+ ## Model Description
24
+
25
+ ### Data
26
+ gemma-2-9b-it finetuned by hybrid WPO, utilizing two types of data:
27
+ 1. On-policy sampled gemma outputs based on Ultrafeedback prompts.
28
+ 2. GPT-4-turbo outputs based on Ultrafeedback prompts.
29
+
30
+ In comparison to the preference data construction method in our paper, we switch to RLHFlow/ArmoRM-Llama3-8B-v0.1 to score the outputs, and choose the outputs with maximum/minimum scores to form a preference pair.
31
+
32
+ We provide our training data at [wzhouad/gemma-2-ultrafeedback-hybrid](https://huggingface.co/datasets/wzhouad/gemma-2-ultrafeedback-hybrid).
33
+
34
+ ### [AlpacaEval Eval Results](https://tatsu-lab.github.io/alpaca_eval/)
35
+ | Model | LC | WR | Avg. Length |
36
+ |-------------------------------------------|:------------:|:--------:|:-----------:|
37
+ |[gemma-2-9b-it-WPO-HB](https://huggingface.co/wzhouad/gemma-2-9b-it-WPO-HB) |76.73 | 77.83 | 2285
38
+
39
+ ### Link to Other WPO Models
40
+ Check our [WPO Collection](https://huggingface.co/collections/wzhouad/wpo-66a04e4f552c0be180da2931).
41
+
42
+ ### Training Hyperparameters
43
+ The following hyperparameters were used during training:
44
+
45
+ - learning_rate: 1e-06
46
+ - beta: 0.01
47
+ - per_device_train_batch_size: 1
48
+ - gradient_accumulation_steps: 16
49
+ - seed: 1
50
+ - num_devices: 8
51
+ - optim: adamw_torch
52
+ - lr_scheduler_type: cosine
53
+ - lr_scheduler_warmup_ratio: 0.1
54
+ - num_train_epochs: 2.0
55
+ - max_length: 2048
56
+ - max_prompt_length: 1800
57
+
58
+ ## License
59
+ This model is licensed under the Zoom software license and is permitted for use only for noncommercial, educational, or academic research purposes.
60
+
61
+ ## Citation
62
+ WPO:
63
+ ```
64
+ @article{zhou2024wpo,
65
+ title={WPO: Enhancing RLHF with Weighted Preference Optimization},
66
+ author={Zhou, Wenxuan and Agrawal, Ravi and Zhang, Shujian and Indurthi, Sathish Reddy and Zhao, Sanqiang and Song, Kaiqiang and Xu, Silei and Zhu, Chenguang},
67
+ journal={arXiv preprint arXiv:2406.11827},
68
+ year={2024}
69
+ }
70
+ ```
71
+
72
+ Ultrafeedback:
73
+ ```
74
+ @article{cui2023ultrafeedback,
75
+ title={{UltraFeedback}: Boosting language models with high-quality feedback},
76
+ author={Cui, Ganqu and Yuan, Lifan and Ding, Ning and Yao, Guanming and Zhu, Wei and Ni, Yuan and Xie, Guotong and Liu, Zhiyuan and Sun, Maosong},
77
+ journal={arXiv preprint arXiv:2310.01377},
78
+ year={2023}
79
+ }
80
+ ```
81
+
82
+ Armo-RM:
83
+ ```
84
+ @article{ArmoRM,
85
+ title={Interpretable Preferences via Multi-Objective Reward Modeling and Mixture-of-Experts},
86
+ author={Haoxiang Wang and Wei Xiong and Tengyang Xie and Han Zhao and Tong Zhang},
87
+ journal={arXiv preprint arXiv:2406.12845},
88
+ }
89
+
90
+ @inproceedings{wang2024arithmetic,
91
+ title={Arithmetic Control of LLMs for Diverse User Preferences: Directional Preference Alignment with Multi-Objective Rewards},
92
+ author={Haoxiang Wang and Yong Lin and Wei Xiong and Rui Yang and Shizhe Diao and Shuang Qiu and Han Zhao and Tong Zhang},
93
+ year={2024},
94
+ booktitle={ACL},
95
+ }
96
+ ```