Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -1,3 +1,109 @@
|
|
1 |
---
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
base_model: microsoft/Phi-4-mini-instruct
|
3 |
+
license: mit
|
4 |
+
license_link: https://huggingface.co/microsoft/Phi-4-mini-instruct/resolve/main/LICENSE
|
5 |
+
language:
|
6 |
+
- "multilingual"
|
7 |
+
- "ar"
|
8 |
+
- "zh"
|
9 |
+
- "cs"
|
10 |
+
- "da"
|
11 |
+
- "nl"
|
12 |
+
- "en"
|
13 |
+
- "fi"
|
14 |
+
- "fr"
|
15 |
+
- "de"
|
16 |
+
- "he"
|
17 |
+
- "hu"
|
18 |
+
- "it"
|
19 |
+
- "ja"
|
20 |
+
- "ko"
|
21 |
+
- "no"
|
22 |
+
- "pl"
|
23 |
+
- "pt"
|
24 |
+
- "ru"
|
25 |
+
- "es"
|
26 |
+
- "sv"
|
27 |
+
- "th"
|
28 |
+
- "tr"
|
29 |
+
- "uk"
|
30 |
+
pipeline_tag: text-generation
|
31 |
+
library_name: transformers
|
32 |
+
model_creator: Microsoft
|
33 |
+
model_name: Phi-4-mini-instruct
|
34 |
+
quantized_by: Second State Inc.
|
35 |
+
tags:
|
36 |
+
- nlp
|
37 |
+
- code
|
38 |
---
|
39 |
+
|
40 |
+
<!-- header start -->
|
41 |
+
<!-- 200823 -->
|
42 |
+
<div style="width: auto; margin-left: auto; margin-right: auto">
|
43 |
+
<img src="https://github.com/LlamaEdge/LlamaEdge/raw/dev/assets/logo.svg" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
44 |
+
</div>
|
45 |
+
<hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
|
46 |
+
<!-- header end -->
|
47 |
+
|
48 |
+
# Phi-4-mini-instruct-GGUF
|
49 |
+
|
50 |
+
## Original Model
|
51 |
+
|
52 |
+
[microsoft/Phi-4-mini-instruct](https://huggingface.co/microsoft/Phi-4-mini-instruct)
|
53 |
+
|
54 |
+
## Run with LlamaEdge
|
55 |
+
|
56 |
+
- LlamaEdge version: coming soon
|
57 |
+
|
58 |
+
<!-- - LlamaEdge version: [v0.14.0](https://github.com/LlamaEdge/LlamaEdge/releases/tag/0.14.0) and above -->
|
59 |
+
|
60 |
+
- Prompt template
|
61 |
+
|
62 |
+
- Prompt type: `phi-4-chat`
|
63 |
+
|
64 |
+
- Prompt string
|
65 |
+
|
66 |
+
```text
|
67 |
+
<|system|>Insert System Message<|end|><|user|>Insert User Message<|end|><|assistant|>
|
68 |
+
```
|
69 |
+
|
70 |
+
- Context size: `128000`
|
71 |
+
|
72 |
+
- Run as LlamaEdge service
|
73 |
+
|
74 |
+
```bash
|
75 |
+
wasmedge --dir .:. --nn-preload default:GGML:AUTO:Phi-4-mini-instruct-Q5_K_M.gguf \
|
76 |
+
llama-api-server.wasm \
|
77 |
+
--prompt-template phi-4-chat \
|
78 |
+
--ctx-size 128000 \
|
79 |
+
--model-name phi-4-mini
|
80 |
+
```
|
81 |
+
|
82 |
+
- Run as LlamaEdge command app
|
83 |
+
|
84 |
+
```bash
|
85 |
+
wasmedge --dir .:. --nn-preload default:GGML:AUTO:Phi-4-mini-instruct-Q5_K_M.gguf \
|
86 |
+
llama-chat.wasm \
|
87 |
+
--prompt-template phi-4-chat \
|
88 |
+
--ctx-size 128000
|
89 |
+
```
|
90 |
+
|
91 |
+
## Quantized GGUF Models
|
92 |
+
|
93 |
+
| Name | Quant method | Bits | Size | Use case |
|
94 |
+
| ---- | ---- | ---- | ---- | ----- |
|
95 |
+
| [Phi-4-mini-instruct-Q2_K.gguf](https://huggingface.co/second-state/Phi-4-mini-instruct-GGUF/blob/main/Phi-4-mini-instruct-Q2_K.gguf) | Q2_K | 2 | 1.68 GB| smallest, significant quality loss - not recommended for most purposes |
|
96 |
+
| [Phi-4-mini-instruct-Q3_K_L.gguf](https://huggingface.co/second-state/Phi-4-mini-instruct-GGUF/blob/main/Phi-4-mini-instruct-Q3_K_L.gguf) | Q3_K_L | 3 | 2.25 GB| small, substantial quality loss |
|
97 |
+
| [Phi-4-mini-instruct-Q3_K_M.gguf](https://huggingface.co/second-state/Phi-4-mini-instruct-GGUF/blob/main/Phi-4-mini-instruct-Q3_K_M.gguf) | Q3_K_M | 3 | 2.12 GB| very small, high quality loss |
|
98 |
+
| [Phi-4-mini-instruct-Q3_K_S.gguf](https://huggingface.co/second-state/Phi-4-mini-instruct-GGUF/blob/main/Phi-4-mini-instruct-Q3_K_S.gguf) | Q3_K_S | 3 | 1.90 GB| very small, high quality loss |
|
99 |
+
| [Phi-4-mini-instruct-Q4_0.gguf](https://huggingface.co/second-state/Phi-4-mini-instruct-GGUF/blob/main/Phi-4-mini-instruct-Q4_0.gguf) | Q4_0 | 4 | 2.33 GB| legacy; small, very high quality loss - prefer using Q3_K_M |
|
100 |
+
| [Phi-4-mini-instruct-Q4_K_M.gguf](https://huggingface.co/second-state/Phi-4-mini-instruct-GGUF/blob/main/Phi-4-mini-instruct-Q4_K_M.gguf) | Q4_K_M | 4 | 2.49 GB| medium, balanced quality - recommended |
|
101 |
+
| [Phi-4-mini-instruct-Q4_K_S.gguf](https://huggingface.co/second-state/Phi-4-mini-instruct-GGUF/blob/main/Phi-4-mini-instruct-Q4_K_S.gguf) | Q4_K_S | 4 | 2.34 GB| small, greater quality loss |
|
102 |
+
| [Phi-4-mini-instruct-Q5_0.gguf](https://huggingface.co/second-state/Phi-4-mini-instruct-GGUF/blob/main/Phi-4-mini-instruct-Q5_0.gguf) | Q5_0 | 5 | 2.73 GB| legacy; medium, balanced quality - prefer using Q4_K_M |
|
103 |
+
| [Phi-4-mini-instruct-Q5_K_M.gguf](https://huggingface.co/second-state/Phi-4-mini-instruct-GGUF/blob/main/Phi-4-mini-instruct-Q5_K_M.gguf) | Q5_K_M | 5 | 2.85 GB| large, very low quality loss - recommended |
|
104 |
+
| [Phi-4-mini-instruct-Q5_K_S.gguf](https://huggingface.co/second-state/Phi-4-mini-instruct-GGUF/blob/main/Phi-4-mini-instruct-Q5_K_S.gguf) | Q5_K_S | 5 | 2.73 GB| large, low quality loss - recommended |
|
105 |
+
| [Phi-4-mini-instruct-Q6_K.gguf](https://huggingface.co/second-state/Phi-4-mini-instruct-GGUF/blob/main/Phi-4-mini-instruct-Q6_K.gguf) | Q6_K | 6 | 3.16 GB| very large, extremely low quality loss |
|
106 |
+
| [Phi-4-mini-instruct-Q8_0.gguf](https://huggingface.co/second-state/Phi-4-mini-instruct-GGUF/blob/main/Phi-4-mini-instruct-Q8_0.gguf) | Q8_0 | 8 | 4.08 GB| very large, extremely low quality loss - not recommended |
|
107 |
+
| [Phi-4-mini-instruct-f16.gguf](https://huggingface.co/second-state/Phi-4-mini-instruct-GGUF/blob/main/Phi-4-mini-instruct-f16.gguf) | f16 | 16 | 7.68 GB| |
|
108 |
+
|
109 |
+
*Quantized with llama.cpp b4792.*
|