corehu

OPEN MODELS

CodeLlama-7b-hf vs Llama-2-7B-GGUF

Llama-2-7B-GGUF needs about 12 GB less GPU memory than CodeLlama-7b-hf (6 GB vs 18 GB). Cheapest way to run them today: CodeLlama-7b-hf from $0.27 per hour on Tesla P40, Llama-2-7B-GGUF from $0.13 per hour on GTX 1070.

CodeLlama-7b-hfLlama-2-7B-GGUF
DevelopercodellamaTheBloke
Parameters6.7B6.7B
WeightsBF16GGUF
Licensellama2llama2
GPU memory needed≈ 18 GB≈ 6 GB
Memory at 4-bit≈ 6 GB—
Cheapest GPU that fitsTesla P40 · $0.27GTX 1070 · $0.13
Speed (est.)≈ 14 tok/s · $5.21/1M≈ 33 tok/s · $1.08/1M
Downloads84,21120,316

Memory figures are our estimates for inference; real use depends on resolution, batch size and context length. Speed is an estimate for one request at a time from the GPU's memory bandwidth; serving many requests at once raises total throughput and lowers the cost per token.

Questions

Which needs less GPU memory, CodeLlama-7b-hf or Llama-2-7B-GGUF?
Llama-2-7B-GGUF needs about 12 GB less GPU memory than CodeLlama-7b-hf (6 GB vs 18 GB).
Which is cheaper to run, CodeLlama-7b-hf or Llama-2-7B-GGUF?
Cheapest way to run them today: CodeLlama-7b-hf from $0.27 per hour on Tesla P40, Llama-2-7B-GGUF from $0.13 per hour on GTX 1070.