AI & XML / LLM test suite / Results / Models / llama2:13b

Model description

Llama 2 is a collection of foundation language models with 7B to 70B parameters.

Model family

llama2

Context

4K

Input

Text

Size

74 GB

Family sizes

7b, 13b, 70b

Readme excerpt

Llama 2 is released by Meta Platforms, Inc. This model was trained on 2 trillion tokens and supports a default context length of 4096. Llama 2 chat models were fine-tuned with more than 1 million human annotations and are intended for conversations.

CLI

Open the terminal and run the following command: ollama run llama2

API

Example with curl:

curl -X POST http://localhost:11434/api/generate -d '{ "model": "llama2", "prompt":"Warum ist der Himmel blau?" }'

API documentation

Memory requirements

7B models generally require at least 8 GB RAM. 13B models generally require at least 16 GB RAM. 70B models generally require at least 64 GB RAM.

If problems occur at higher quantization levels, use the q4 model or close other programs that use a lot of memory.

Model variants

Chat is fine-tuned for chat and conversational applications. It is Ollama’s default variant, marked with “-chat” on the tags tab.

Example: ollama run llama2

Pretrained is the variant without chat fine-tuning, marked on the tags tab with “-text”.

Example: ollama run llama2:text

Ollama uses 4-bit quantization by default. Use other tags to try other quantization levels. The number after q indicates the number of bits used for quantization, so q4 means 4-bit quantization. Higher numbers make the model more accurate, but slower and more memory-intensive.

References

Llama 2: Open Foundation and Fine-Tuned Chat Models

Meta’s Hugging Face repository

276 Runs 234 evaluated 19.2 % Score 5.6 % exactly correct

Help on evaluation, score and exact correctness

Score is a graded quality measure: correct = 100 %, mostly_correct = 80 %, partial = 50 %, wrong/not_answered = 0 %.

Exactly correct is stricter: only correct-labeled runs count. Mostly correct increases score but does not count as exactly correct.

Evaluated counts all runs with a substantive judgment. LLM-judge errors also count as evaluated, with score 0 %.

Test case Category

x

back to top