token-gate-llms/TokenGate
Library
Can I trust it?
Worth a closer look before you use it.
Warnings Check
Very new: it was created 9 days ago. Wait a little before installing it.
Stars from real accounts No data
We haven't checked its stars for fakes yet.
Active OK
Last change 7 days ago.
Licence OK
Apache-2.0: you can use it for free, also in a commercial product. Keep the licence notice.
Quick checks from public data. They help, but they are no guarantee.
What it is
A research codebase for TokenGate, a drop-in neural component that extends existing trained language models with learned token selection. A gate scores context tokens and keeps the top-K, so only selected tokens are processed above an early layer, reducing long-context prefill…
Who it's for
Machine learning researchers and engineers working on efficient long-context inference or parameter-efficient fine-tuning of transformer LLMs
How to use it
Install
uv venv && uv pip install -e .From its README. Check it there before running it.
Ask your AI to set it up
Paste this into Claude, ChatGPT or your coding assistant.
Help me install and set up token-gate-llms/TokenGate in my project. Follow its README: https://github.com/token-gate-llms/TokenGate. Explain each step and check it is safe before running anything.
Star curve
Get alerts for repos like this
We'll email you when something in Models & inference starts rising. Free, once a week, only what matches.
21,772 GitHub repos watched and ranked every hour. Figures as of 28 October 2026.
What arrives: one email on Mondays with the repos that match, never more. See last week's. Privacy
For maintainers
Add this badge to your README. It shows the repo's place on the radar, updates every hour and links back to this page.
[](https://repoalerts.com/repo/token-gate-llms/TokenGate?ref=badge)Similar repos
- HazyResearch/ncm
Research code for Next-Concept Modeling, a two-stage framework for parallel text generation. A multiscale residual VQ tokenizer maps sequences to hierarchical discrete codes, and a transformer predict
- Plab-Lead/CLSR_MDia
Research framework and reference implementation for machine dialects: compact, reusable symbolic protocols (LSF cards) that language models invent, share and route between each other to reduce generat
- alleyxd/AnyDecide
A Python library and HTTP service that turns a local language model into a decision API. Typed questions (choice, score, yes/no) are answered in one batched forward pass by reading next-token probabil
- ranxianglei/billion-context
A context-compression plugin and proxy that sits between a coding agent and its model API. It rewrites Anthropic and OpenAI streams, folds consumed conversation into incremental, reversible summaries,
- YeonwooSung/llm-architecture-from-scratch
A collection of from-scratch PyTorch implementations of modern LLM architectures, including GPT-2 XL, Llama variants, DeepSeek V3, Qwen3, and Gemma 3. A comparison table lists each model's normalizati
- microsoft/TokenEconomizer
A plugin for Claude Code, Codex, the GitHub Copilot CLI and Pi that reduces token cost across a repository's sessions. It learns recurring environment facts, prunes tools that go unused, and redirects