NousResearch/Yarn-Solar-10b-64k

Model

16

stars

5

commits

1

linked in READMEs

Jan 18, 2024

updated

custom_code
endpoints_compatible
llama
pytorch
text-generation
text-generation-inference
transformers
Browse cluster: Large Language Model Context Extension

README

Model Card: Yarn-Solar-10b-64k

Preprint (arXiv)
GitHub yarn

Model Description

Yarn-Solar-10b-64k is a state-of-the-art language model for long context, further pretrained on two billion long context tokens using the YaRN extension method. It is an extension of SOLAR-10.7B-v1.0 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-Solar-10b-64k",
  attn_implementation="flash_attention_2",
  torch_dtype=torch.bfloat16,
  device_map="auto",
  trust_remote_code=True)

In addition you will need to use the latest version of transformers

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

Benchmarks

Long context benchmarks:

ModelContext Window4k PPL8k PPL16k PPL32k PPL64k PPL
Mistral-7B-v0.18k3.092.96---
Yarn-Mistral-7b-64k64k3.183.042.652.442.20
Yarn-Mistral-7b-128k128k3.213.082.682.472.24
SOLAR-10.7B-v1.04k3.07----
Yarn-Solar-10b-32k32k3.092.952.572.31-
Yarn-Solar-10b-64k64k3.132.992.612.342.15

Short context benchmarks showing that quality degradation is minimal:

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
SOLAR-10.7B-v1.04k61.9584.6065.4845.04
Yarn-Solar-10b-32k32k59.6483.6564.3644.82
Yarn-Solar-10b-64k64k59.2183.0863.5745.70

Collaborators

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

Contributors

emozilla

5 commits

NousResearch/Yarn-Solar-10b-64k

Model

16

stars

5

commits

1

linked in READMEs

Jan 18, 2024

updated

custom_code
endpoints_compatible
llama
pytorch
text-generation
text-generation-inference
transformers
Browse cluster: Large Language Model Context Extension

README

Model Card: Yarn-Solar-10b-64k

Preprint (arXiv)
GitHub yarn

Model Description

Yarn-Solar-10b-64k is a state-of-the-art language model for long context, further pretrained on two billion long context tokens using the YaRN extension method. It is an extension of SOLAR-10.7B-v1.0 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-Solar-10b-64k",
  attn_implementation="flash_attention_2",
  torch_dtype=torch.bfloat16,
  device_map="auto",
  trust_remote_code=True)

In addition you will need to use the latest version of transformers

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

Benchmarks

Long context benchmarks:

ModelContext Window4k PPL8k PPL16k PPL32k PPL64k PPL
Mistral-7B-v0.18k3.092.96---
Yarn-Mistral-7b-64k64k3.183.042.652.442.20
Yarn-Mistral-7b-128k128k3.213.082.682.472.24
SOLAR-10.7B-v1.04k3.07----
Yarn-Solar-10b-32k32k3.092.952.572.31-
Yarn-Solar-10b-64k64k3.132.992.612.342.15

Short context benchmarks showing that quality degradation is minimal:

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
SOLAR-10.7B-v1.04k61.9584.6065.4845.04
Yarn-Solar-10b-32k32k59.6483.6564.3644.82
Yarn-Solar-10b-64k64k59.2183.0863.5745.70

Collaborators

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

Contributors

emozilla

5 commits