Skip to content
Back to skills

Positional Encoding Picker

ASecurity

Pick positional encoding (RoPE, ALiBi, sinusoidal) + scaling strategy given context length and training budget. Use when you need help with positional encoding picker.

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
development

Security analysis

A100/100

Scanned September 8, 2026

npx -y skills add anubhavg-icpl/vibe --skill positional-encoding-picker --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Positional Encoding Picker?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Positional Encoding Picker
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anubhavg-icpl-positional-encoding-picker/badge)](https://www.skillsdirectory.com/skills/anubhavg-icpl-positional-encoding-picker)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: positional-encoding-picker
description: Pick positional encoding (RoPE, ALiBi, sinusoidal) + scaling strategy given context length and training budget. Use when you need help with positional encoding picker.
license: CC-BY-NC-SA-4.0
phase: 7
lesson: 4
metadata:
  version: 1.0.0
  tags: [transformers, positional-encoding, rope, alibi]
---

Given a transformer spec (target context length at inference, trained context length, extrapolation requirement, fine-tune budget in tokens), output:

1. Base encoding. One of: RoPE, ALiBi, sinusoidal, learned-absolute. One-sentence reason.
2. Hyperparameters. If RoPE: `base` value, `d_head` requirement for even split. If ALiBi: slope formula. If sinusoidal: `max_len`.
3. Extension strategy. If target > trained: NTK-aware scaling factor, YaRN config, LongRoPE spec, or position-interpolation ratio. State the fine-tune token budget.
4. Test plan. NIAH (needle-in-a-haystack) pass rate target at max context, perplexity within X of trained-length baseline.
5. Fallback. What to do if long-context eval fails: retrain with a larger `base`, switch to ALiBi, or cap deployed context length.

Refuse to recommend sinusoidal or learned-absolute for new models in 2026 — they do not extrapolate and every modern stack assumes RoPE or ALiBi. Refuse to scale RoPE beyond 8× trained length without a fine-tune stage. Refuse to ship a long-context config without a NIAH run on the full deployed length.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.