# \#llama2-7b-128k

**URL:** https://discuss.pytorch.kr/tag/llama2-7b-128k/1998.md

[최신](https://discuss.pytorch.kr/latest.md) · [카테고리](https://discuss.pytorch.kr/categories.md) · [태그](https://discuss.pytorch.kr/tags.md)

---

## [YaRN: RoPE + LLM으로 10배 적은 토큰과 2.5배 적은 학습 단계로 Context Window를 128k까지 확장하기](https://discuss.pytorch.kr/t/yarn-rope-llm-10-2-5-context-window-128k/2799)

<div class="topic-metadata">

**Author:** [@9bow](https://discuss.pytorch.kr/u/9bow)\
**댓글:** 0\
**마지막 업데이트:** [11월 5, 2023, 5:23오전 UTC](https://discuss.pytorch.kr/t/yarn-rope-llm-10-2-5-context-window-128k/2799 "2023-11-05T05:23:52Z")

</div>

이 글은 GPT 모델로 자동 요약한 설명으로, 잘못된 내용이 있을 수 있으니 원문을 참고해주세요! :smile: 읽으시면서 어색하거나 잘못된 내용을 발견하시면 덧글로 알려주시기를 부탁드립니다! :bowing\_man: YaRN: 대규모 언어 모델의 효율적인 컨텍스트 윈도우 확장 (Efficient Context Window Extension of Large Language Models) YaRN : Yet another RoPE extensioN method 요약 기존 대형 언어 모델(LLM)은 문장 완성 또는 Q&A와 같은 여러가지 NLP 태스크에서 활용하고 있으나, 문맥 길이가 길지 못한 점에서의 문제가 있었습니다. 또한, RoPE(Rotary Position Embedding)를 사용하는 LLM의 경우에는 학습된 문맥 길이를 벗어나지 못하는 한계가 있어, 문맥 길이를 동적으로 확장할 수 있는 방법이 필요했습니다. 이 논문에서는 대규모 언어 모델(LLM; Large Language Model)의 Context Window를 효율적으로 확장하는 방법을 제안합니다. Rotary Position Embedding(RoPE)을 사용하여 컨텍스트 윈도우를 확장하는 새로운 방법인 YaRN(Yet another RoPE extensioN method)를 제안하고 있습니다. 기존의 방법들 원래 Transformer는 Absolute sinusoidal position encoding을 사용했으나, 이를 개선하기 위해 RoPE(Rotary Position Embedding)가 출현하였습니다. 이후 PI(Positional Interpolation)라는 방법이 RoPE를 사용하는 LLM의 context window를 확장했습니다. 하지만 PI는 모든 dimension을 동일하게 scaling하기 때문에 high frequency 정보 손실이 있습니다. "NTK-aware" interpolation라는, 높은 주파수(high-freq…
