This pulls together the main techniques for extending transformer context windows beyond their default limits. You get implementations of RoPE, YaRN, ALiBi, and position interpolation, which are the go-to methods when you need to push models like LLaMA or Mistral from their standard 4k-8k token limits up to 32k, 64k, or beyond. It's aimed at the fine-tuning and deployment stage rather than training from scratch. The approach here is practical: minimal compute overhead while maintaining model quality across longer sequences. If you're hitting context limits on a pre-trained model and don't want to retrain, this gives you the cookbook of what actually works in production.

skills.sh installs
465
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill long-context --agent claude-code

Installs into .claude/skills of the current project.

Files

This pulls together the main techniques for extending transformer context windows beyond their default limits. You get implementations of RoPE, YaRN, ALiBi, and position interpolation, which are the go-to methods when you need to push models like LLaMA or Mistral from their standard 4k-8k token limits up to 32k, 64k, or beyond. It's aimed at the fine-tuning and deployment stage rather than training from scratch. The approach here is practical: minimal compute overhead while maintaining model quality across longer sequences. If you're hitting context limits on a pre-trained model and don't want to retrain, this gives you the cookbook of what actually works in production.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs