RichardErkhov commited on
Commit
28b4d64
1 Parent(s): 9b866e8

uploaded readme

Browse files
Files changed (1) hide show
  1. README.md +129 -0
README.md ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Quantization made by Richard Erkhov.
2
+
3
+ [Github](https://github.com/RichardErkhov)
4
+
5
+ [Discord](https://discord.gg/pvy7H8DZMG)
6
+
7
+ [Request more models](https://github.com/RichardErkhov/quant_request)
8
+
9
+
10
+ gemma-2-9b-it-WPO-HB - GGUF
11
+ - Model creator: https://huggingface.co/wzhouad/
12
+ - Original model: https://huggingface.co/wzhouad/gemma-2-9b-it-WPO-HB/
13
+
14
+
15
+ | Name | Quant method | Size |
16
+ | ---- | ---- | ---- |
17
+ | [gemma-2-9b-it-WPO-HB.Q2_K.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.Q2_K.gguf) | Q2_K | 3.54GB |
18
+ | [gemma-2-9b-it-WPO-HB.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.IQ3_XS.gguf) | IQ3_XS | 3.86GB |
19
+ | [gemma-2-9b-it-WPO-HB.IQ3_S.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.IQ3_S.gguf) | IQ3_S | 4.04GB |
20
+ | [gemma-2-9b-it-WPO-HB.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.Q3_K_S.gguf) | Q3_K_S | 4.04GB |
21
+ | [gemma-2-9b-it-WPO-HB.IQ3_M.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.IQ3_M.gguf) | IQ3_M | 4.19GB |
22
+ | [gemma-2-9b-it-WPO-HB.Q3_K.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.Q3_K.gguf) | Q3_K | 4.43GB |
23
+ | [gemma-2-9b-it-WPO-HB.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.Q3_K_M.gguf) | Q3_K_M | 4.43GB |
24
+ | [gemma-2-9b-it-WPO-HB.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.Q3_K_L.gguf) | Q3_K_L | 4.78GB |
25
+ | [gemma-2-9b-it-WPO-HB.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.IQ4_XS.gguf) | IQ4_XS | 4.86GB |
26
+ | [gemma-2-9b-it-WPO-HB.Q4_0.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.Q4_0.gguf) | Q4_0 | 5.07GB |
27
+ | [gemma-2-9b-it-WPO-HB.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.IQ4_NL.gguf) | IQ4_NL | 5.1GB |
28
+ | [gemma-2-9b-it-WPO-HB.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.Q4_K_S.gguf) | Q4_K_S | 5.1GB |
29
+ | [gemma-2-9b-it-WPO-HB.Q4_K.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.Q4_K.gguf) | Q4_K | 5.37GB |
30
+ | [gemma-2-9b-it-WPO-HB.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.Q4_K_M.gguf) | Q4_K_M | 5.37GB |
31
+ | [gemma-2-9b-it-WPO-HB.Q4_1.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.Q4_1.gguf) | Q4_1 | 5.55GB |
32
+ | [gemma-2-9b-it-WPO-HB.Q5_0.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.Q5_0.gguf) | Q5_0 | 6.04GB |
33
+ | [gemma-2-9b-it-WPO-HB.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.Q5_K_S.gguf) | Q5_K_S | 6.04GB |
34
+ | [gemma-2-9b-it-WPO-HB.Q5_K.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.Q5_K.gguf) | Q5_K | 6.19GB |
35
+ | [gemma-2-9b-it-WPO-HB.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.Q5_K_M.gguf) | Q5_K_M | 6.19GB |
36
+ | [gemma-2-9b-it-WPO-HB.Q5_1.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.Q5_1.gguf) | Q5_1 | 6.52GB |
37
+ | [gemma-2-9b-it-WPO-HB.Q6_K.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.Q6_K.gguf) | Q6_K | 7.07GB |
38
+ | [gemma-2-9b-it-WPO-HB.Q8_0.gguf](https://huggingface.co/RichardErkhov/wzhouad_-_gemma-2-9b-it-WPO-HB-gguf/blob/main/gemma-2-9b-it-WPO-HB.Q8_0.gguf) | Q8_0 | 9.15GB |
39
+
40
+
41
+
42
+
43
+ Original model description:
44
+ ---
45
+ base_model: google/gemma-2-9b-it
46
+ library_name: transformers
47
+ datasets:
48
+ - wzhouad/gemma-2-ultrafeedback-hybrid
49
+ tags:
50
+ - alignment-handbook
51
+ - gemma
52
+ ---
53
+ 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.
54
+
55
+ ## Model Description
56
+
57
+ ### Data
58
+ gemma-2-9b-it finetuned by hybrid WPO, utilizing two types of data:
59
+ 1. On-policy sampled gemma outputs based on Ultrafeedback prompts.
60
+ 2. GPT-4-turbo outputs based on Ultrafeedback prompts.
61
+
62
+ 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.
63
+
64
+ We provide our training data at [wzhouad/gemma-2-ultrafeedback-hybrid](https://huggingface.co/datasets/wzhouad/gemma-2-ultrafeedback-hybrid).
65
+
66
+ ### [AlpacaEval Eval Results](https://tatsu-lab.github.io/alpaca_eval/)
67
+ | Model | LC | WR | Avg. Length |
68
+ |-------------------------------------------|:------------:|:--------:|:-----------:|
69
+ |[gemma-2-9b-it-WPO-HB](https://huggingface.co/wzhouad/gemma-2-9b-it-WPO-HB) |76.73 | 77.83 | 2285
70
+
71
+ ### Link to Other WPO Models
72
+ Check our [WPO Collection](https://huggingface.co/collections/wzhouad/wpo-66a04e4f552c0be180da2931).
73
+
74
+ ### Training Hyperparameters
75
+ The following hyperparameters were used during training:
76
+
77
+ - learning_rate: 1e-06
78
+ - beta: 0.01
79
+ - per_device_train_batch_size: 1
80
+ - gradient_accumulation_steps: 16
81
+ - seed: 1
82
+ - num_devices: 8
83
+ - optim: adamw_torch
84
+ - lr_scheduler_type: cosine
85
+ - lr_scheduler_warmup_ratio: 0.1
86
+ - num_train_epochs: 2.0
87
+ - max_length: 2048
88
+ - max_prompt_length: 1800
89
+
90
+ ## License
91
+ This model is licensed under the Zoom software license and is permitted for use only for noncommercial, educational, or academic research purposes.
92
+
93
+ ## Citation
94
+ WPO:
95
+ ```
96
+ @article{zhou2024wpo,
97
+ title={WPO: Enhancing RLHF with Weighted Preference Optimization},
98
+ 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},
99
+ journal={arXiv preprint arXiv:2406.11827},
100
+ year={2024}
101
+ }
102
+ ```
103
+
104
+ Ultrafeedback:
105
+ ```
106
+ @article{cui2023ultrafeedback,
107
+ title={{UltraFeedback}: Boosting language models with high-quality feedback},
108
+ 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},
109
+ journal={arXiv preprint arXiv:2310.01377},
110
+ year={2023}
111
+ }
112
+ ```
113
+
114
+ Armo-RM:
115
+ ```
116
+ @article{ArmoRM,
117
+ title={Interpretable Preferences via Multi-Objective Reward Modeling and Mixture-of-Experts},
118
+ author={Haoxiang Wang and Wei Xiong and Tengyang Xie and Han Zhao and Tong Zhang},
119
+ journal={arXiv preprint arXiv:2406.12845},
120
+ }
121
+
122
+ @inproceedings{wang2024arithmetic,
123
+ title={Arithmetic Control of LLMs for Diverse User Preferences: Directional Preference Alignment with Multi-Objective Rewards},
124
+ author={Haoxiang Wang and Yong Lin and Wei Xiong and Rui Yang and Shizhe Diao and Shuang Qiu and Han Zhao and Tong Zhang},
125
+ year={2024},
126
+ booktitle={ACL},
127
+ }
128
+ ```
129
+