Model reference · open weights
ContextPilot is an open-weight language model from tencent. ContextPilot-14B (BF16) weighs 29.5 GB; the smallest configuration that runs it is L40S 48 GB.
Summary of the tencent/ContextPilot-E4B model card, 2026-10-01. The estimate below is for another build of the family.
What it is
| Released by | tencent |
|---|---|
| Released | 2026-08-27 |
| Parameters | 7.9B |
| VRAM | 29.5 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB … RTX 4090 24 GB 4 smaller cards | — | — | — | |
| RTX 5090 32 GB | — | — | 3K | 31.0 GB |
| L40S 48 GB | 10 | 2 | all 40K | 44.0 GB |
| A100 80 GB | 35 | 8 | all 40K | 78.2 GB |
| H100 80 GB | 32 | 8 | all 40K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 43 | 10 | all 40K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 54 | 13 | all 40K | 107 GB |
| H200 141 GB | 76 | 19 | all 40K | 138 GB |
| B200 180 GB | 104 | 26 | all 40K | 176 GB |
| 2× RTX 4090 24 GB tensor parallel | 11 | 2 | all 40K | 23.4 GB a card |
| 2× RTX 3090 24 GB tensor parallel | 11 | 2 | all 40K | 23.4 GB a card |
| 2× RTX 5090 32 GB tensor parallel | 23 | 5 | all 40K | 31.0 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 31.7 GB | 35.7 GB |
| 5 | 37.1 GB | 57.2 GB |
| 8 | 41.1 GB | 73.3 GB |
| 16 | 51.8 GB | 116 GB |
| 32 | 73.3 GB | 202 GB |
| 64 | 116 GB | 374 GB |
One card, with vLLM's small-card settings.
Builds
| Build | Params | Precision | Weights | Smallest setup |
|---|---|---|---|---|
| ContextPilot-E4B ↗ | 7.9B | BF16 | 15.9 GB | 2× RTX 3060 12 GB |
| ContextPilot-14B (above) ↗ | 14.8B | BF16 | 29.5 GB | L40S 48 GB |
| ContextPilot-8B ↗ | 8.2B | BF16 | 16.4 GB | 2× RTX 3060 12 GB |
From the model card
ContextPilot: Teaching Agents for Proactive Context Management via Fine-grained RL
src="https://img.shields.io/badge/ContextPilot-GitHub-blue?logo=github"
alt="GitHub Repo"
/>
src="https://img.shields.io/badge/ContextPilot-Live_Demo-ff725e?logo=githubpages&logoColor=white"
alt="ContextPilot Live Demo"
/>
src="https://img.shields.io/badge/ContextPilot-Paper-red?logo=arxiv&logoColor=red"
alt="Paper"
/>
src="https://img.shields.io/badge/ContextPilot-Models-yellow?logo=huggingface&logoColor=yellow"
alt="Hugging Face Models"
/>
ContextPilot-E4B is the Gemma4-E4B checkpoint of ContextPilot, a proactive context-management framework for long-horizon language-model agents. It teaches agents to plan, maintain long-term memory, and offload less useful context while they continue reasoning and using tools. For more details, see our paper and code repository.
ContextPilot combines three main components:
The resulting agents are evaluated on long-context question answering and deep-search tasks; see the evaluation instructions for details.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "tencent/ContextPilot-E4B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype="auto",
device_map="auto",
)
Note that loading the checkpoint alone does not execute context-management tools; the tool definitions, agent runtime, and evaluation pipeline are provided in the ContextPilot repository. See the inference guide for the full setup.
This checkpoint is intended for research on proactive context management, long-horizon agents, long-context QA, and deep search.
@inproceedings{pan-etal-2026-contextpilot,
title = "ContextPilot: Teaching Agents for Proactive Context Management via Fine-grained RL",
author = "Pan, Zhuoshi and
Pei, Qizhi and
Lu, Junru and
Lin, Honglin and
Zhao, H. Vicky and
Yin, Di and
Sun, Xing",
booktitle = "Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing",
month = nov,
year = "2026",
address = "Budapest, Hungary",
publisher = "Association for Computational Linguistics",
abstract = "Long-horizon agentic tasks require large language models (LLMs) to iteratively retrieve, integrate, and maintain dispersed information across multi-turn interactions, but preserving all interaction histories leads to a continuously growing working context. Recent proactive context management methods allow models to edit their own working context with specialized tools, yet they still face three key limitations: (1) a limited toolset restricted to search, deletion, and summarization, with no support for global planning, long-term memory, and adaptive compression; (2) inefficient exploration that treats context management actions uniformly despite their heterogeneous impacts on final outcomes; and (3) coarse-grained credit assignment that assigns the final trajectory-level reward to all intermediate context editing actions during RL. To bridge these gaps, we introduce ContextPilot, a proactive context management framework for long-horizon agentic reasoning. Our approach systematically augments the toolset with planning, long-term memory, and soft context offloading tools. We further propose an RL method tailored for context management, which uses context and entropy variation to identify critical editing decisions for branch sampling and estimates action-level advantages from all branched trajectories that pass through the corresponding context editing action. Experiments on long-context QA and deep search tasks show that ContextPilot achieves stronger performance with a more compact working context, consistently outperforming existing baselines across various base models and benchmarks. Code is available at \url{https://github.com/Tencent/ContextPilot}."
}
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.