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

Model: bartowski/calme-2.1-phi3.5-4b-GGUF
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-08-19 13:37:13 +08:00
commit b8af35490d
21 changed files with 229 additions and 0 deletions

53
.gitattributes vendored Normal file
View File

@@ -0,0 +1,53 @@
*.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
calme-2.1-phi3.5-4b-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
calme-2.1-phi3.5-4b-Q6_K_L.gguf filter=lfs diff=lfs merge=lfs -text
calme-2.1-phi3.5-4b-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
calme-2.1-phi3.5-4b-Q5_K_L.gguf filter=lfs diff=lfs merge=lfs -text
calme-2.1-phi3.5-4b-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
calme-2.1-phi3.5-4b-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
calme-2.1-phi3.5-4b-Q4_K_L.gguf filter=lfs diff=lfs merge=lfs -text
calme-2.1-phi3.5-4b-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
calme-2.1-phi3.5-4b-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
calme-2.1-phi3.5-4b-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
calme-2.1-phi3.5-4b-Q3_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
calme-2.1-phi3.5-4b-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
calme-2.1-phi3.5-4b-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
calme-2.1-phi3.5-4b-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
calme-2.1-phi3.5-4b-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
calme-2.1-phi3.5-4b-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
calme-2.1-phi3.5-4b-f16.gguf filter=lfs diff=lfs merge=lfs -text
calme-2.1-phi3.5-4b.imatrix filter=lfs diff=lfs merge=lfs -text

121
README.md Normal file
View File

@@ -0,0 +1,121 @@
---
base_model: MaziyarPanahi/calme-2.1-phi3.5-4b
datasets:
- MaziyarPanahi/truthy-dpo-v0.1-axolotl
language:
- en
library_name: transformers
license: mit
model_name: calme-2.1-phi3.5-4b
pipeline_tag: text-generation
tags:
- chat
- phi
- phi3
- phi3.5
- finetune
quantized_by: bartowski
inference: false
model_creator: MaziyarPanahi
---
## Llamacpp imatrix Quantizations of calme-2.1-phi3.5-4b
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/MaziyarPanahi/calme-2.1-phi3.5-4b
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
```
<|system|> {system_prompt}<|end|><|user|> {prompt}<|end|><|assistant|>
```
## Download a file (not the whole branch) from below:
| Filename | Quant type | File Size | Split | Description |
| -------- | ---------- | --------- | ----- | ----------- |
| [calme-2.1-phi3.5-4b-f16.gguf](https://huggingface.co/bartowski/calme-2.1-phi3.5-4b-GGUF/blob/main/calme-2.1-phi3.5-4b-f16.gguf) | f16 | 7.64GB | false | Full F16 weights. |
| [calme-2.1-phi3.5-4b-Q8_0.gguf](https://huggingface.co/bartowski/calme-2.1-phi3.5-4b-GGUF/blob/main/calme-2.1-phi3.5-4b-Q8_0.gguf) | Q8_0 | 4.06GB | false | Extremely high quality, generally unneeded but max available quant. |
| [calme-2.1-phi3.5-4b-Q6_K_L.gguf](https://huggingface.co/bartowski/calme-2.1-phi3.5-4b-GGUF/blob/main/calme-2.1-phi3.5-4b-Q6_K_L.gguf) | Q6_K_L | 3.18GB | false | Uses Q8_0 for embed and output weights. Very high quality, near perfect, *recommended*. |
| [calme-2.1-phi3.5-4b-Q6_K.gguf](https://huggingface.co/bartowski/calme-2.1-phi3.5-4b-GGUF/blob/main/calme-2.1-phi3.5-4b-Q6_K.gguf) | Q6_K | 3.14GB | false | Very high quality, near perfect, *recommended*. |
| [calme-2.1-phi3.5-4b-Q5_K_L.gguf](https://huggingface.co/bartowski/calme-2.1-phi3.5-4b-GGUF/blob/main/calme-2.1-phi3.5-4b-Q5_K_L.gguf) | Q5_K_L | 2.88GB | false | Uses Q8_0 for embed and output weights. High quality, *recommended*. |
| [calme-2.1-phi3.5-4b-Q5_K_M.gguf](https://huggingface.co/bartowski/calme-2.1-phi3.5-4b-GGUF/blob/main/calme-2.1-phi3.5-4b-Q5_K_M.gguf) | Q5_K_M | 2.82GB | false | High quality, *recommended*. |
| [calme-2.1-phi3.5-4b-Q5_K_S.gguf](https://huggingface.co/bartowski/calme-2.1-phi3.5-4b-GGUF/blob/main/calme-2.1-phi3.5-4b-Q5_K_S.gguf) | Q5_K_S | 2.64GB | false | High quality, *recommended*. |
| [calme-2.1-phi3.5-4b-Q4_K_L.gguf](https://huggingface.co/bartowski/calme-2.1-phi3.5-4b-GGUF/blob/main/calme-2.1-phi3.5-4b-Q4_K_L.gguf) | Q4_K_L | 2.47GB | false | Uses Q8_0 for embed and output weights. Good quality, *recommended*. |
| [calme-2.1-phi3.5-4b-Q4_K_M.gguf](https://huggingface.co/bartowski/calme-2.1-phi3.5-4b-GGUF/blob/main/calme-2.1-phi3.5-4b-Q4_K_M.gguf) | Q4_K_M | 2.39GB | false | Good quality, default size for must use cases, *recommended*. |
| [calme-2.1-phi3.5-4b-Q4_K_S.gguf](https://huggingface.co/bartowski/calme-2.1-phi3.5-4b-GGUF/blob/main/calme-2.1-phi3.5-4b-Q4_K_S.gguf) | Q4_K_S | 2.19GB | false | Slightly lower quality with more space savings, *recommended*. |
| [calme-2.1-phi3.5-4b-Q3_K_XL.gguf](https://huggingface.co/bartowski/calme-2.1-phi3.5-4b-GGUF/blob/main/calme-2.1-phi3.5-4b-Q3_K_XL.gguf) | Q3_K_XL | 2.17GB | false | Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability. |
| [calme-2.1-phi3.5-4b-Q3_K_L.gguf](https://huggingface.co/bartowski/calme-2.1-phi3.5-4b-GGUF/blob/main/calme-2.1-phi3.5-4b-Q3_K_L.gguf) | Q3_K_L | 2.09GB | false | Lower quality but usable, good for low RAM availability. |
| [calme-2.1-phi3.5-4b-IQ4_XS.gguf](https://huggingface.co/bartowski/calme-2.1-phi3.5-4b-GGUF/blob/main/calme-2.1-phi3.5-4b-IQ4_XS.gguf) | IQ4_XS | 2.06GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
| [calme-2.1-phi3.5-4b-Q3_K_M.gguf](https://huggingface.co/bartowski/calme-2.1-phi3.5-4b-GGUF/blob/main/calme-2.1-phi3.5-4b-Q3_K_M.gguf) | Q3_K_M | 1.96GB | false | Low quality. |
| [calme-2.1-phi3.5-4b-IQ3_M.gguf](https://huggingface.co/bartowski/calme-2.1-phi3.5-4b-GGUF/blob/main/calme-2.1-phi3.5-4b-IQ3_M.gguf) | IQ3_M | 1.86GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
| [calme-2.1-phi3.5-4b-Q3_K_S.gguf](https://huggingface.co/bartowski/calme-2.1-phi3.5-4b-GGUF/blob/main/calme-2.1-phi3.5-4b-Q3_K_S.gguf) | Q3_K_S | 1.68GB | false | Low quality, not recommended. |
| [calme-2.1-phi3.5-4b-IQ3_XS.gguf](https://huggingface.co/bartowski/calme-2.1-phi3.5-4b-GGUF/blob/main/calme-2.1-phi3.5-4b-IQ3_XS.gguf) | IQ3_XS | 1.63GB | false | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
## 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/calme-2.1-phi3.5-4b-GGUF --include "calme-2.1-phi3.5-4b-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/calme-2.1-phi3.5-4b-GGUF --include "calme-2.1-phi3.5-4b-Q8_0/*" --local-dir ./
```
You can either specify a new local-dir (calme-2.1-phi3.5-4b-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:d9e9d91c1008fb18da313a8a4f77c2e4f63ab70c37d949d46df39e69836ca569
size 1855600768

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

1
configuration.json Normal file
View File

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