CoolFace
Modelpublic

second-state/phi-2-GGUF

sourceHugging Faceotherupdated 3y agoView on Hugging Face
3likes541downloads
Model Card

<!-- 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-2-GGUF

Original Model

microsoft/phi-2

Run with LlamaEdge

  • LlamaEdge version: v0.2.8 and above
  • Prompt template
  • Prompt type: phi-2-instruct
  • Prompt string
text
    Instruct: <prompt>\nOutput:
  • Context size: 2560
  • Run as LlamaEdge command app
bash
  wasmedge --dir .:. --nn-preload default:GGML:AUTO:phi-2-Q5_K_M.gguf llama-chat.wasm -p phi-2-instruct

Note that `phi-2` here is only used as an instruct model, instead of a chat model.

Quantized GGUF Models

NameQuant methodBitsSizeUse case
phi-2-Q2_K.ggufQ2_K21.11 GBsmallest, significant quality loss - not recommended for most purposes
phi-2-Q3_K_L.ggufQ3KL31.58 GBsmall, substantial quality loss
phi-2-Q3_K_M.ggufQ3KM31.43 GBvery small, high quality loss
phi-2-Q3_K_S.ggufQ3KS31.25 GBvery small, high quality loss
phi-2-Q4_0.ggufQ4_041.60 GBlegacy; small, very high quality loss - prefer using Q3KM
phi-2-Q4_K_M.ggufQ4KM41.74 GBmedium, balanced quality - recommended
phi-2-Q4_K_S.ggufQ4KS41.63 GBsmall, greater quality loss
phi-2-Q5_0.ggufQ5_051.93 GBlegacy; medium, balanced quality - prefer using Q4KM
phi-2-Q5_K_M.ggufQ5KM52.00 GBlarge, very low quality loss - recommended
phi-2-Q5_K_S.ggufQ5KS51.93 GBlarge, low quality loss - recommended
phi-2-Q6_K.ggufQ6_K62.29 GBvery large, extremely low quality loss
phi-2-Q8_0.ggufQ8_082.96 GBvery large, extremely low quality loss - not recommended