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

Model: bartowski/TwinLlama-3.1-8B-GGUF
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-09-10 11:23:12 +08:00
commit 3b6a377d6e
25 changed files with 240 additions and 0 deletions

57
.gitattributes vendored Normal file
View File

@@ -0,0 +1,57 @@
*.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
TwinLlama-3.1-8B-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
TwinLlama-3.1-8B-Q6_K_L.gguf filter=lfs diff=lfs merge=lfs -text
TwinLlama-3.1-8B-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
TwinLlama-3.1-8B-Q5_K_L.gguf filter=lfs diff=lfs merge=lfs -text
TwinLlama-3.1-8B-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
TwinLlama-3.1-8B-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
TwinLlama-3.1-8B-Q4_K_L.gguf filter=lfs diff=lfs merge=lfs -text
TwinLlama-3.1-8B-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
TwinLlama-3.1-8B-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
TwinLlama-3.1-8B-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
TwinLlama-3.1-8B-Q3_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
TwinLlama-3.1-8B-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
TwinLlama-3.1-8B-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
TwinLlama-3.1-8B-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
TwinLlama-3.1-8B-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
TwinLlama-3.1-8B-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
TwinLlama-3.1-8B-Q2_K_L.gguf filter=lfs diff=lfs merge=lfs -text
TwinLlama-3.1-8B-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
TwinLlama-3.1-8B-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
TwinLlama-3.1-8B-f32.gguf filter=lfs diff=lfs merge=lfs -text
TwinLlama-3.1-8B.imatrix filter=lfs diff=lfs merge=lfs -text
TwinLlama-3.1-8B-f16.gguf filter=lfs diff=lfs merge=lfs -text

116
README.md Normal file
View File

@@ -0,0 +1,116 @@
---
base_model: mlabonne/TwinLlama-3.1-8B
library_name: transformers
pipeline_tag: text-generation
tags:
- unsloth
- trl
- sft
quantized_by: bartowski
---
## Llamacpp imatrix Quantizations of TwinLlama-3.1-8B
Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b3615">b3615</a> for quantization.
Original model: https://huggingface.co/mlabonne/TwinLlama-3.1-8B
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
No prompt format found, check original model page
## What's new:
New updates from mlabonne, no details given but I'm sure it's worth the change!
## Download a file (not the whole branch) from below:
| Filename | Quant type | File Size | Split | Description |
| -------- | ---------- | --------- | ----- | ----------- |
| [TwinLlama-3.1-8B-f16.gguf](https://huggingface.co/bartowski/TwinLlama-3.1-8B-GGUF/blob/main/TwinLlama-3.1-8B-f16.gguf) | f16 | 16.07GB | false | Full F16 weights. |
| [TwinLlama-3.1-8B-Q8_0.gguf](https://huggingface.co/bartowski/TwinLlama-3.1-8B-GGUF/blob/main/TwinLlama-3.1-8B-Q8_0.gguf) | Q8_0 | 8.54GB | false | Extremely high quality, generally unneeded but max available quant. |
| [TwinLlama-3.1-8B-Q6_K_L.gguf](https://huggingface.co/bartowski/TwinLlama-3.1-8B-GGUF/blob/main/TwinLlama-3.1-8B-Q6_K_L.gguf) | Q6_K_L | 6.85GB | false | Uses Q8_0 for embed and output weights. Very high quality, near perfect, *recommended*. |
| [TwinLlama-3.1-8B-Q6_K.gguf](https://huggingface.co/bartowski/TwinLlama-3.1-8B-GGUF/blob/main/TwinLlama-3.1-8B-Q6_K.gguf) | Q6_K | 6.60GB | false | Very high quality, near perfect, *recommended*. |
| [TwinLlama-3.1-8B-Q5_K_L.gguf](https://huggingface.co/bartowski/TwinLlama-3.1-8B-GGUF/blob/main/TwinLlama-3.1-8B-Q5_K_L.gguf) | Q5_K_L | 6.06GB | false | Uses Q8_0 for embed and output weights. High quality, *recommended*. |
| [TwinLlama-3.1-8B-Q5_K_M.gguf](https://huggingface.co/bartowski/TwinLlama-3.1-8B-GGUF/blob/main/TwinLlama-3.1-8B-Q5_K_M.gguf) | Q5_K_M | 5.73GB | false | High quality, *recommended*. |
| [TwinLlama-3.1-8B-Q5_K_S.gguf](https://huggingface.co/bartowski/TwinLlama-3.1-8B-GGUF/blob/main/TwinLlama-3.1-8B-Q5_K_S.gguf) | Q5_K_S | 5.60GB | false | High quality, *recommended*. |
| [TwinLlama-3.1-8B-Q4_K_L.gguf](https://huggingface.co/bartowski/TwinLlama-3.1-8B-GGUF/blob/main/TwinLlama-3.1-8B-Q4_K_L.gguf) | Q4_K_L | 5.31GB | false | Uses Q8_0 for embed and output weights. Good quality, *recommended*. |
| [TwinLlama-3.1-8B-Q4_K_M.gguf](https://huggingface.co/bartowski/TwinLlama-3.1-8B-GGUF/blob/main/TwinLlama-3.1-8B-Q4_K_M.gguf) | Q4_K_M | 4.92GB | false | Good quality, default size for must use cases, *recommended*. |
| [TwinLlama-3.1-8B-Q3_K_XL.gguf](https://huggingface.co/bartowski/TwinLlama-3.1-8B-GGUF/blob/main/TwinLlama-3.1-8B-Q3_K_XL.gguf) | Q3_K_XL | 4.78GB | false | Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability. |
| [TwinLlama-3.1-8B-Q4_K_S.gguf](https://huggingface.co/bartowski/TwinLlama-3.1-8B-GGUF/blob/main/TwinLlama-3.1-8B-Q4_K_S.gguf) | Q4_K_S | 4.69GB | false | Slightly lower quality with more space savings, *recommended*. |
| [TwinLlama-3.1-8B-IQ4_XS.gguf](https://huggingface.co/bartowski/TwinLlama-3.1-8B-GGUF/blob/main/TwinLlama-3.1-8B-IQ4_XS.gguf) | IQ4_XS | 4.45GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
| [TwinLlama-3.1-8B-Q3_K_L.gguf](https://huggingface.co/bartowski/TwinLlama-3.1-8B-GGUF/blob/main/TwinLlama-3.1-8B-Q3_K_L.gguf) | Q3_K_L | 4.32GB | false | Lower quality but usable, good for low RAM availability. |
| [TwinLlama-3.1-8B-Q3_K_M.gguf](https://huggingface.co/bartowski/TwinLlama-3.1-8B-GGUF/blob/main/TwinLlama-3.1-8B-Q3_K_M.gguf) | Q3_K_M | 4.02GB | false | Low quality. |
| [TwinLlama-3.1-8B-IQ3_M.gguf](https://huggingface.co/bartowski/TwinLlama-3.1-8B-GGUF/blob/main/TwinLlama-3.1-8B-IQ3_M.gguf) | IQ3_M | 3.78GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
| [TwinLlama-3.1-8B-Q2_K_L.gguf](https://huggingface.co/bartowski/TwinLlama-3.1-8B-GGUF/blob/main/TwinLlama-3.1-8B-Q2_K_L.gguf) | Q2_K_L | 3.69GB | false | Uses Q8_0 for embed and output weights. Very low quality but surprisingly usable. |
| [TwinLlama-3.1-8B-Q3_K_S.gguf](https://huggingface.co/bartowski/TwinLlama-3.1-8B-GGUF/blob/main/TwinLlama-3.1-8B-Q3_K_S.gguf) | Q3_K_S | 3.66GB | false | Low quality, not recommended. |
| [TwinLlama-3.1-8B-IQ3_XS.gguf](https://huggingface.co/bartowski/TwinLlama-3.1-8B-GGUF/blob/main/TwinLlama-3.1-8B-IQ3_XS.gguf) | IQ3_XS | 3.52GB | false | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
| [TwinLlama-3.1-8B-Q2_K.gguf](https://huggingface.co/bartowski/TwinLlama-3.1-8B-GGUF/blob/main/TwinLlama-3.1-8B-Q2_K.gguf) | Q2_K | 3.18GB | false | Very low quality but surprisingly usable. |
| [TwinLlama-3.1-8B-IQ2_M.gguf](https://huggingface.co/bartowski/TwinLlama-3.1-8B-GGUF/blob/main/TwinLlama-3.1-8B-IQ2_M.gguf) | IQ2_M | 2.95GB | 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!
## 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
## 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/TwinLlama-3.1-8B-GGUF --include "TwinLlama-3.1-8B-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/TwinLlama-3.1-8B-GGUF --include "TwinLlama-3.1-8B-Q8_0/*" --local-dir ./
```
You can either specify a new local-dir (TwinLlama-3.1-8B-Q8_0) or download them all in place (./)
## 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.
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:fbbd716889085cc5fdc88ca760a7eb0a853238625e0af76f20cd818e56623edf
size 2948281056

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

3
TwinLlama-3.1-8B.imatrix Normal file
View File

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

1
configuration.json Normal file
View File

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