RichardErkhov
commited on
Commit
•
649ba93
1
Parent(s):
904aa00
uploaded readme
Browse files
README.md
ADDED
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
xpo-qwen2 - GGUF
|
11 |
+
- Model creator: https://huggingface.co/qgallouedec/
|
12 |
+
- Original model: https://huggingface.co/qgallouedec/xpo-qwen2/
|
13 |
+
|
14 |
+
|
15 |
+
| Name | Quant method | Size |
|
16 |
+
| ---- | ---- | ---- |
|
17 |
+
| [xpo-qwen2.Q2_K.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.Q2_K.gguf) | Q2_K | 0.32GB |
|
18 |
+
| [xpo-qwen2.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.IQ3_XS.gguf) | IQ3_XS | 0.32GB |
|
19 |
+
| [xpo-qwen2.IQ3_S.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.IQ3_S.gguf) | IQ3_S | 0.32GB |
|
20 |
+
| [xpo-qwen2.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.Q3_K_S.gguf) | Q3_K_S | 0.32GB |
|
21 |
+
| [xpo-qwen2.IQ3_M.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.IQ3_M.gguf) | IQ3_M | 0.32GB |
|
22 |
+
| [xpo-qwen2.Q3_K.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.Q3_K.gguf) | Q3_K | 0.33GB |
|
23 |
+
| [xpo-qwen2.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.Q3_K_M.gguf) | Q3_K_M | 0.33GB |
|
24 |
+
| [xpo-qwen2.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.Q3_K_L.gguf) | Q3_K_L | 0.34GB |
|
25 |
+
| [xpo-qwen2.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.IQ4_XS.gguf) | IQ4_XS | 0.33GB |
|
26 |
+
| [xpo-qwen2.Q4_0.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.Q4_0.gguf) | Q4_0 | 0.33GB |
|
27 |
+
| [xpo-qwen2.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.IQ4_NL.gguf) | IQ4_NL | 0.33GB |
|
28 |
+
| [xpo-qwen2.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.Q4_K_S.gguf) | Q4_K_S | 0.36GB |
|
29 |
+
| [xpo-qwen2.Q4_K.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.Q4_K.gguf) | Q4_K | 0.37GB |
|
30 |
+
| [xpo-qwen2.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.Q4_K_M.gguf) | Q4_K_M | 0.37GB |
|
31 |
+
| [xpo-qwen2.Q4_1.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.Q4_1.gguf) | Q4_1 | 0.35GB |
|
32 |
+
| [xpo-qwen2.Q5_0.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.Q5_0.gguf) | Q5_0 | 0.37GB |
|
33 |
+
| [xpo-qwen2.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.Q5_K_S.gguf) | Q5_K_S | 0.38GB |
|
34 |
+
| [xpo-qwen2.Q5_K.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.Q5_K.gguf) | Q5_K | 0.39GB |
|
35 |
+
| [xpo-qwen2.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.Q5_K_M.gguf) | Q5_K_M | 0.39GB |
|
36 |
+
| [xpo-qwen2.Q5_1.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.Q5_1.gguf) | Q5_1 | 0.39GB |
|
37 |
+
| [xpo-qwen2.Q6_K.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.Q6_K.gguf) | Q6_K | 0.47GB |
|
38 |
+
| [xpo-qwen2.Q8_0.gguf](https://huggingface.co/RichardErkhov/qgallouedec_-_xpo-qwen2-gguf/blob/main/xpo-qwen2.Q8_0.gguf) | Q8_0 | 0.49GB |
|
39 |
+
|
40 |
+
|
41 |
+
|
42 |
+
|
43 |
+
Original model description:
|
44 |
+
---
|
45 |
+
base_model: Qwen/Qwen2-0.5B-Instruct
|
46 |
+
datasets: trl-lib/ultrafeedback-prompt
|
47 |
+
library_name: transformers
|
48 |
+
model_name: xpo-qwen2
|
49 |
+
tags:
|
50 |
+
- trl
|
51 |
+
- generated_from_trainer
|
52 |
+
- xpo
|
53 |
+
licence: license
|
54 |
+
---
|
55 |
+
|
56 |
+
# Model Card for xpo-qwen2
|
57 |
+
|
58 |
+
This model is a fine-tuned version of [Qwen/Qwen2-0.5B-Instruct](https://huggingface.co/Qwen/Qwen2-0.5B-Instruct) on the [trl-lib/ultrafeedback-prompt](https://huggingface.co/datasets/trl-lib/ultrafeedback-prompt) dataset.
|
59 |
+
It has been trained using [TRL](https://github.com/huggingface/trl).
|
60 |
+
|
61 |
+
## Quick start
|
62 |
+
|
63 |
+
```python
|
64 |
+
from transformers import pipeline
|
65 |
+
|
66 |
+
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
|
67 |
+
generator = pipeline("text-generation", model="qgallouedec/xpo-qwen2", device="cuda")
|
68 |
+
output = generator([{"role": "user", "content": question}], max_new_tokens=500)[0]
|
69 |
+
print(output["generated_text"][1]["content"])
|
70 |
+
```
|
71 |
+
|
72 |
+
## Training procedure
|
73 |
+
|
74 |
+
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/huggingface/huggingface/runs/bg6y6mom)
|
75 |
+
|
76 |
+
This model was trained with XPO, a method introduced in [Exploratory Preference Optimization: Harnessing Implicit Q*-Approximation for Sample-Efficient RLHF](https://huggingface.co/papers/2405.21046).
|
77 |
+
|
78 |
+
### Framework versions
|
79 |
+
|
80 |
+
- TRL: 0.12.0.dev0
|
81 |
+
- Transformers: 4.45.0.dev0
|
82 |
+
- Pytorch: 2.4.1
|
83 |
+
- Datasets: 3.0.0
|
84 |
+
- Tokenizers: 0.19.1
|
85 |
+
|
86 |
+
## Citations
|
87 |
+
|
88 |
+
Cite XPO as:
|
89 |
+
|
90 |
+
```bibtex
|
91 |
+
@article{jung2024binary,
|
92 |
+
title = {{Binary Classifier Optimization for Large Language Model Alignment}},
|
93 |
+
author = {Seungjae Jung and Gunsoo Han and Daniel Wontae Nam and Kyoung{-}Woon On},
|
94 |
+
year = 2024,
|
95 |
+
eprint = {arXiv:2404.04656}
|
96 |
+
}
|
97 |
+
```
|
98 |
+
|
99 |
+
Cite TRL as:
|
100 |
+
|
101 |
+
```bibtex
|
102 |
+
@misc{vonwerra2022trl,
|
103 |
+
title = {{TRL: Transformer Reinforcement Learning}},
|
104 |
+
author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallouédec},
|
105 |
+
year = 2020,
|
106 |
+
journal = {GitHub repository},
|
107 |
+
publisher = {GitHub},
|
108 |
+
howpublished = {\url{https://github.com/huggingface/trl}}
|
109 |
+
}
|
110 |
+
```
|
111 |
+
|