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

Model: bartowski/phi3.5-gutenberg-4B-GGUF
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-07-06 00:19:13 +08:00
commit 80d805cfce
22 changed files with 223 additions and 0 deletions

54
.gitattributes vendored Normal file
View File

@@ -0,0 +1,54 @@
*.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
phi3.5-gutenberg-4B-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
phi3.5-gutenberg-4B-Q6_K_L.gguf filter=lfs diff=lfs merge=lfs -text
phi3.5-gutenberg-4B-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
phi3.5-gutenberg-4B-Q5_K_L.gguf filter=lfs diff=lfs merge=lfs -text
phi3.5-gutenberg-4B-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
phi3.5-gutenberg-4B-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
phi3.5-gutenberg-4B-Q4_K_L.gguf filter=lfs diff=lfs merge=lfs -text
phi3.5-gutenberg-4B-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
phi3.5-gutenberg-4B-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
phi3.5-gutenberg-4B-Q4_0_8_8.gguf filter=lfs diff=lfs merge=lfs -text
phi3.5-gutenberg-4B-Q4_0_4_8.gguf filter=lfs diff=lfs merge=lfs -text
phi3.5-gutenberg-4B-Q4_0_4_4.gguf filter=lfs diff=lfs merge=lfs -text
phi3.5-gutenberg-4B-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
phi3.5-gutenberg-4B-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
phi3.5-gutenberg-4B-Q3_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
phi3.5-gutenberg-4B-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
phi3.5-gutenberg-4B-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
phi3.5-gutenberg-4B-f16.gguf filter=lfs diff=lfs merge=lfs -text
phi3.5-gutenberg-4B.imatrix filter=lfs diff=lfs merge=lfs -text

111
README.md Normal file
View File

@@ -0,0 +1,111 @@
---
base_model: nbeerbower/phi3.5-gutenberg-4B
datasets:
- jondurbin/gutenberg-dpo-v0.1
library_name: transformers
license: mit
pipeline_tag: text-generation
quantized_by: bartowski
---
## Llamacpp imatrix Quantizations of phi3.5-gutenberg-4B
Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b3634">b3634</a> for quantization.
Original model: https://huggingface.co/nbeerbower/phi3.5-gutenberg-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 |
| -------- | ---------- | --------- | ----- | ----------- |
| [phi3.5-gutenberg-4B-f16.gguf](https://huggingface.co/bartowski/phi3.5-gutenberg-4B-GGUF/blob/main/phi3.5-gutenberg-4B-f16.gguf) | f16 | 7.64GB | false | Full F16 weights. |
| [phi3.5-gutenberg-4B-Q8_0.gguf](https://huggingface.co/bartowski/phi3.5-gutenberg-4B-GGUF/blob/main/phi3.5-gutenberg-4B-Q8_0.gguf) | Q8_0 | 4.06GB | false | Extremely high quality, generally unneeded but max available quant. |
| [phi3.5-gutenberg-4B-Q6_K_L.gguf](https://huggingface.co/bartowski/phi3.5-gutenberg-4B-GGUF/blob/main/phi3.5-gutenberg-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*. |
| [phi3.5-gutenberg-4B-Q6_K.gguf](https://huggingface.co/bartowski/phi3.5-gutenberg-4B-GGUF/blob/main/phi3.5-gutenberg-4B-Q6_K.gguf) | Q6_K | 3.14GB | false | Very high quality, near perfect, *recommended*. |
| [phi3.5-gutenberg-4B-Q5_K_L.gguf](https://huggingface.co/bartowski/phi3.5-gutenberg-4B-GGUF/blob/main/phi3.5-gutenberg-4B-Q5_K_L.gguf) | Q5_K_L | 2.88GB | false | Uses Q8_0 for embed and output weights. High quality, *recommended*. |
| [phi3.5-gutenberg-4B-Q5_K_M.gguf](https://huggingface.co/bartowski/phi3.5-gutenberg-4B-GGUF/blob/main/phi3.5-gutenberg-4B-Q5_K_M.gguf) | Q5_K_M | 2.82GB | false | High quality, *recommended*. |
| [phi3.5-gutenberg-4B-Q5_K_S.gguf](https://huggingface.co/bartowski/phi3.5-gutenberg-4B-GGUF/blob/main/phi3.5-gutenberg-4B-Q5_K_S.gguf) | Q5_K_S | 2.64GB | false | High quality, *recommended*. |
| [phi3.5-gutenberg-4B-Q4_K_L.gguf](https://huggingface.co/bartowski/phi3.5-gutenberg-4B-GGUF/blob/main/phi3.5-gutenberg-4B-Q4_K_L.gguf) | Q4_K_L | 2.47GB | false | Uses Q8_0 for embed and output weights. Good quality, *recommended*. |
| [phi3.5-gutenberg-4B-Q4_K_M.gguf](https://huggingface.co/bartowski/phi3.5-gutenberg-4B-GGUF/blob/main/phi3.5-gutenberg-4B-Q4_K_M.gguf) | Q4_K_M | 2.39GB | false | Good quality, default size for must use cases, *recommended*. |
| [phi3.5-gutenberg-4B-Q4_K_S.gguf](https://huggingface.co/bartowski/phi3.5-gutenberg-4B-GGUF/blob/main/phi3.5-gutenberg-4B-Q4_K_S.gguf) | Q4_K_S | 2.19GB | false | Slightly lower quality with more space savings, *recommended*. |
| [phi3.5-gutenberg-4B-Q4_0_8_8.gguf](https://huggingface.co/bartowski/phi3.5-gutenberg-4B-GGUF/blob/main/phi3.5-gutenberg-4B-Q4_0_8_8.gguf) | Q4_0_8_8 | 2.18GB | false | Optimized for ARM and CPU inference, much faster than Q4_0 at similar quality. |
| [phi3.5-gutenberg-4B-Q4_0_4_8.gguf](https://huggingface.co/bartowski/phi3.5-gutenberg-4B-GGUF/blob/main/phi3.5-gutenberg-4B-Q4_0_4_8.gguf) | Q4_0_4_8 | 2.18GB | false | Optimized for ARM and CPU inference, much faster than Q4_0 at similar quality. |
| [phi3.5-gutenberg-4B-Q4_0_4_4.gguf](https://huggingface.co/bartowski/phi3.5-gutenberg-4B-GGUF/blob/main/phi3.5-gutenberg-4B-Q4_0_4_4.gguf) | Q4_0_4_4 | 2.18GB | false | Optimized for ARM and CPU inference, much faster than Q4_0 at similar quality. |
| [phi3.5-gutenberg-4B-Q4_0.gguf](https://huggingface.co/bartowski/phi3.5-gutenberg-4B-GGUF/blob/main/phi3.5-gutenberg-4B-Q4_0.gguf) | Q4_0 | 2.18GB | false | Legacy format, generally not worth using over similarly sized formats |
| [phi3.5-gutenberg-4B-Q3_K_XL.gguf](https://huggingface.co/bartowski/phi3.5-gutenberg-4B-GGUF/blob/main/phi3.5-gutenberg-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. |
| [phi3.5-gutenberg-4B-Q3_K_L.gguf](https://huggingface.co/bartowski/phi3.5-gutenberg-4B-GGUF/blob/main/phi3.5-gutenberg-4B-Q3_K_L.gguf) | Q3_K_L | 2.09GB | false | Lower quality but usable, good for low RAM availability. |
| [phi3.5-gutenberg-4B-IQ4_XS.gguf](https://huggingface.co/bartowski/phi3.5-gutenberg-4B-GGUF/blob/main/phi3.5-gutenberg-4B-IQ4_XS.gguf) | IQ4_XS | 2.06GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
| [phi3.5-gutenberg-4B-IQ3_M.gguf](https://huggingface.co/bartowski/phi3.5-gutenberg-4B-GGUF/blob/main/phi3.5-gutenberg-4B-IQ3_M.gguf) | IQ3_M | 1.86GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
## 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/phi3.5-gutenberg-4B-GGUF --include "phi3.5-gutenberg-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/phi3.5-gutenberg-4B-GGUF --include "phi3.5-gutenberg-4B-Q8_0/*" --local-dir ./
```
You can either specify a new local-dir (phi3.5-gutenberg-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

1
configuration.json Normal file
View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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