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

Model: bartowski/MN-12B-Lyra-v4-GGUF
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-07-19 01:56:06 +08:00
commit c5d999f371
28 changed files with 259 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
MN-12B-Lyra-v4-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-Q6_K_L.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-Q5_K_L.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-Q4_K_L.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-Q4_0_8_8.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-Q4_0_4_8.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-Q4_0_4_4.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-Q3_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-Q2_K_L.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4-f16.gguf filter=lfs diff=lfs merge=lfs -text
MN-12B-Lyra-v4.imatrix filter=lfs diff=lfs merge=lfs -text

View File

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

View File

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

View File

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

View File

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

3
MN-12B-Lyra-v4-Q2_K.gguf Normal file
View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

3
MN-12B-Lyra-v4-Q4_0.gguf Normal file
View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

3
MN-12B-Lyra-v4-Q6_K.gguf Normal file
View File

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

View File

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

3
MN-12B-Lyra-v4-Q8_0.gguf Normal file
View File

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

3
MN-12B-Lyra-v4-f16.gguf Normal file
View File

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

3
MN-12B-Lyra-v4.imatrix Normal file
View File

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

123
README.md Normal file
View File

@@ -0,0 +1,123 @@
---
base_model: Sao10K/MN-12B-Lyra-v4
language:
- en
license: cc-by-nc-4.0
pipeline_tag: text-generation
quantized_by: bartowski
---
## Llamacpp imatrix Quantizations of MN-12B-Lyra-v4
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/Sao10K/MN-12B-Lyra-v4
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
```
<s>[INST]{prompt}[/INST]
```
## Download a file (not the whole branch) from below:
| Filename | Quant type | File Size | Split | Description |
| -------- | ---------- | --------- | ----- | ----------- |
| [MN-12B-Lyra-v4-f16.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-f16.gguf) | f16 | 24.50GB | false | Full F16 weights. |
| [MN-12B-Lyra-v4-Q8_0.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-Q8_0.gguf) | Q8_0 | 13.02GB | false | Extremely high quality, generally unneeded but max available quant. |
| [MN-12B-Lyra-v4-Q6_K_L.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-Q6_K_L.gguf) | Q6_K_L | 10.38GB | false | Uses Q8_0 for embed and output weights. Very high quality, near perfect, *recommended*. |
| [MN-12B-Lyra-v4-Q6_K.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-Q6_K.gguf) | Q6_K | 10.06GB | false | Very high quality, near perfect, *recommended*. |
| [MN-12B-Lyra-v4-Q5_K_L.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-Q5_K_L.gguf) | Q5_K_L | 9.14GB | false | Uses Q8_0 for embed and output weights. High quality, *recommended*. |
| [MN-12B-Lyra-v4-Q5_K_M.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-Q5_K_M.gguf) | Q5_K_M | 8.73GB | false | High quality, *recommended*. |
| [MN-12B-Lyra-v4-Q5_K_S.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-Q5_K_S.gguf) | Q5_K_S | 8.52GB | false | High quality, *recommended*. |
| [MN-12B-Lyra-v4-Q4_K_L.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-Q4_K_L.gguf) | Q4_K_L | 7.98GB | false | Uses Q8_0 for embed and output weights. Good quality, *recommended*. |
| [MN-12B-Lyra-v4-Q4_K_M.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-Q4_K_M.gguf) | Q4_K_M | 7.48GB | false | Good quality, default size for must use cases, *recommended*. |
| [MN-12B-Lyra-v4-Q3_K_XL.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-Q3_K_XL.gguf) | Q3_K_XL | 7.15GB | false | Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability. |
| [MN-12B-Lyra-v4-Q4_K_S.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-Q4_K_S.gguf) | Q4_K_S | 7.12GB | false | Slightly lower quality with more space savings, *recommended*. |
| [MN-12B-Lyra-v4-Q4_0.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-Q4_0.gguf) | Q4_0 | 7.09GB | false | Legacy format, generally not worth using over similarly sized formats |
| [MN-12B-Lyra-v4-Q4_0_8_8.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-Q4_0_8_8.gguf) | Q4_0_8_8 | 7.07GB | false | Optimized for ARM inference. Requires 'sve' support (see link below). |
| [MN-12B-Lyra-v4-Q4_0_4_8.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-Q4_0_4_8.gguf) | Q4_0_4_8 | 7.07GB | false | Optimized for ARM inference. Requires 'i8mm' support (see link below). |
| [MN-12B-Lyra-v4-Q4_0_4_4.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-Q4_0_4_4.gguf) | Q4_0_4_4 | 7.07GB | false | Optimized for ARM inference. Should work well on all ARM chips, pick this if you're unsure. |
| [MN-12B-Lyra-v4-IQ4_XS.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-IQ4_XS.gguf) | IQ4_XS | 6.74GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
| [MN-12B-Lyra-v4-Q3_K_L.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-Q3_K_L.gguf) | Q3_K_L | 6.56GB | false | Lower quality but usable, good for low RAM availability. |
| [MN-12B-Lyra-v4-Q3_K_M.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-Q3_K_M.gguf) | Q3_K_M | 6.08GB | false | Low quality. |
| [MN-12B-Lyra-v4-IQ3_M.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-IQ3_M.gguf) | IQ3_M | 5.72GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
| [MN-12B-Lyra-v4-Q3_K_S.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-Q3_K_S.gguf) | Q3_K_S | 5.53GB | false | Low quality, not recommended. |
| [MN-12B-Lyra-v4-Q2_K_L.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-Q2_K_L.gguf) | Q2_K_L | 5.45GB | false | Uses Q8_0 for embed and output weights. Very low quality but surprisingly usable. |
| [MN-12B-Lyra-v4-IQ3_XS.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-IQ3_XS.gguf) | IQ3_XS | 5.31GB | false | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
| [MN-12B-Lyra-v4-Q2_K.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-Q2_K.gguf) | Q2_K | 4.79GB | false | Very low quality but surprisingly usable. |
| [MN-12B-Lyra-v4-IQ2_M.gguf](https://huggingface.co/bartowski/MN-12B-Lyra-v4-GGUF/blob/main/MN-12B-Lyra-v4-IQ2_M.gguf) | IQ2_M | 4.44GB | 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/MN-12B-Lyra-v4-GGUF --include "MN-12B-Lyra-v4-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/MN-12B-Lyra-v4-GGUF --include "MN-12B-Lyra-v4-Q8_0/*" --local-dir ./
```
You can either specify a new local-dir (MN-12B-Lyra-v4-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}