CoolFace
Modelpublic

second-state/CodeLlama-70b-Instruct-hf-GGUF

sourceHugging Facellama2updated 3y agoView on Hugging Face
2likes2.5kdownloads
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 -->

CodeLlama-70b-Instruct-hf-GGUF

Original Model

codellama/CodeLlama-70b-Instruct-hf

Run with LlamaEdge

  • LlamaEdge version: v0.2.11 and above
  • Prompt template
  • Prompt type: codellama-super-instruct
  • Prompt string
text
    <s>Source: system\n\n {system_prompt} <step> Source: user\n\n {user_message_1} <step> Source: assistant\n\n {ai_message_1} <step> Source: user\n\n {user_message_2} <step> Source: assistant\nDestination: user\n\n
  • Reverse prompt: <step> Source: assistant\nEOT: true
  • Context size: 8192
  • Run as LlamaEdge service
bash
  wasmedge --dir .:. --nn-preload default:GGML:AUTO:CodeLlama-70b-Instruct-hf-Q2_K.gguf llama-api-server.wasm -p codellama-super-instruct -c 1024 --reverse-prompt 'Source: assistant\nEOT: true'

Note that the model only works in the non-streaming mode.

Quantized GGUF Models

NameQuant methodBitsSizeUse case
CodeLlama-70b-Instruct-hf-Q2_K.ggufQ2_K225.5 GBsmallest, significant quality loss - not recommended for most purposes
CodeLlama-70b-Instruct-hf-Q3_K_L.ggufQ3KL336.1 GBsmall, substantial quality loss
CodeLlama-70b-Instruct-hf-Q3_K_M.ggufQ3KM333.3 GBvery small, high quality loss
CodeLlama-70b-Instruct-hf-Q3_K_S.ggufQ3KS329.9 GBvery small, high quality loss
CodeLlama-70b-Instruct-hf-Q4_0.ggufQ4_0438.9 GBlegacy; small, very high quality loss - prefer using Q3KM
CodeLlama-70b-Instruct-hf-Q4_K_M.ggufQ4KM441.4 GBmedium, balanced quality - recommended
CodeLlama-70b-Instruct-hf-Q4_K_S.ggufQ4KS439.2 GBsmall, greater quality loss
CodeLlama-70b-Instruct-hf-Q5_0.ggufQ5_0547.5 GBlegacy; medium, balanced quality - prefer using Q4KM
CodeLlama-70b-Instruct-hf-Q5_K_M.ggufQ5KM548.8 GBlarge, very low quality loss - recommended
CodeLlama-70b-Instruct-hf-Q5_K_S.ggufQ5KS547.5 GBlarge, low quality loss - recommended