corehu

OPEN MODELS

CodeLlama-13b-Instruct-hf vs Llama-2-13b-chat-hf

CodeLlama-13b-Instruct-hf and Llama-2-13b-chat-hf need about the same GPU memory (33 GB). Cheapest way to run them today: CodeLlama-13b-Instruct-hf from $0.52 per hour on Q RTX 8000, Llama-2-13b-chat-hf from $0.52 per hour on Q RTX 8000.

CodeLlama-13b-Instruct-hfLlama-2-13b-chat-hf
Developercodellamameta-llama
Parameters13B13B
WeightsBF16F16
Licensellama2llama2
GPU memory needed≈ 33 GB≈ 33 GB
Memory at 4-bit≈ 11 GB≈ 11 GB
Cheapest GPU that fitsQ RTX 8000 · $0.52Q RTX 8000 · $0.52
Speed (est.)≈ 14 tok/s · $10.16/1M≈ 14 tok/s · $10.16/1M
Downloads9,208136,407

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-13b-Instruct-hf or Llama-2-13b-chat-hf?
CodeLlama-13b-Instruct-hf and Llama-2-13b-chat-hf need about the same GPU memory (33 GB).
Which is cheaper to run, CodeLlama-13b-Instruct-hf or Llama-2-13b-chat-hf?
Cheapest way to run them today: CodeLlama-13b-Instruct-hf from $0.52 per hour on Q RTX 8000, Llama-2-13b-chat-hf from $0.52 per hour on Q RTX 8000.