ДаліНаступний посібник
Зміщення позиції ALiBi
ШІ мови
Мова AI GUIDE
Rotary Position Embeddings (RoPE) encode token position by rotating paired dimensions of queries and keys.
Послухайте цей посібникШІ-розказаний · ~1 min
The RoFormer paper derives relative-position behavior; context extension methods such as Position Interpolation are separate, version-specific techniques.
RoFormer introduces rotary position embeddings, applying position-dependent rotations to query and key vectors; its attention formulation depends on relative position. The original paper does not guarantee reliable use beyond a model’s trained context. Position Interpolation linearly scales indices into the trained range and reports extensions up to 32,768 tokens on evaluated LLaMA models. YaRN is a separate extension method; its paper reports 10x fewer tokens and 2.5x fewer training steps than earlier methods in its experiments. These are version- and setup-specific results, not a universal context guarantee.
Rotating query and key dimensions by position-dependent angles.
Understanding how the RoFormer attention score encodes relative displacement.
Reading Position Interpolation’s 32,768-token LLaMA result as a model-specific evaluation.
Reading YaRN’s reported training-efficiency comparison as specific to its paper setup.
Evaluate extended-context methods on the target model and task, reporting training range, fine-tuning, sequence length and retrieval/quality metrics. Do not extrapolate one PI result to all RoPE models or context lengths.
Безплатний розсилок
Три перевірені історії про ШІ щоробочого ранку, написані простою мовою. Безплатно назавжди, без реклами.
Один лист щотижня з понеділка по п'ятницю. Відписатися в один клік. Ми ніколи не продаємо та не передаємо вашу адресу.
Перевір себе
Миттєва зворотна связь на кожну відповідь та сертифікат із перевіреним ідентифікатором, яким можна поділитися, після проходження курсу.
Підтримайте безплатну освіту у сфері ШІ. AI Understanding — це некомерційна організація 501(c)(3) — без реклами, без платних стін, назавжди. Зробіть пожертву
Rotary Position Embeddings (RoPE) encode token position by rotating paired dimensions of queries and keys. The RoFormer paper derives relative-position behavior; context extension methods such as Position Interpolation are separate, version-specific techniques.
RoPE повертає вектор запиту та ключ на кут, пропорційний позиції, а не додає окремий вектор позиції.
The YaRN paper reports requiring 10x fewer tokens and 2.5x fewer training steps than prior context-extension methods in its evaluated setup.
Подібно до стрілок годинника, що цокають з різною швидкістю, різні частоти дозволяють одним парам кодувати порядок на короткій відстані, а інші — на дальній.
Position Interpolation and YaRN are separate methods intended to extend context beyond the original training window; success must be evaluated for the model and task.
RoFormer describes injecting position through rotations of query and key dimensions rather than adding a learned absolute-position vector to each token.
Продовжуйте вчитися
Інші посібники, вибрані для цієї теми
ДаліНаступний посібник
Зміщення позиції ALiBi
ШІ мови