Topics / #long-context
Long-context projects on GitHub
Handling very long inputs and documents in language models.
As of , the most-starred Long-context projects on GitHub are Qwen (22.1K stars), DeepResearch (20.2K stars) and llama-cookbook (18.6K stars). GitHub.Locker tracks 20 Long-context repositories with 137.7K stars combined. The fastest-growing on November 30 was billion-context, with +72 stars in a day.
Hot right now
Most stars gained in a day · Nov 30
+72billion-context
ranxianglei/billion-context · ★ 8.6Kbillion-context is a context-compression proxy that sits between any coding agent and its model API, rewriting Anthropic/OpenAI streams so a 100K context window is enough and a single session can run for months across billions of tokens.
+26memorilla
snap-stanford/memorilla · ★ 1.5KMemorilla is a memory system that reads a whole document collection, such as a user's past chats or a long book, and gives a frozen LLM just 16 memory tokens relevant to each question.
+11MiniCPM
OpenBMB/MiniCPM · ★ 11.9KMiniCPM is OpenBMB's family of small, open-source LLMs built for on-device and resource-constrained use. The newest release, MiniCPM5-2B, is a dense 2B-parameter model that reaches open-source state-of-the-art for its size class while staying competitive with much larger 4B-class models.
+11halogen-flash-server
peonist-ai/halogen-flash-server · ★ 1.4Khalogen-flash-server is a purpose-built inference server for running the Qwen3.8-Flash-Next model as fast as possible on AMD's Strix Halo (gfx1151) GPU, exposing an OpenAI-compatible API.
The all-time top
20 projects · by stars
- 22.1K
#1 · QwenLM/QwenQwen
The official repo of Qwen (通义千问, Tongyi Qianwen) — Alibaba Cloud's family of chat and pretrained large language models, released in sizes from 1.8B up to 72B parameters on Hugging Face and ModelScope.
- 20.2K
#2 · Alibaba-NLP/DeepResearchDeepResearch
Tongyi DeepResearch — an open-source agentic LLM from Alibaba's Tongyi Lab, built for long-horizon, deep information-seeking on the web. This repo ships the model weights plus Python inference and benchmark evaluation scripts.
- 18.6K
#3 · meta-llama/llama-cookbookllama-cookbook
The Llama Cookbook — Meta's official collection of recipes for building with the Llama model family: inference, fine-tuning, RAG and end-to-end use cases, mostly written as Jupyter notebooks.
- 4

Qwen3-Coder
16.9KQwenLM/Qwen3-Coder · PythonQwen3-Coder is the code-focused branch of the Qwen3 large language model family from the Qwen team — open-weight models built for coding and agentic tasks, available in several sizes.
- 5

MiniCPM
11.9KOpenBMB/MiniCPM · Jupyter NotebookMiniCPM is OpenBMB's family of small, open-source LLMs built for on-device and resource-constrained use. The newest release, MiniCPM5-2B, is a dense 2B-parameter model that reaches open-source state-of-the-art for its size class while staying competitive with much larger 4B-class models.
- 6

billion-context
8.6Kranxianglei/billion-context · TypeScriptbillion-context is a context-compression proxy that sits between any coding agent and its model API, rewriting Anthropic/OpenAI streams so a 100K context window is enough and a single session can run for months across billions of tokens.
- 7

fast-jev-compaction
8Ktamaratran/fast-jev-compaction · TypeScriptA Claude Code plugin, also usable as an npm library, that replaces context compaction's summary with Jev decisions: every tool call and result is scored in fast requests, stale ones are dropped or truncated, and everything kept stays verbatim.
- 8
GLM-5
7.5Kzai-org/GLM-5GLM-5 is a family of large open-weight language models from Z.ai built for agentic engineering and complex, long-horizon coding tasks, scaling up to 744B parameters with sparse attention for efficient long-context serving.
- 9

turboquant_plus
7KTheTom/turboquant_plus · PythonTurboQuant+ is the research home for TurboQuant (ICLR 2026), a KV cache compression method for transformer LLMs. It shrinks the KV cache 3.8-6.4x using PolarQuant plus Walsh-Hadamard rotation, and this repo holds the Python reference implementation, validation papers and benchmark data.
- 10

rlm
5.8Kalexzhang13/rlm · PythonRLM is an inference library implementing Recursive Language Models, a paradigm where an LLM offloads its context into a REPL environment and recursively calls itself (or sub-LLMs) to examine, decompose, and reason over near-infinite-length inputs.
- 11

MSA
3.5KEverMind-AI/MSA · PythonMSA (Memory Sparse Attention) is an end-to-end trainable, scalable latent-memory framework that lets LLMs handle context windows up to 100M tokens, replacing RAG or fixed-size RNN-style memory with a differentiable sparse-attention memory bank.
- 12
trnrt
1.6KRunanywhereAI/trnrt · PythonAn open inference engine for large language models on AWS Trainium. It serves an OpenAI-compatible API from one trn2.48xlarge box, with GLM-5.3-Flash as the first supported model.
- 13

memorilla
1.5Ksnap-stanford/memorilla · PythonMemorilla is a memory system that reads a whole document collection, such as a user's past chats or a long book, and gives a frozen LLM just 16 memory tokens relevant to each question.
- 14

halogen-flash-server
1.4Kpeonist-ai/halogen-flash-server · Shellhalogen-flash-server is a purpose-built inference server for running the Qwen3.8-Flash-Next model as fast as possible on AMD's Strix Halo (gfx1151) GPU, exposing an OpenAI-compatible API.
- 15

kaggle-tpu-lab
810ARahim3/kaggle-tpu-lab · PythonA recipe that serves frontier-class open LLMs — GLM-5.3-Flash 320B MoE and Qwen3.8-27B bf16 — on Kaggle's free TPU v5e-8, exposing a public OpenAI-compatible (and Anthropic-compatible) endpoint you can plug into coding agents like Claude Code, Codex, opencode, or pi.
- 16

GLiClass
583Knowledgator/GLiClass · PythonGLiClass is an efficient zero-shot model for sequence classification, inspired by GLiNER: give it a text and a list of candidate labels, and it classifies the text with accuracy comparable to cross-encoders.
- 17

MemT-1.0
543MemTensor/MemT-1.0 · PythonMemT-1.0 is a new generation of memory foundation models that make persistent, dynamically evolving memory an intrinsic part of model computation, so the model can retain and reuse historical information without re-reading the original context at inference time.
- 18

latent-sparse-attention
469Prefrontal-AI/latent-sparse-attention · PythonCode for Latent Sparse Attention (LSA). It clusters keys in a learned latent space so each query scores clusters instead of every key, which makes long-context attention faster while keeping accuracy close to the original model.
- 19

Hy4-preview
446Tencent-Hunyuan/Hy4-preview · PythonHy4 preview is Tencent Hunyuan's newest open-source large language model, a 770B-parameter Mixture-of-Experts model (49B active per token) built for coding, office/data analysis, game development, and scientific research tasks.
- 20

pi-posthorse
288fitchmultz/pi-posthorse · TypeScriptPosthorse is an extension for the Pi coding agent (specifically the fitchmultz/pi fork) that handles context window rollovers without summarization: when a session nears its limit it starts a fresh window with a durable handoff and a fully recoverable transcript instead of compressing the history into a summary.
Related topics
Often tagged together
- llm1,590
- python2,386
- linux4,256
- ai2,006
- inference314
- large-language-models210
- apache-2.01,441
- machine-learning767
- open-source5,461
- benchmark465
- deep-learning582
- gpu798
- huggingface349
- macos3,658
- vllm135
- fine-tuning175
- research693
- windows3,581
- docker1,643
- qwen172
- reinforcement-learning136
- self-hosted1,988
- agent884
- agent-memory167