Yarn-Mistral-7b-128k

Nous Research (United States) · Language (text)

📄 32K context🔓 Open weights (downloadable)⚖️ apache-2.0

Which way is for me?

🧑‍💻 For developers

vLLM

vllm serve NousResearch/Yarn-Mistral-7b-128k

Transformers (Python)

from transformers import pipeline
pipe = pipeline("text-generation", model="NousResearch/Yarn-Mistral-7b-128k")
Words used here
GGUF
The file format LM Studio, Ollama and llama.cpp use to run a model.
Quantization (Q4, Q8)
Shrinking a model by storing numbers less precisely: Q4 smallest and slightly weaker, Q8 almost full, FP16 full.
VRAM
The graphics card's memory (or shared memory on a Mac); the model has to fit in it.
Context
The most text the model can see at once in a conversation (questions, answers and files).
Tokens per second
How fast the answer is written; 20 is about reading speed, 5 is slow.

From the Hugging Face model card

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

Benchmarks (from the model card)

ModelContext Window8k PPL16k PPL32k PPL64k PPL128k PPL
Mistral-7B-v0.18k2.96----
Yarn-Mistral-7b-64k64k3.042.652.442.20-
Yarn-Mistral-7b-128k128k3.082.682.472.242.19
ModelContext WindowARC-cHellaswagMMLUTruthful QA
Mistral-7B-v0.18k59.9883.3164.1642.15
Yarn-Mistral-7b-64k64k59.3881.2161.3242.50
Yarn-Mistral-7b-128k128k58.8780.5860.6442.46

Source: Hugging Face · NousResearch/Yarn-Mistral-7b-128k · License: apache-2.0

Hardware and running it

Cloud Only through the maker's API or cloud services; it cannot run on your own hardware.

Links come from the vendor's official site and the model card the vendor published · Updated: