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

Model: bartowski/SmolLM2-1.7B-Instruct-GGUF
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-08-02 23:53:12 +08:00
commit eac39b61f8
27 changed files with 258 additions and 0 deletions

59
.gitattributes vendored Normal file
View File

@@ -0,0 +1,59 @@
*.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
SmolLM2-1.7B-Instruct-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-Q6_K_L.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-Q5_K_L.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-Q4_K_L.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-Q4_0_8_8.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-Q4_0_4_8.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-Q4_0_4_4.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-Q3_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-Q2_K_L.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct-f16.gguf filter=lfs diff=lfs merge=lfs -text
SmolLM2-1.7B-Instruct.imatrix filter=lfs diff=lfs merge=lfs -text

126
README.md Normal file
View File

@@ -0,0 +1,126 @@
---
base_model: HuggingFaceTB/SmolLM2-1.7B-Instruct
language:
- en
license: apache-2.0
pipeline_tag: text-generation
quantized_by: bartowski
---
## Llamacpp imatrix Quantizations of SmolLM2-1.7B-Instruct
Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b3991">b3991</a> for quantization.
Original model: https://huggingface.co/HuggingFaceTB/SmolLM2-1.7B-Instruct
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
```
## Download a file (not the whole branch) from below:
| Filename | Quant type | File Size | Split | Description |
| -------- | ---------- | --------- | ----- | ----------- |
| [SmolLM2-1.7B-Instruct-f16.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-f16.gguf) | f16 | 3.42GB | false | Full F16 weights. |
| [SmolLM2-1.7B-Instruct-Q8_0.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-Q8_0.gguf) | Q8_0 | 1.82GB | false | Extremely high quality, generally unneeded but max available quant. |
| [SmolLM2-1.7B-Instruct-Q6_K_L.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-Q6_K_L.gguf) | Q6_K_L | 1.43GB | false | Uses Q8_0 for embed and output weights. Very high quality, near perfect, *recommended*. |
| [SmolLM2-1.7B-Instruct-Q6_K.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-Q6_K.gguf) | Q6_K | 1.41GB | false | Very high quality, near perfect, *recommended*. |
| [SmolLM2-1.7B-Instruct-Q5_K_L.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-Q5_K_L.gguf) | Q5_K_L | 1.25GB | false | Uses Q8_0 for embed and output weights. High quality, *recommended*. |
| [SmolLM2-1.7B-Instruct-Q5_K_M.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-Q5_K_M.gguf) | Q5_K_M | 1.23GB | false | High quality, *recommended*. |
| [SmolLM2-1.7B-Instruct-Q5_K_S.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-Q5_K_S.gguf) | Q5_K_S | 1.19GB | false | High quality, *recommended*. |
| [SmolLM2-1.7B-Instruct-Q4_K_L.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-Q4_K_L.gguf) | Q4_K_L | 1.08GB | false | Uses Q8_0 for embed and output weights. Good quality, *recommended*. |
| [SmolLM2-1.7B-Instruct-Q4_K_M.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-Q4_K_M.gguf) | Q4_K_M | 1.06GB | false | Good quality, default size for must use cases, *recommended*. |
| [SmolLM2-1.7B-Instruct-Q4_K_S.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-Q4_K_S.gguf) | Q4_K_S | 1.00GB | false | Slightly lower quality with more space savings, *recommended*. |
| [SmolLM2-1.7B-Instruct-Q4_0_8_8.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-Q4_0_8_8.gguf) | Q4_0_8_8 | 0.99GB | false | Optimized for ARM inference. Requires 'sve' support (see link below). *Don't use on Mac or Windows*. |
| [SmolLM2-1.7B-Instruct-Q4_0_4_8.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-Q4_0_4_8.gguf) | Q4_0_4_8 | 0.99GB | false | Optimized for ARM inference. Requires 'i8mm' support (see link below). *Don't use on Mac or Windows*. |
| [SmolLM2-1.7B-Instruct-Q4_0_4_4.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-Q4_0_4_4.gguf) | Q4_0_4_4 | 0.99GB | false | Optimized for ARM inference. Should work well on all ARM chips, pick this if you're unsure. *Don't use on Mac or Windows*. |
| [SmolLM2-1.7B-Instruct-Q4_0.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-Q4_0.gguf) | Q4_0 | 0.99GB | false | Legacy format, generally not worth using over similarly sized formats |
| [SmolLM2-1.7B-Instruct-Q3_K_XL.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-Q3_K_XL.gguf) | Q3_K_XL | 0.96GB | false | Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability. |
| [SmolLM2-1.7B-Instruct-IQ4_XS.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-IQ4_XS.gguf) | IQ4_XS | 0.94GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
| [SmolLM2-1.7B-Instruct-Q3_K_L.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-Q3_K_L.gguf) | Q3_K_L | 0.93GB | false | Lower quality but usable, good for low RAM availability. |
| [SmolLM2-1.7B-Instruct-Q3_K_M.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-Q3_K_M.gguf) | Q3_K_M | 0.86GB | false | Low quality. |
| [SmolLM2-1.7B-Instruct-IQ3_M.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-IQ3_M.gguf) | IQ3_M | 0.81GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
| [SmolLM2-1.7B-Instruct-Q3_K_S.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-Q3_K_S.gguf) | Q3_K_S | 0.78GB | false | Low quality, not recommended. |
| [SmolLM2-1.7B-Instruct-IQ3_XS.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-IQ3_XS.gguf) | IQ3_XS | 0.74GB | false | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
| [SmolLM2-1.7B-Instruct-Q2_K_L.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-Q2_K_L.gguf) | Q2_K_L | 0.70GB | false | Uses Q8_0 for embed and output weights. Very low quality but surprisingly usable. |
| [SmolLM2-1.7B-Instruct-Q2_K.gguf](https://huggingface.co/bartowski/SmolLM2-1.7B-Instruct-GGUF/blob/main/SmolLM2-1.7B-Instruct-Q2_K.gguf) | Q2_K | 0.67GB | false | Very low quality but 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/SmolLM2-1.7B-Instruct-GGUF --include "SmolLM2-1.7B-Instruct-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/SmolLM2-1.7B-Instruct-GGUF --include "SmolLM2-1.7B-Instruct-Q8_0/*" --local-dir ./
```
You can either specify a new local-dir (SmolLM2-1.7B-Instruct-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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

1
configuration.json Normal file
View File

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