apepkuss79 commited on
Commit
b384a62
·
verified ·
1 Parent(s): c068429

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +86 -89
README.md CHANGED
@@ -1,90 +1,87 @@
1
- ---
2
- base_model: microsoft/phi-4
3
- license: mit
4
- license_link: https://huggingface.co/microsoft/phi-4/resolve/main/LICENSE
5
- language:
6
- - multilingual
7
- pipeline_tag: text-generation
8
- library_name: transformers
9
- model_creator: Microsoft
10
- model_name: phi-4
11
- quantized_by: Second State Inc.
12
- tags:
13
- - nlp
14
- - code
15
- ---
16
-
17
- <!-- header start -->
18
- <!-- 200823 -->
19
- <div style="width: auto; margin-left: auto; margin-right: auto">
20
- <img src="https://github.com/LlamaEdge/LlamaEdge/raw/dev/assets/logo.svg" style="width: 100%; min-width: 400px; display: block; margin: auto;">
21
- </div>
22
- <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
23
- <!-- header end -->
24
-
25
- # Phi-4-GGUF
26
-
27
- ## Original Model
28
-
29
- [microsoft/phi-4](https://huggingface.co/microsoft/phi-4)
30
-
31
- ## Run with LlamaEdge
32
-
33
- - LlamaEdge version: coming soon
34
-
35
- <!-- - LlamaEdge version: [v0.14.1](https://github.com/LlamaEdge/LlamaEdge/releases/tag/0.14.1) and above -->
36
-
37
- - Prompt template
38
-
39
- - Prompt type: `phi-4-chat`
40
-
41
- - Prompt string
42
-
43
- ```text
44
- <|im_start|>system<|im_sep|>
45
- {system_message}<|im_end|>
46
- <|im_start|>user<|im_sep|>
47
- {user_message}<|im_end|>
48
- <|im_start|>assistant<|im_sep|>
49
- ```
50
-
51
- - Context size: `16000`
52
-
53
- - Run as LlamaEdge service
54
-
55
- ```bash
56
- wasmedge --dir .:. --nn-preload default:GGML:AUTO:phi-4-Q5_K_M.gguf \
57
- llama-api-server.wasm \
58
- --prompt-template phi-4-chat \
59
- --ctx-size 16000 \
60
- --model-name phi-3-mini
61
- ```
62
-
63
- - Run as LlamaEdge command app
64
-
65
- ```bash
66
- wasmedge --dir .:. --nn-preload default:GGML:AUTO:phi-4-Q5_K_M.gguf \
67
- llama-chat.wasm \
68
- --prompt-template phi-4-chat \
69
- --ctx-size 16000
70
- ```
71
-
72
- ## Quantized GGUF Models
73
-
74
- | Name | Quant method | Bits | Size | Use case |
75
- | ---- | ---- | ---- | ---- | ----- |
76
- | [phi-4-Q2_K.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q2_K.gguf) | Q2_K | 2 | 5.55 GB| smallest, significant quality loss - not recommended for most purposes |
77
- | [phi-4-Q3_K_L.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q3_K_L.gguf) | Q3_K_L | 3 | 7.93 GB| small, substantial quality loss |
78
- | [phi-4-Q3_K_M.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q3_K_M.gguf) | Q3_K_M | 3 | 7.36 GB| very small, high quality loss |
79
- | [phi-4-Q3_K_S.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q3_K_S.gguf) | Q3_K_S | 3 | 6.50 GB| very small, high quality loss |
80
- | [phi-4-Q4_0.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q4_0.gguf) | Q4_0 | 4 | 8.38 GB| legacy; small, very high quality loss - prefer using Q3_K_M |
81
- | [phi-4-Q4_K_M.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q4_K_M.gguf) | Q4_K_M | 4 | 9.05 GB| medium, balanced quality - recommended |
82
- | [phi-4-Q4_K_S.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q4_K_S.gguf) | Q4_K_S | 4 | 8.44 GB| small, greater quality loss |
83
- | [phi-4-Q5_0.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q5_0.gguf) | Q5_0 | 5 | 10.2 GB| legacy; medium, balanced quality - prefer using Q4_K_M |
84
- | [phi-4-Q5_K_M.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q5_K_M.gguf) | Q5_K_M | 5 | 10.6 GB| large, very low quality loss - recommended |
85
- | [phi-4-Q5_K_S.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q5_K_S.gguf) | Q5_K_S | 5 | 10.2 GB| large, low quality loss - recommended |
86
- | [phi-4-Q6_K.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q6_K.gguf) | Q6_K | 6 | 12.0 GB| very large, extremely low quality loss |
87
- | [phi-4-Q8_0.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q8_0.gguf) | Q8_0 | 8 | 15.6 GB| very large, extremely low quality loss - not recommended |
88
- | [phi-4-f16.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-f16.gguf) | f16 | 16 | 29.3 GB| |
89
-
90
  *Quantized with llama.cpp b4450.*
 
1
+ ---
2
+ base_model: microsoft/phi-4
3
+ license: mit
4
+ license_link: https://huggingface.co/microsoft/phi-4/resolve/main/LICENSE
5
+ language:
6
+ - en
7
+ pipeline_tag: text-generation
8
+ library_name: transformers
9
+ model_creator: Microsoft
10
+ model_name: phi-4
11
+ quantized_by: Second State Inc.
12
+ ---
13
+
14
+ <!-- header start -->
15
+ <!-- 200823 -->
16
+ <div style="width: auto; margin-left: auto; margin-right: auto">
17
+ <img src="https://github.com/LlamaEdge/LlamaEdge/raw/dev/assets/logo.svg" style="width: 100%; min-width: 400px; display: block; margin: auto;">
18
+ </div>
19
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
20
+ <!-- header end -->
21
+
22
+ # Phi-4-GGUF
23
+
24
+ ## Original Model
25
+
26
+ [microsoft/phi-4](https://huggingface.co/microsoft/phi-4)
27
+
28
+ ## Run with LlamaEdge
29
+
30
+ - LlamaEdge version: coming soon
31
+
32
+ <!-- - LlamaEdge version: [v0.14.1](https://github.com/LlamaEdge/LlamaEdge/releases/tag/0.14.1) and above -->
33
+
34
+ - Prompt template
35
+
36
+ - Prompt type: `phi-4-chat`
37
+
38
+ - Prompt string
39
+
40
+ ```text
41
+ <|im_start|>system<|im_sep|>
42
+ {system_message}<|im_end|>
43
+ <|im_start|>user<|im_sep|>
44
+ {user_message}<|im_end|>
45
+ <|im_start|>assistant<|im_sep|>
46
+ ```
47
+
48
+ - Context size: `16000`
49
+
50
+ - Run as LlamaEdge service
51
+
52
+ ```bash
53
+ wasmedge --dir .:. --nn-preload default:GGML:AUTO:phi-4-Q5_K_M.gguf \
54
+ llama-api-server.wasm \
55
+ --prompt-template phi-4-chat \
56
+ --ctx-size 16000 \
57
+ --model-name phi-3-mini
58
+ ```
59
+
60
+ - Run as LlamaEdge command app
61
+
62
+ ```bash
63
+ wasmedge --dir .:. --nn-preload default:GGML:AUTO:phi-4-Q5_K_M.gguf \
64
+ llama-chat.wasm \
65
+ --prompt-template phi-4-chat \
66
+ --ctx-size 16000
67
+ ```
68
+
69
+ ## Quantized GGUF Models
70
+
71
+ | Name | Quant method | Bits | Size | Use case |
72
+ | ---- | ---- | ---- | ---- | ----- |
73
+ | [phi-4-Q2_K.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q2_K.gguf) | Q2_K | 2 | 5.55 GB| smallest, significant quality loss - not recommended for most purposes |
74
+ | [phi-4-Q3_K_L.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q3_K_L.gguf) | Q3_K_L | 3 | 7.93 GB| small, substantial quality loss |
75
+ | [phi-4-Q3_K_M.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q3_K_M.gguf) | Q3_K_M | 3 | 7.36 GB| very small, high quality loss |
76
+ | [phi-4-Q3_K_S.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q3_K_S.gguf) | Q3_K_S | 3 | 6.50 GB| very small, high quality loss |
77
+ | [phi-4-Q4_0.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q4_0.gguf) | Q4_0 | 4 | 8.38 GB| legacy; small, very high quality loss - prefer using Q3_K_M |
78
+ | [phi-4-Q4_K_M.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q4_K_M.gguf) | Q4_K_M | 4 | 9.05 GB| medium, balanced quality - recommended |
79
+ | [phi-4-Q4_K_S.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q4_K_S.gguf) | Q4_K_S | 4 | 8.44 GB| small, greater quality loss |
80
+ | [phi-4-Q5_0.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q5_0.gguf) | Q5_0 | 5 | 10.2 GB| legacy; medium, balanced quality - prefer using Q4_K_M |
81
+ | [phi-4-Q5_K_M.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q5_K_M.gguf) | Q5_K_M | 5 | 10.6 GB| large, very low quality loss - recommended |
82
+ | [phi-4-Q5_K_S.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q5_K_S.gguf) | Q5_K_S | 5 | 10.2 GB| large, low quality loss - recommended |
83
+ | [phi-4-Q6_K.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q6_K.gguf) | Q6_K | 6 | 12.0 GB| very large, extremely low quality loss |
84
+ | [phi-4-Q8_0.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-Q8_0.gguf) | Q8_0 | 8 | 15.6 GB| very large, extremely low quality loss - not recommended |
85
+ | [phi-4-f16.gguf](https://huggingface.co/second-state/phi-4-GGUF/blob/main/phi-4-f16.gguf) | f16 | 16 | 29.3 GB| |
86
+
 
 
 
87
  *Quantized with llama.cpp b4450.*