File size: 1,480 Bytes
75faba1
2795737
 
 
 
 
 
 
 
 
 
 
 
 
75faba1
2795737
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4b10f80
2795737
 
 
054a96c
59a2cd6
4b10f80
 
2795737
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
base_model: microsoft/Phi-3-mini-4k-instruct
license: mit
license_link: https://huggingface.co/microsoft/Phi-3-mini-4k-instruct/resolve/main/LICENSE
language:
- en
pipeline_tag: text-generation
model_creator: Microsoft
model_name: Phi 3 mini 4k instruct
model_type: phi-msft
quantized_by: Second State Inc.
tags:
- nlp
- code
---

<!-- header start -->
<!-- 200823 -->
<div style="width: auto; margin-left: auto; margin-right: auto">
<img src="https://github.com/LlamaEdge/LlamaEdge/raw/dev/assets/logo.svg" style="width: 100%; min-width: 400px; display: block; margin: auto;">
</div>
<hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
<!-- header end -->

# Phi-3-mini-4k-instruct-GGUF

## Original Model

[microsoft/Phi-3-mini-4k-instruct](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct)

## Run with LlamaEdge

- LlamaEdge version: [v0.8.4](https://github.com/LlamaEdge/LlamaEdge/releases/tag/0.8.4) and above

- Prompt template

  - Prompt type: `phi-3-chat`

  - Prompt string

    ```text
    <|system|>
    {system_message}<|end|>
    <|user|>
    {user_message_1}<|end|>
    <|assistant|>
    {assistant_message_1}<|end|>
    <|user|>
    {user_message_2}<|end|>
    <|assistant|>
    ```

- Context size: `3072`

- Run as LlamaEdge service

  ```bash
  wasmedge --dir .:. --nn-preload default:GGML:AUTO:Phi-3-mini-4k-instruct-Q4.gguf \
    llama-api-server.wasm \
    --prompt-template phi-3-chat \
    --ctx-size 3072 \
    --model-name phi-3-mini
  ```