Ross ROSS = Recommend OSS · open-source software intelligence for agents

jquesnelle/yarn

YaRN: Efficient Context Window Extension of Large Language Models observed · 2026-08-28

github.com/jquesnelle/yarn · Python · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

29/100

  • Activity 0
  • Release rhythm 35
  • Longevity 83

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 1164
  • days_rel: n/a
  • days_push: 868
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1777 stars · 132 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

Reference implementation of YaRN, an efficient method for extending the context window of large language models, published as an ICLR 2024 paper. It includes training code, data, and fine-tuned Llama 2, Mistral, and SOLAR model variants with 32K-128K context windows on Hugging Face.

Use cases

  • extend the context window of a llama model to 128k tokens
  • fine-tune mistral 7b for long context
  • reproduce the yarn paper results
  • train a model with rope scaling for long sequences
  • download long-context llama 2 checkpoints
  • apply yarn context extension to my own llm

When to choose

  • you need to extend a transformer LLM's context window efficiently
  • you want ready-made long-context Llama 2 or Mistral checkpoints
  • you want to reproduce or build on the YaRN research

When to avoid

  • you need a maintained production training framework rather than a research repo
  • you use models other than Llama/Mistral/SOLAR without porting the method
  • you need closed-context or non-transformer architectures

Facets

library · maturity maintenance

llm-training machine-learning deep-learning large-language-models deep-learning machine-learning python context-window-extension yarn llama mistral positional-encoding fine-tuning research-paper long-context gpu linux

1 source

Member repositories

RepositoryRoleHealth v2
jquesnelle/yarnmain29

For agents

markdown · JSON · MCP: product_card(name="jquesnelle/yarn")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem