NousResearch / Yarn-Mistral-7b-64k

huggingface.co
Total runs: 1.8K
24-hour runs: 0
7-day runs: 65
30-day runs: 446
Model's Last Updated: November 03 2023
text-generation

Introduction of Yarn-Mistral-7b-64k

Model Details of Yarn-Mistral-7b-64k

Model Card: Nous-Yarn-Mistral-7b-64k

Preprint (arXiv)
GitHub yarn

Model Description

Nous-Yarn-Mistral-7b-64k is a state-of-the-art language model for long context, further pretrained on long context data for 1000 steps using the YaRN extension method. It is an extension of Mistral-7B-v0.1 and supports a 64k token context window.

To use, pass trust_remote_code=True when loading the model, for example

model = AutoModelForCausalLM.from_pretrained("NousResearch/Yarn-Mistral-7b-64k",
  use_flash_attention_2=True,
  torch_dtype=torch.bfloat16,
  device_map="auto",
  trust_remote_code=True)

In addition you will need to use the latest version of transformers (until 4.35 comes out)

pip install git+https://github.com/huggingface/transformers
Benchmarks

Long context benchmarks:

Model Context Window 8k PPL 16k PPL 32k PPL 64k PPL 128k PPL
Mistral-7B-v0.1 8k 2.96 - - - -
Yarn-Mistral-7b-64k 64k 3.04 2.65 2.44 2.20 -
Yarn-Mistral-7b-128k 128k 3.08 2.68 2.47 2.24 2.19

Short context benchmarks showing that quality degradation is minimal:

Model Context Window ARC-c Hellaswag MMLU Truthful QA
Mistral-7B-v0.1 8k 59.98 83.31 64.16 42.15
Yarn-Mistral-7b-64k 64k 59.38 81.21 61.32 42.50
Yarn-Mistral-7b-128k 128k 58.87 80.58 60.64 42.46
Collaborators

The authors would like to thank LAION AI for their support of compute for this model. It was trained on the JUWELS supercomputer.

Runs of NousResearch Yarn-Mistral-7b-64k on huggingface.co

1.8K
Total runs
0
24-hour runs
0
3-day runs
65
7-day runs
446
30-day runs

More Information About Yarn-Mistral-7b-64k huggingface.co Model

More Yarn-Mistral-7b-64k license Visit here:

https://choosealicense.com/licenses/apache-2.0

Yarn-Mistral-7b-64k huggingface.co

Yarn-Mistral-7b-64k huggingface.co is an AI model on huggingface.co that provides Yarn-Mistral-7b-64k's model effect (), which can be used instantly with this NousResearch Yarn-Mistral-7b-64k model. huggingface.co supports a free trial of the Yarn-Mistral-7b-64k model, and also provides paid use of the Yarn-Mistral-7b-64k. Support call Yarn-Mistral-7b-64k model through api, including Node.js, Python, http.

Yarn-Mistral-7b-64k huggingface.co Url

https://huggingface.co/NousResearch/Yarn-Mistral-7b-64k

NousResearch Yarn-Mistral-7b-64k online free

Yarn-Mistral-7b-64k huggingface.co is an online trial and call api platform, which integrates Yarn-Mistral-7b-64k's modeling effects, including api services, and provides a free online trial of Yarn-Mistral-7b-64k, you can try Yarn-Mistral-7b-64k online for free by clicking the link below.

NousResearch Yarn-Mistral-7b-64k online free url in huggingface.co:

https://huggingface.co/NousResearch/Yarn-Mistral-7b-64k

Yarn-Mistral-7b-64k install

Yarn-Mistral-7b-64k is an open source model from GitHub that offers a free installation service, and any user can find Yarn-Mistral-7b-64k on GitHub to install. At the same time, huggingface.co provides the effect of Yarn-Mistral-7b-64k install, users can directly use Yarn-Mistral-7b-64k installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Yarn-Mistral-7b-64k install url in huggingface.co:

https://huggingface.co/NousResearch/Yarn-Mistral-7b-64k

Url of Yarn-Mistral-7b-64k

Yarn-Mistral-7b-64k huggingface.co Url

Provider of Yarn-Mistral-7b-64k huggingface.co

NousResearch
ORGANIZATIONS

Other API from NousResearch

huggingface.co

Total runs: 1.1K
Run Growth: -387
Growth Rate: -35.12%
Updated:April 29 2025
huggingface.co

Total runs: 277
Run Growth: -125
Growth Rate: -45.13%
Updated:January 11 2026