Llama 3.1 8B

8B parameters · 128k context · llama3.1 · released 2024-07-18

chat

What to run it on in the UK

Fully in memory at 8k context, priced at retailers today.

Something we price holds it fully in memory, but none reaches 15 tok/s, our bar for recommending it. The table below has the speeds.

All hardware that runs it

Everything we price, best value first. Two cards split the model by layers.

HardwareQuantFitsDecodePricetok/s per 1,000
NVIDIA GeForce RTX 3090Q6_Kfits76 tok/s––
NVIDIA GeForce RTX 5090Q6_Kfits145 tok/s––
Mac Studio M4 Max 128GBQ6_Kfits46 tok/s––
NVIDIA GeForce RTX 4090Q6_Kfits82 tok/s––
NVIDIA GeForce RTX 5070 TiQ6_Kfits72 tok/s––
Mac mini M4 Pro 64GBQ6_Kfits23 tok/s––
NVIDIA GeForce RTX 5060 Ti 16GBQ6_Kfits36 tok/s––
AMD Radeon RX 7900 XTXQ6_Kfits69 tok/s––
Framework Desktop Ryzen AI Max+ 395 128GBQ6_Kfits18 tok/s––
Mac Studio M3 Ultra 512GBQ6_Kfits69 tok/s––
NVIDIA DGX Spark 128GBQ6_Kfits22 tok/s––
NVIDIA GeForce RTX 3060 12GBQ6_Kfits29 tok/s––
AMD Radeon RX 9070 XTQ6_Kfits46 tok/s––
GMKtec EVO-X2 Ryzen AI Max+ 395 128GBQ6_Kfits18 tok/s––
Mac Studio M3 Ultra 256GBQ6_Kfits69 tok/s––
Mac mini M4 Pro 48GBQ6_Kfits23 tok/s––
NVIDIA GeForce RTX 4060 Ti 16GBQ6_Kfits23 tok/s––
NVIDIA GeForce RTX 5080Q6_Kfits78 tok/s––
Mac Studio M4 Max 64GBQ6_Kfits46 tok/s––
NVIDIA GeForce RTX 4070 Ti SuperQ6_Kfits54 tok/s––
NVIDIA GeForce RTX 5070Q6_Kfits54 tok/s––
AMD Radeon RX 9060 XT 16GBQ6_Kfits23 tok/s––
Mac Studio M3 Ultra 96GBQ6_Kfits69 tok/s––
NVIDIA GeForce RTX 4070 SuperQ6_Kfits41 tok/s––
NVIDIA GeForce RTX 4080 SuperQ6_Kfits60 tok/s––
NVIDIA RTX PRO 6000 BlackwellQ6_Kfits145 tok/s––
AMD Radeon AI PRO R9700Q6_Kfits46 tok/s––
AMD Radeon RX 7800 XTQ6_Kfits45 tok/s––
AMD Radeon RX 7900 XTQ6_Kfits57 tok/s––
ASUS Ascent GX10 128GBQ6_Kfits22 tok/s––
Framework Desktop Ryzen AI Max+ 395 64GBQ6_Kfits18 tok/s––
Intel Arc B580Q6_Kfits30 tok/s––
Mac mini M4 32GBQ6_Kfits10 tok/s––
NVIDIA GeForce RTX 3090 TiQ6_Kfits82 tok/s––
AMD Radeon RX 7600 XTQ6_Kfits21 tok/s––
Mac mini M4 16GBQ6_Kfits10 tok/s––
NVIDIA GeForce RTX 3080 10GBQ6_Kfits61 tok/s––
Intel Arc Pro B60Q6_Kfits30 tok/s––
NVIDIA Tesla P40Q6_Kfits28 tok/s––
Intel Arc A770 16GBQ6_Kfits37 tok/s––

Memory needed

Weights, KV cache and runtime buffers at each context length (KV cache at fp16).

QuantFile@8k@32k@64k@128k
Q4_K_Mgguf4.6 GB6.3 GB9.5 GB13.7 GB22.0 GB
mlx-4bitmlx4.2 GB6.0 GB9.1 GB13.3 GB21.7 GB
Q5_K_Mgguf5.3 GB7.1 GB10.2 GB14.4 GB22.8 GB
Q6_Kgguf6.1 GB7.9 GB11.0 GB15.2 GB23.6 GB

Run it

Copy a command for the runtime you use.

  • Q4_K_M
    • Ollamaollama run hf.co/unsloth/Llama-3.1-8B-Instruct-GGUF:Q4_K_M
    • LM Studiolms get unsloth/Llama-3.1-8B-Instruct-GGUF@q4_k_m
    • llama.cppllama-server -hf unsloth/Llama-3.1-8B-Instruct-GGUF:Q4_K_M
  • mlx-4bit
    • LM Studiolms get mlx-community/Llama-3.1-8B-Instruct-4bit
    • MLXmlx_lm.server --model mlx-community/Llama-3.1-8B-Instruct-4bit
  • Q5_K_M
    • Ollamaollama run hf.co/unsloth/Llama-3.1-8B-Instruct-GGUF:Q5_K_M
    • LM Studiolms get unsloth/Llama-3.1-8B-Instruct-GGUF@q5_k_m
    • llama.cppllama-server -hf unsloth/Llama-3.1-8B-Instruct-GGUF:Q5_K_M
  • Q6_K
    • Ollamaollama run hf.co/unsloth/Llama-3.1-8B-Instruct-GGUF:Q6_K
    • LM Studiolms get unsloth/Llama-3.1-8B-Instruct-GGUF@q6_k
    • llama.cppllama-server -hf unsloth/Llama-3.1-8B-Instruct-GGUF:Q6_K