apepkuss79
commited on
Commit
•
7938358
1
Parent(s):
0bd24ef
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -1,3 +1,92 @@
|
|
1 |
---
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
base_model: microsoft/Phi-3.5-mini-instruct
|
3 |
+
license: mit
|
4 |
+
license_link: https://huggingface.co/microsoft/Phi-3.5-mini-instruct/resolve/main/LICENSE
|
5 |
+
language:
|
6 |
+
- multilingual
|
7 |
+
pipeline_tag: text-generation
|
8 |
+
library_name: transformers
|
9 |
+
model_creator: Microsoft
|
10 |
+
model_name: Phi-3.5-mini-instruct
|
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-3.5-mini-instruct-GGUF
|
26 |
+
|
27 |
+
## Original Model
|
28 |
+
|
29 |
+
[microsoft/Phi-3.5-mini-instruct](https://huggingface.co/microsoft/Phi-3.5-mini-instruct)
|
30 |
+
|
31 |
+
## Run with LlamaEdge
|
32 |
+
|
33 |
+
- LlamaEdge version: [v0.14.0](https://github.com/LlamaEdge/LlamaEdge/releases/tag/0.14.0) and above
|
34 |
+
|
35 |
+
- Prompt template
|
36 |
+
|
37 |
+
- Prompt type: `phi-3-chat`
|
38 |
+
|
39 |
+
- Prompt string
|
40 |
+
|
41 |
+
```text
|
42 |
+
<|system|>
|
43 |
+
{system_message}<|end|>
|
44 |
+
<|user|>
|
45 |
+
{user_message_1}<|end|>
|
46 |
+
<|assistant|>
|
47 |
+
{assistant_message_1}<|end|>
|
48 |
+
<|user|>
|
49 |
+
{user_message_2}<|end|>
|
50 |
+
<|assistant|>
|
51 |
+
```
|
52 |
+
|
53 |
+
- Context size: `128000`
|
54 |
+
|
55 |
+
- Run as LlamaEdge service
|
56 |
+
|
57 |
+
```bash
|
58 |
+
wasmedge --dir .:. --nn-preload default:GGML:AUTO:Phi-3.5-mini-instruct-Q5_K_M.gguf \
|
59 |
+
llama-api-server.wasm \
|
60 |
+
--prompt-template phi-3-chat \
|
61 |
+
--ctx-size 128000 \
|
62 |
+
--model-name phi-3-mini
|
63 |
+
```
|
64 |
+
|
65 |
+
- Run as LlamaEdge command app
|
66 |
+
|
67 |
+
```bash
|
68 |
+
wasmedge --dir .:. --nn-preload default:GGML:AUTO:Phi-3.5-mini-instruct-Q5_K_M.gguf \
|
69 |
+
llama-chat.wasm \
|
70 |
+
--prompt-template phi-3-chat \
|
71 |
+
--ctx-size 128000
|
72 |
+
```
|
73 |
+
|
74 |
+
## Quantized GGUF Models
|
75 |
+
|
76 |
+
| Name | Quant method | Bits | Size | Use case |
|
77 |
+
| ---- | ---- | ---- | ---- | ----- |
|
78 |
+
| [Phi-3.5-mini-instruct-Q2_K.gguf](https://huggingface.co/second-state/Phi-3.5-mini-instruct-GGUF/blob/main/Phi-3.5-mini-instruct-Q2_K.gguf) | Q2_K | 2 | 1.42 GB| smallest, significant quality loss - not recommended for most purposes |
|
79 |
+
| [Phi-3.5-mini-instruct-Q3_K_L.gguf](https://huggingface.co/second-state/Phi-3.5-mini-instruct-GGUF/blob/main/Phi-3.5-mini-instruct-Q3_K_L.gguf) | Q3_K_L | 3 | 2.09 GB| small, substantial quality loss |
|
80 |
+
| [Phi-3.5-mini-instruct-Q3_K_M.gguf](https://huggingface.co/second-state/Phi-3.5-mini-instruct-GGUF/blob/main/Phi-3.5-mini-instruct-Q3_K_M.gguf) | Q3_K_M | 3 | 1.96 GB| very small, high quality loss |
|
81 |
+
| [Phi-3.5-mini-instruct-Q3_K_S.gguf](https://huggingface.co/second-state/Phi-3.5-mini-instruct-GGUF/blob/main/Phi-3.5-mini-instruct-Q3_K_S.gguf) | Q3_K_S | 3 | 1.68 GB| very small, high quality loss |
|
82 |
+
| [Phi-3.5-mini-instruct-Q4_0.gguf](https://huggingface.co/second-state/Phi-3.5-mini-instruct-GGUF/blob/main/Phi-3.5-mini-instruct-Q4_0.gguf) | Q4_0 | 4 | 2.18 GB| legacy; small, very high quality loss - prefer using Q3_K_M |
|
83 |
+
| [Phi-3.5-mini-instruct-Q4_K_M.gguf](https://huggingface.co/second-state/Phi-3.5-mini-instruct-GGUF/blob/main/Phi-3.5-mini-instruct-Q4_K_M.gguf) | Q4_K_M | 4 | 2.39 GB| medium, balanced quality - recommended |
|
84 |
+
| [Phi-3.5-mini-instruct-Q4_K_S.gguf](https://huggingface.co/second-state/Phi-3.5-mini-instruct-GGUF/blob/main/Phi-3.5-mini-instruct-Q4_K_S.gguf) | Q4_K_S | 4 | 2.19 GB| small, greater quality loss |
|
85 |
+
| [Phi-3.5-mini-instruct-Q5_0.gguf](https://huggingface.co/second-state/Phi-3.5-mini-instruct-GGUF/blob/main/Phi-3.5-mini-instruct-Q5_0.gguf) | Q5_0 | 5 | 2.64 GB| legacy; medium, balanced quality - prefer using Q4_K_M |
|
86 |
+
| [Phi-3.5-mini-instruct-Q5_K_M.gguf](https://huggingface.co/second-state/Phi-3.5-mini-instruct-GGUF/blob/main/Phi-3.5-mini-instruct-Q5_K_M.gguf) | Q5_K_M | 5 | 2.82 GB| large, very low quality loss - recommended |
|
87 |
+
| [Phi-3.5-mini-instruct-Q5_K_S.gguf](https://huggingface.co/second-state/Phi-3.5-mini-instruct-GGUF/blob/main/Phi-3.5-mini-instruct-Q5_K_S.gguf) | Q5_K_S | 5 | 2.64 GB| large, low quality loss - recommended |
|
88 |
+
| [Phi-3.5-mini-instruct-Q6_K.gguf](https://huggingface.co/second-state/Phi-3.5-mini-instruct-GGUF/blob/main/Phi-3.5-mini-instruct-Q6_K.gguf) | Q6_K | 6 | 3.14 GB| very large, extremely low quality loss |
|
89 |
+
| [Phi-3.5-mini-instruct-Q8_0.gguf](https://huggingface.co/second-state/Phi-3.5-mini-instruct-GGUF/blob/main/Phi-3.5-mini-instruct-Q8_0.gguf) | Q8_0 | 8 | 4.06 GB| very large, extremely low quality loss - not recommended |
|
90 |
+
| [Phi-3.5-mini-instruct-f16.gguf](https://huggingface.co/second-state/Phi-3.5-mini-instruct-GGUF/blob/main/Phi-3.5-mini-instruct-f16.gguf) | f16 | 16 | 7.64 GB| |
|
91 |
+
|
92 |
+
*Quantized with llama.cpp b3499.*
|