How to use from
llama.cpp
Install from brew
brew install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf dranger003/CodeLlama-70b-Instruct-iMat.GGUF:
# Run inference directly in the terminal:
llama-cli -hf dranger003/CodeLlama-70b-Instruct-iMat.GGUF:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf dranger003/CodeLlama-70b-Instruct-iMat.GGUF:
# Run inference directly in the terminal:
llama-cli -hf dranger003/CodeLlama-70b-Instruct-iMat.GGUF:
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf dranger003/CodeLlama-70b-Instruct-iMat.GGUF:
# Run inference directly in the terminal:
./llama-cli -hf dranger003/CodeLlama-70b-Instruct-iMat.GGUF:
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf dranger003/CodeLlama-70b-Instruct-iMat.GGUF:
# Run inference directly in the terminal:
./build/bin/llama-cli -hf dranger003/CodeLlama-70b-Instruct-iMat.GGUF:
Use Docker
docker model run hf.co/dranger003/CodeLlama-70b-Instruct-iMat.GGUF:
Quick Links

GGUF importance matrix (imatrix) quants for https://huggingface.co/codellama/CodeLlama-70b-Instruct-hf
The importance matrix was trained for 100K tokens (200 batches of 512 tokens) using wiki.train.raw.

NOTE: The template for this model is very sensitive and must be set very precisely.
All whitespace is intended, and special tokens <s> and <step> must be encoded properly, i.e. 1 and 32015 respectively.

Layers Context Template
80
4096
<s>Source: system

{instructions} <step> Source: user

{prompt} <step> Source: assistant
Destination: user

{response}
Downloads last month
31
GGUF
Model size
69B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

1-bit

2-bit

3-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support