初始化项目,由ModelHub XC社区提供模型

Model: bartowski/gemma-2-9b-it-WPO-HB-GGUF
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-07-18 03:37:05 +08:00
commit 70659c4ac5
28 changed files with 268 additions and 0 deletions

60
.gitattributes vendored Normal file
View File

@@ -0,0 +1,60 @@
*.7z filter=lfs diff=lfs merge=lfs -text
*.arrow filter=lfs diff=lfs merge=lfs -text
*.bin filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.ckpt filter=lfs diff=lfs merge=lfs -text
*.ftz filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.h5 filter=lfs diff=lfs merge=lfs -text
*.joblib filter=lfs diff=lfs merge=lfs -text
*.lfs.* filter=lfs diff=lfs merge=lfs -text
*.mlmodel filter=lfs diff=lfs merge=lfs -text
*.model filter=lfs diff=lfs merge=lfs -text
*.msgpack filter=lfs diff=lfs merge=lfs -text
*.npy filter=lfs diff=lfs merge=lfs -text
*.npz filter=lfs diff=lfs merge=lfs -text
*.onnx filter=lfs diff=lfs merge=lfs -text
*.ot filter=lfs diff=lfs merge=lfs -text
*.parquet filter=lfs diff=lfs merge=lfs -text
*.pb filter=lfs diff=lfs merge=lfs -text
*.pickle filter=lfs diff=lfs merge=lfs -text
*.pkl filter=lfs diff=lfs merge=lfs -text
*.pt filter=lfs diff=lfs merge=lfs -text
*.pth filter=lfs diff=lfs merge=lfs -text
*.rar filter=lfs diff=lfs merge=lfs -text
*.safetensors filter=lfs diff=lfs merge=lfs -text
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
*.tar.* filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.tflite filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.wasm filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
*tfevents* filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-Q6_K_L.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-Q5_K_L.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-Q4_K_L.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-Q4_0_8_8.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-Q4_0_4_8.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-Q4_0_4_4.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-Q3_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-Q2_K_L.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB-f16.gguf filter=lfs diff=lfs merge=lfs -text
gemma-2-9b-it-WPO-HB.imatrix filter=lfs diff=lfs merge=lfs -text

132
README.md Normal file
View File

@@ -0,0 +1,132 @@
---
base_model: wzhouad/gemma-2-9b-it-WPO-HB
datasets:
- wzhouad/gemma-2-ultrafeedback-hybrid
library_name: transformers
pipeline_tag: text-generation
tags:
- alignment-handbook
- gemma
quantized_by: bartowski
---
## Llamacpp imatrix Quantizations of gemma-2-9b-it-WPO-HB
Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b3658">b3658</a> for quantization.
Original model: https://huggingface.co/wzhouad/gemma-2-9b-it-WPO-HB
All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/eb213dccb3571f863da82e99418f81e8)
Run them in [LM Studio](https://lmstudio.ai/)
## Prompt format
```
<bos><start_of_turn>system
{system_prompt}<end_of_turn>
<start_of_turn>user
{prompt}<end_of_turn>
<start_of_turn>model
<end_of_turn>
<start_of_turn>model
```
## Download a file (not the whole branch) from below:
| Filename | Quant type | File Size | Split | Description |
| -------- | ---------- | --------- | ----- | ----------- |
| [gemma-2-9b-it-WPO-HB-f16.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-f16.gguf) | f16 | 18.49GB | false | Full F16 weights. |
| [gemma-2-9b-it-WPO-HB-Q8_0.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-Q8_0.gguf) | Q8_0 | 9.83GB | false | Extremely high quality, generally unneeded but max available quant. |
| [gemma-2-9b-it-WPO-HB-Q6_K_L.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-Q6_K_L.gguf) | Q6_K_L | 7.81GB | false | Uses Q8_0 for embed and output weights. Very high quality, near perfect, *recommended*. |
| [gemma-2-9b-it-WPO-HB-Q6_K.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-Q6_K.gguf) | Q6_K | 7.59GB | false | Very high quality, near perfect, *recommended*. |
| [gemma-2-9b-it-WPO-HB-Q5_K_L.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-Q5_K_L.gguf) | Q5_K_L | 6.87GB | false | Uses Q8_0 for embed and output weights. High quality, *recommended*. |
| [gemma-2-9b-it-WPO-HB-Q5_K_M.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-Q5_K_M.gguf) | Q5_K_M | 6.65GB | false | High quality, *recommended*. |
| [gemma-2-9b-it-WPO-HB-Q5_K_S.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-Q5_K_S.gguf) | Q5_K_S | 6.48GB | false | High quality, *recommended*. |
| [gemma-2-9b-it-WPO-HB-Q4_K_L.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-Q4_K_L.gguf) | Q4_K_L | 5.98GB | false | Uses Q8_0 for embed and output weights. Good quality, *recommended*. |
| [gemma-2-9b-it-WPO-HB-Q4_K_M.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-Q4_K_M.gguf) | Q4_K_M | 5.76GB | false | Good quality, default size for must use cases, *recommended*. |
| [gemma-2-9b-it-WPO-HB-Q4_K_S.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-Q4_K_S.gguf) | Q4_K_S | 5.48GB | false | Slightly lower quality with more space savings, *recommended*. |
| [gemma-2-9b-it-WPO-HB-Q4_0.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-Q4_0.gguf) | Q4_0 | 5.46GB | false | Legacy format, generally not worth using over similarly sized formats |
| [gemma-2-9b-it-WPO-HB-Q4_0_8_8.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-Q4_0_8_8.gguf) | Q4_0_8_8 | 5.44GB | false | Optimized for ARM inference. Requires 'sve' support (see link below). |
| [gemma-2-9b-it-WPO-HB-Q4_0_4_8.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-Q4_0_4_8.gguf) | Q4_0_4_8 | 5.44GB | false | Optimized for ARM inference. Requires 'i8mm' support (see link below). |
| [gemma-2-9b-it-WPO-HB-Q4_0_4_4.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-Q4_0_4_4.gguf) | Q4_0_4_4 | 5.44GB | false | Optimized for ARM inference. Should work well on all ARM chips, pick this if you're unsure. |
| [gemma-2-9b-it-WPO-HB-Q3_K_XL.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-Q3_K_XL.gguf) | Q3_K_XL | 5.35GB | false | Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability. |
| [gemma-2-9b-it-WPO-HB-IQ4_XS.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-IQ4_XS.gguf) | IQ4_XS | 5.18GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
| [gemma-2-9b-it-WPO-HB-Q3_K_L.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-Q3_K_L.gguf) | Q3_K_L | 5.13GB | false | Lower quality but usable, good for low RAM availability. |
| [gemma-2-9b-it-WPO-HB-Q3_K_M.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-Q3_K_M.gguf) | Q3_K_M | 4.76GB | false | Low quality. |
| [gemma-2-9b-it-WPO-HB-IQ3_M.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-IQ3_M.gguf) | IQ3_M | 4.49GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
| [gemma-2-9b-it-WPO-HB-Q3_K_S.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-Q3_K_S.gguf) | Q3_K_S | 4.34GB | false | Low quality, not recommended. |
| [gemma-2-9b-it-WPO-HB-IQ3_XS.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-IQ3_XS.gguf) | IQ3_XS | 4.14GB | false | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
| [gemma-2-9b-it-WPO-HB-Q2_K_L.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-Q2_K_L.gguf) | Q2_K_L | 4.03GB | false | Uses Q8_0 for embed and output weights. Very low quality but surprisingly usable. |
| [gemma-2-9b-it-WPO-HB-Q2_K.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-Q2_K.gguf) | Q2_K | 3.81GB | false | Very low quality but surprisingly usable. |
| [gemma-2-9b-it-WPO-HB-IQ2_M.gguf](https://huggingface.co/bartowski/gemma-2-9b-it-WPO-HB-GGUF/blob/main/gemma-2-9b-it-WPO-HB-IQ2_M.gguf) | IQ2_M | 3.43GB | false | Relatively low quality, uses SOTA techniques to be surprisingly usable. |
## Embed/output weights
Some of these quants (Q3_K_XL, Q4_K_L etc) are the standard quantization method with the embeddings and output weights quantized to Q8_0 instead of what they would normally default to.
Some say that this improves the quality, others don't notice any difference. If you use these models PLEASE COMMENT with your findings. I would like feedback that these are actually used and useful so I don't keep uploading quants no one is using.
Thanks!
## Downloading using huggingface-cli
First, make sure you have hugginface-cli installed:
```
pip install -U "huggingface_hub[cli]"
```
Then, you can target the specific file you want:
```
huggingface-cli download bartowski/gemma-2-9b-it-WPO-HB-GGUF --include "gemma-2-9b-it-WPO-HB-Q4_K_M.gguf" --local-dir ./
```
If the model is bigger than 50GB, it will have been split into multiple files. In order to download them all to a local folder, run:
```
huggingface-cli download bartowski/gemma-2-9b-it-WPO-HB-GGUF --include "gemma-2-9b-it-WPO-HB-Q8_0/*" --local-dir ./
```
You can either specify a new local-dir (gemma-2-9b-it-WPO-HB-Q8_0) or download them all in place (./)
## Q4_0_X_X
These are *NOT* for Metal (Apple) offloading, only ARM chips.
If you're using an ARM chip, the Q4_0_X_X quants will have a substantial speedup. Check out Q4_0_4_4 speed comparisons [on the original pull request](https://github.com/ggerganov/llama.cpp/pull/5780#pullrequestreview-21657544660)
To check which one would work best for your ARM chip, you can check [AArch64 SoC features](https://gpages.juszkiewicz.com.pl/arm-socs-table/arm-socs.html) (thanks EloyOn!).
## Which file should I choose?
A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
The first thing to figure out is how big a model you can run. To do this, you'll need to figure out how much RAM and/or VRAM you have.
If you want your model running as FAST as possible, you'll want to fit the whole thing on your GPU's VRAM. Aim for a quant with a file size 1-2GB smaller than your GPU's total VRAM.
If you want the absolute maximum quality, add both your system RAM and your GPU's VRAM together, then similarly grab a quant with a file size 1-2GB Smaller than that total.
Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
If you don't want to think too much, grab one of the K-quants. These are in format 'QX_K_X', like Q5_K_M.
If you want to get more into the weeds, you can check out this extremely useful feature chart:
[llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
But basically, if you're aiming for below Q4, and you're running cuBLAS (Nvidia) or rocBLAS (AMD), you should look towards the I-quants. These are in format IQX_X, like IQ3_M. These are newer and offer better performance for their size.
These I-quants can also be used on CPU and Apple Metal, but will be slower than their K-quant equivalent, so speed vs performance is a tradeoff you'll have to decide.
The I-quants are *not* compatible with Vulcan, which is also AMD, so if you have an AMD card double check if you're using the rocBLAS build or the Vulcan build. At the time of writing this, LM Studio has a preview with ROCm support, and other inference engines have specific builds for ROCm.
## Credits
Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset
Thank you ZeroWw for the inspiration to experiment with embed/output
Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski

1
configuration.json Normal file
View File

@@ -0,0 +1 @@
{"framework": "pytorch", "task": "text-generation", "allow_remote": true}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ac2a23dca21486c2b8cf642ac86175d4ed0683581b6fe5ac8590579b87d55dca
size 3434669344

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:55edd8448e349c391de8c893f6362d0e344f7f3b8a0f39026c3b97fd5b556881
size 4494615840

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:33aae53cc046a08c36a47af9ad2531d7f9182586efb3d2df78cfcc1bfd7c2ff1
size 4144989472

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d773e197b54e000ffce100e948c91bc3f9ffe74966932498d8bf2788fef4965b
size 5183030560

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2316fbb0c0109b00a85275a80ef97181dc249a0f1f3492f88d68fd2fb71cb52a
size 3805398304

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:33258efe55a71c8fd3172127ca62ad7919ef9d473b7dd46c32610d029436b272
size 4027606304

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a30c0d4e5bb36cfbbe95f39522a132ea8a4158e4e13b9f6b9709587c83729277
size 5132453152

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:84d3d885cea6b1a1dabe29b4fd4f936053eee870e0c3db6499308872ebc9f638
size 4761781536

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:52786eedd3bcef52d536530e9fff9fc4f1e37308820f1a831e2bd30a56c16684
size 4337665312

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bb61de27826ba8cfbfdb830f7c170b29f89b775b30f586064c6f2fe32094563d
size 5354661152

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d26ccea13d0852e366b6f4063b85f3cd9bef8464258f9eba49ac674223b8c61b
size 5459199264

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:78bf3e0a75bbc402b52ed2ab05f79cb989b0bcd92e1570c12ec0a0363e9c6c03
size 5443142944

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fa95bfe42b1d957f5ea40905ec04681b198371f733003e8ca2c898382c4e2f03
size 5443142944

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:822491f803fff88cd041f68e23107cbe374c61ada0388da6c1f3b488caa78858
size 5443142944

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a0ea735ceb98fc5f16e6d2fead14c3bf4a698e3a871a221052bb63414c30a0ac
size 5983266080

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:974fac75e3abc7235cdadcf14fd9cc1db92289b936d9a4c82a4e175f3c28c1f0
size 5761058080

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:18417bf09a4415a9da6ecc1069595bc6b839d55b9f81402b4742328f9de8cfda
size 5478925600

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e8ab4a6726e770e99366e9ce22bc234c53ce31f80eb320ab28ed6ac70f5bd7ac
size 6869574944

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b05911cfc214e718c77503b893e1290a204c2ea127c8a7bcd9f650e7fa9a8938
size 6647366944

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:985b21750554ec2d867f6315b59c2ad74b1ebe5cb30ef74e67df86c7699f6068
size 6483592480

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:57840f699d18b9370cb23e173b02213948fe0ec349a6c3e57a2c0d1928a3755e
size 7589070112

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:928d02e33ec1053cde851a56245c014b9218d1eec1c92fc7f746fb8780a7a9ce
size 7811278112

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e4a7312df5cc91ffa8aeea0c560ba4ab8127da16a706d4bdf77b3b8c82497258
size 9827149088

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b0e8969a6a10f536c5fd3f63b1e563bca7f4ec9c7db4fb61da0b2cb2e4abd1cb
size 18490680352

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6d43f550db13b1491fa559401627cafcc266287dc67c4f63bda0594c3c110316
size 6116900