Upload folder using huggingface_hub
Browse files- .gitattributes +12 -0
- README.md +94 -0
- phi-4-Q2_K.gguf +3 -0
- phi-4-Q3_K_L.gguf +3 -0
- phi-4-Q3_K_M.gguf +3 -0
- phi-4-Q3_K_S.gguf +3 -0
- phi-4-Q4_0.gguf +3 -0
- phi-4-Q4_K_M.gguf +3 -0
- phi-4-Q4_K_S.gguf +3 -0
- phi-4-Q5_0.gguf +3 -0
- phi-4-Q5_K_M.gguf +3 -0
- phi-4-Q5_K_S.gguf +3 -0
- phi-4-Q6_K.gguf +3 -0
- phi-4-Q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,15 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
phi-4-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
phi-4-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
phi-4-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
phi-4-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
phi-4-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
phi-4-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
phi-4-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
phi-4-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
phi-4-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
phi-4-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
phi-4-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
phi-4-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
license_link: https://huggingface.co/microsoft/phi-4/resolve/main/LICENSE
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
tags:
|
| 8 |
+
- phi
|
| 9 |
+
- nlp
|
| 10 |
+
- math
|
| 11 |
+
- code
|
| 12 |
+
- chat
|
| 13 |
+
- conversational
|
| 14 |
+
- TensorBlock
|
| 15 |
+
- GGUF
|
| 16 |
+
inference:
|
| 17 |
+
parameters:
|
| 18 |
+
temperature: 0
|
| 19 |
+
widget:
|
| 20 |
+
- messages:
|
| 21 |
+
- role: user
|
| 22 |
+
content: How should I explain the Internet?
|
| 23 |
+
library_name: transformers
|
| 24 |
+
base_model: microsoft/phi-4
|
| 25 |
+
---
|
| 26 |
+
|
| 27 |
+
<div style="width: auto; margin-left: auto; margin-right: auto">
|
| 28 |
+
<img src="https://i.imgur.com/jC7kdl8.jpeg" alt="TensorBlock" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
| 29 |
+
</div>
|
| 30 |
+
<div style="display: flex; justify-content: space-between; width: 100%;">
|
| 31 |
+
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
| 32 |
+
<p style="margin-top: 0.5em; margin-bottom: 0em;">
|
| 33 |
+
Feedback and support: TensorBlock's <a href="https://x.com/tensorblock_aoi">Twitter/X</a>, <a href="https://t.me/TensorBlock">Telegram Group</a> and <a href="https://x.com/tensorblock_aoi">Discord server</a>
|
| 34 |
+
</p>
|
| 35 |
+
</div>
|
| 36 |
+
</div>
|
| 37 |
+
|
| 38 |
+
## microsoft/phi-4 - GGUF
|
| 39 |
+
|
| 40 |
+
This repo contains GGUF format model files for [microsoft/phi-4](https://huggingface.co/microsoft/phi-4).
|
| 41 |
+
|
| 42 |
+
The files were quantized using machines provided by [TensorBlock](https://tensorblock.co/), and they are compatible with llama.cpp as of [commit b4446](https://github.com/ggerganov/llama.cpp/commit/4d2b3d88041705b20c30b3219838aa435e7ffbde).
|
| 43 |
+
|
| 44 |
+
<div style="text-align: left; margin: 20px 0;">
|
| 45 |
+
<a href="https://tensorblock.co/waitlist/client" style="display: inline-block; padding: 10px 20px; background-color: #007bff; color: white; text-decoration: none; border-radius: 5px; font-weight: bold;">
|
| 46 |
+
Run them on the TensorBlock client using your local machine ↗
|
| 47 |
+
</a>
|
| 48 |
+
</div>
|
| 49 |
+
|
| 50 |
+
## Prompt template
|
| 51 |
+
|
| 52 |
+
```
|
| 53 |
+
<|im_start|>system<|im_sep|>{system_prompt}<|im_end|><|im_start|>user<|im_sep|>{prompt}<|im_end|><|im_start|>assistant<|im_sep|>
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
## Model file specification
|
| 57 |
+
|
| 58 |
+
| Filename | Quant type | File Size | Description |
|
| 59 |
+
| -------- | ---------- | --------- | ----------- |
|
| 60 |
+
| [phi-4-Q2_K.gguf](https://huggingface.co/tensorblock/phi-4-GGUF/blob/main/phi-4-Q2_K.gguf) | Q2_K | 5.547 GB | smallest, significant quality loss - not recommended for most purposes |
|
| 61 |
+
| [phi-4-Q3_K_S.gguf](https://huggingface.co/tensorblock/phi-4-GGUF/blob/main/phi-4-Q3_K_S.gguf) | Q3_K_S | 6.505 GB | very small, high quality loss |
|
| 62 |
+
| [phi-4-Q3_K_M.gguf](https://huggingface.co/tensorblock/phi-4-GGUF/blob/main/phi-4-Q3_K_M.gguf) | Q3_K_M | 7.363 GB | very small, high quality loss |
|
| 63 |
+
| [phi-4-Q3_K_L.gguf](https://huggingface.co/tensorblock/phi-4-GGUF/blob/main/phi-4-Q3_K_L.gguf) | Q3_K_L | 7.930 GB | small, substantial quality loss |
|
| 64 |
+
| [phi-4-Q4_0.gguf](https://huggingface.co/tensorblock/phi-4-GGUF/blob/main/phi-4-Q4_0.gguf) | Q4_0 | 8.383 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
|
| 65 |
+
| [phi-4-Q4_K_S.gguf](https://huggingface.co/tensorblock/phi-4-GGUF/blob/main/phi-4-Q4_K_S.gguf) | Q4_K_S | 8.441 GB | small, greater quality loss |
|
| 66 |
+
| [phi-4-Q4_K_M.gguf](https://huggingface.co/tensorblock/phi-4-GGUF/blob/main/phi-4-Q4_K_M.gguf) | Q4_K_M | 9.053 GB | medium, balanced quality - recommended |
|
| 67 |
+
| [phi-4-Q5_0.gguf](https://huggingface.co/tensorblock/phi-4-GGUF/blob/main/phi-4-Q5_0.gguf) | Q5_0 | 10.152 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
|
| 68 |
+
| [phi-4-Q5_K_S.gguf](https://huggingface.co/tensorblock/phi-4-GGUF/blob/main/phi-4-Q5_K_S.gguf) | Q5_K_S | 10.152 GB | large, low quality loss - recommended |
|
| 69 |
+
| [phi-4-Q5_K_M.gguf](https://huggingface.co/tensorblock/phi-4-GGUF/blob/main/phi-4-Q5_K_M.gguf) | Q5_K_M | 10.604 GB | large, very low quality loss - recommended |
|
| 70 |
+
| [phi-4-Q6_K.gguf](https://huggingface.co/tensorblock/phi-4-GGUF/blob/main/phi-4-Q6_K.gguf) | Q6_K | 12.030 GB | very large, extremely low quality loss |
|
| 71 |
+
| [phi-4-Q8_0.gguf](https://huggingface.co/tensorblock/phi-4-GGUF/blob/main/phi-4-Q8_0.gguf) | Q8_0 | 15.581 GB | very large, extremely low quality loss - not recommended |
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
## Downloading instruction
|
| 75 |
+
|
| 76 |
+
### Command line
|
| 77 |
+
|
| 78 |
+
Firstly, install Huggingface Client
|
| 79 |
+
|
| 80 |
+
```shell
|
| 81 |
+
pip install -U "huggingface_hub[cli]"
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
Then, downoad the individual model file the a local directory
|
| 85 |
+
|
| 86 |
+
```shell
|
| 87 |
+
huggingface-cli download tensorblock/phi-4-GGUF --include "phi-4-Q2_K.gguf" --local-dir MY_LOCAL_DIR
|
| 88 |
+
```
|
| 89 |
+
|
| 90 |
+
If you wanna download multiple model files with a pattern (e.g., `*Q4_K*gguf`), you can try:
|
| 91 |
+
|
| 92 |
+
```shell
|
| 93 |
+
huggingface-cli download tensorblock/phi-4-GGUF --local-dir MY_LOCAL_DIR --local-dir-use-symlinks False --include='*Q4_K*gguf'
|
| 94 |
+
```
|
phi-4-Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3b2bc268b6bd2765edb0d0c1d2e50789eb4d38567ff3f06c4f5356207858786d
|
| 3 |
+
size 5547348064
|
phi-4-Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f56babd99b629fd3e4a6fdfa82be89ff0d4b7522925353ded5c00dd3f592bc2a
|
| 3 |
+
size 7930155104
|
phi-4-Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8c997739dc76f9e53a5e1235162f19a0127fcbf25fec1fa2ce4cfc2344459f11
|
| 3 |
+
size 7363268704
|
phi-4-Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:03e3f4da25219943b3ef61c1aea0d865d92200ae8d8287042da3e6c723a96c0a
|
| 3 |
+
size 6504747104
|
phi-4-Q4_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e77d0e11ff2d018df67afe192b05853ce47aad2012810dc79162fb858a5b4b7
|
| 3 |
+
size 8383418464
|
phi-4-Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ab704ffa097f5902b937ca5d0c166226f1201e7492da30fa4e1c086c217afd6b
|
| 3 |
+
size 9053114464
|
phi-4-Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:076a14910e1d9f02f40996b23f0347ec5a8caa503081cdd037cd268068d2d9cc
|
| 3 |
+
size 8440762464
|
phi-4-Q5_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3db2aa4eb3b0200662fbee59a223750b8d9205dc51fb611e443f5de3639872cc
|
| 3 |
+
size 10151579744
|
phi-4-Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:71b29a0ad348ff0c08fa84570e51443a87012921fdc2ffce0baab016b9ef415d
|
| 3 |
+
size 10604187744
|
phi-4-Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5d8d8e6f8668dee00ba115e5861a1dbc48125fd0a3fa304c552be69f2c924846
|
| 3 |
+
size 10151579744
|
phi-4-Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:58c70ac0bb2d84b6d0b885eadb624a2a323f0798329cc6969fb6b4ecaab41def
|
| 3 |
+
size 12030251104
|
phi-4-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:294392031c56647d3c4ca7de0698174efd58469ceb7e171f0cd52169d0f49fdd
|
| 3 |
+
size 15580500064
|