Views
No views yet
trust_remote_code=True when loading the model, for example1model = AutoModelForCausalLM.from_pretrained("NousResearch/Yarn-Llama-2-70b-32k",
2 use_flash_attention_2=True,
3 torch_dtype=torch.bfloat16,
4 device_map="auto",
5 trust_remote_code=True)transformers (until 4.35 comes out)pip install git+https://github.com/huggingface/transformers| Model | Context Window | 1k PPL | 2k PPL | 4k PPL | 8k PPL | 16k PPL | 32k PPL |
|---|---|---|---|---|---|---|---|
| Llama-2-70b-hf | 4k | 3.71 | 3.27 | 2.96 | - | - | - |
| Yarn-Llama-2-70b-32k | 32k | 3.61 | 3.22 | 2.91 | 2.82 | 2.45 | 2.23 |
| Model | Context Window | ARC-c | MMLU | Truthful QA |
|---|---|---|---|---|
| Llama-2-70b-hf | 4k | 67.32 | 69.83 | 44.92 |
| Yarn-Llama-2-70b-32k | 32k | 67.41 | 68.84 | 46.14 |