How to use from the
Use from the
llama-cpp-python library
# !pip install llama-cpp-python

from llama_cpp import Llama

llm = Llama.from_pretrained(
	repo_id="dranger003/CodeLlama-70b-Instruct-iMat.GGUF",
	filename="",
)
llm.create_chat_completion(
	messages = [
		{
			"role": "user",
			"content": "What is the capital of France?"
		}
	]
)

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