An extension of Llama 2 that supports a context of up to 128k tokens.
7b
13b
75.7K Pulls Updated 13 months ago
Updated 13 months ago
13 months ago
75df67be3cee · 3.8GB
model
archllama
·
parameters6.74B
·
quantizationQ4_0
3.8GB
params
{
"num_ctx": 65536
}
17B
Readme
Yarn Llama 2 is a model based on Llama2 that extends its context size up to 128k context. It is developed by Nous Research by implementing the YaRN method to further train the model to support larger context windows.
CLI
64k context size:
ollama run yarn-llama2
128k context size:
ollama run yarn-llama2:7b-128k
API
Example:
curl -X POST http://localhost:11434/api/generate -d '{
"model": "yarn-llama2:7b-128k",
"prompt":"Here is a story about llamas eating grass"
}'
References
YaRN: Efficient Context Window Extension of Large Language Models