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

Model: bartowski/Yi-Coder-1.5B-Chat-GGUF
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-08-06 00:39:13 +08:00
commit 4a76c0499f
28 changed files with 264 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
Yi-Coder-1.5B-Chat-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-Q6_K_L.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-Q5_K_L.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-Q4_K_L.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-Q4_0_8_8.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-Q4_0_4_8.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-Q4_0_4_4.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-Q3_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-f16.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat.imatrix filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-Q2_K_L.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
Yi-Coder-1.5B-Chat-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text

128
README.md Normal file
View File

@@ -0,0 +1,128 @@
---
base_model: 01-ai/Yi-Coder-1.5B-Chat
license: apache-2.0
pipeline_tag: text-generation
quantized_by: bartowski
---
## Llamacpp imatrix Quantizations of Yi-Coder-1.5B-Chat
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/01-ai/Yi-Coder-1.5B-Chat
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
```
<|im_start|>system
{system_prompt}<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>assistant
```
## What's new:
Fix tokenizer
## Download a file (not the whole branch) from below:
| Filename | Quant type | File Size | Split | Description |
| -------- | ---------- | --------- | ----- | ----------- |
| [Yi-Coder-1.5B-Chat-f16.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-f16.gguf) | f16 | 2.95GB | false | Full F16 weights. |
| [Yi-Coder-1.5B-Chat-Q8_0.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-Q8_0.gguf) | Q8_0 | 1.57GB | false | Extremely high quality, generally unneeded but max available quant. |
| [Yi-Coder-1.5B-Chat-Q6_K_L.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-Q6_K_L.gguf) | Q6_K_L | 1.34GB | false | Uses Q8_0 for embed and output weights. Very high quality, near perfect, *recommended*. |
| [Yi-Coder-1.5B-Chat-Q6_K.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-Q6_K.gguf) | Q6_K | 1.28GB | false | Very high quality, near perfect, *recommended*. |
| [Yi-Coder-1.5B-Chat-Q5_K_L.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-Q5_K_L.gguf) | Q5_K_L | 1.18GB | false | Uses Q8_0 for embed and output weights. High quality, *recommended*. |
| [Yi-Coder-1.5B-Chat-Q5_K_M.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-Q5_K_M.gguf) | Q5_K_M | 1.10GB | false | High quality, *recommended*. |
| [Yi-Coder-1.5B-Chat-Q4_K_L.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-Q4_K_L.gguf) | Q4_K_L | 1.06GB | false | Uses Q8_0 for embed and output weights. Good quality, *recommended*. |
| [Yi-Coder-1.5B-Chat-Q5_K_S.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-Q5_K_S.gguf) | Q5_K_S | 1.05GB | false | High quality, *recommended*. |
| [Yi-Coder-1.5B-Chat-Q4_K_M.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-Q4_K_M.gguf) | Q4_K_M | 0.96GB | false | Good quality, default size for must use cases, *recommended*. |
| [Yi-Coder-1.5B-Chat-Q3_K_XL.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-Q3_K_XL.gguf) | Q3_K_XL | 0.94GB | false | Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability. |
| [Yi-Coder-1.5B-Chat-Q4_K_S.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-Q4_K_S.gguf) | Q4_K_S | 0.90GB | false | Slightly lower quality with more space savings, *recommended*. |
| [Yi-Coder-1.5B-Chat-Q4_0_8_8.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-Q4_0_8_8.gguf) | Q4_0_8_8 | 0.87GB | false | Optimized for ARM inference. Requires 'sve' support (see link below). |
| [Yi-Coder-1.5B-Chat-Q4_0_4_8.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-Q4_0_4_8.gguf) | Q4_0_4_8 | 0.87GB | false | Optimized for ARM inference. Requires 'i8mm' support (see link below). |
| [Yi-Coder-1.5B-Chat-Q4_0_4_4.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-Q4_0_4_4.gguf) | Q4_0_4_4 | 0.87GB | false | Optimized for ARM inference. Should work well on all ARM chips, pick this if you're unsure. |
| [Yi-Coder-1.5B-Chat-Q4_0.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-Q4_0.gguf) | Q4_0 | 0.87GB | false | Legacy format, generally not worth using over similarly sized formats |
| [Yi-Coder-1.5B-Chat-IQ4_XS.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-IQ4_XS.gguf) | IQ4_XS | 0.83GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
| [Yi-Coder-1.5B-Chat-Q3_K_L.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-Q3_K_L.gguf) | Q3_K_L | 0.83GB | false | Lower quality but usable, good for low RAM availability. |
| [Yi-Coder-1.5B-Chat-Q3_K_M.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-Q3_K_M.gguf) | Q3_K_M | 0.79GB | false | Low quality. |
| [Yi-Coder-1.5B-Chat-Q2_K_L.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-Q2_K_L.gguf) | Q2_K_L | 0.76GB | false | Uses Q8_0 for embed and output weights. Very low quality but surprisingly usable. |
| [Yi-Coder-1.5B-Chat-IQ3_M.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-IQ3_M.gguf) | IQ3_M | 0.75GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
| [Yi-Coder-1.5B-Chat-Q3_K_S.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-Q3_K_S.gguf) | Q3_K_S | 0.72GB | false | Low quality, not recommended. |
| [Yi-Coder-1.5B-Chat-IQ3_XS.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-IQ3_XS.gguf) | IQ3_XS | 0.69GB | false | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
| [Yi-Coder-1.5B-Chat-Q2_K.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-Q2_K.gguf) | Q2_K | 0.63GB | false | Very low quality but surprisingly usable. |
| [Yi-Coder-1.5B-Chat-IQ2_M.gguf](https://huggingface.co/bartowski/Yi-Coder-1.5B-Chat-GGUF/blob/main/Yi-Coder-1.5B-Chat-IQ2_M.gguf) | IQ2_M | 0.62GB | 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/Yi-Coder-1.5B-Chat-GGUF --include "Yi-Coder-1.5B-Chat-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/Yi-Coder-1.5B-Chat-GGUF --include "Yi-Coder-1.5B-Chat-Q8_0/*" --local-dir ./
```
You can either specify a new local-dir (Yi-Coder-1.5B-Chat-Q8_0) or download them all in place (./)
## Q4_0_X_X
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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

1
configuration.json Normal file
View File

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