Model reference · open weights

ContextPilot

LLMs tencent Text gen 3 builds Its own licence terms 0 dl/mo

ContextPilot is an open-weight language model from tencent. ContextPilot-8B (BF16) weighs 16.4 GB; the smallest configuration that runs it is 2× RTX 3060 12 GB.

  • ContextPilot-E4B is a 7.9B parameter text-generation model developed by Tencent, based on the Gemma4-E4B checkpoint.
  • It is designed for research on proactive context management in long-horizon language-model agents, enabling them to plan, maintain long-term memory, and offload context while reasoning.
  • The model is evaluated on long-context question answering and deep-search tasks and is released under an other licence.

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 bytencent
Released2026-08-27
Parameters7.9B
VRAM16.4 GB for the weights

What it runs on

Memory and cards for ContextPilot-8B (BF16)

16.4 GBweights, file size
147 MBcache per 1K tokens
753 MBruntime overhead, at least
40,960 tokenscontext max
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB … RTX 4060 Ti 16 GB
2 smaller cards
———
RTX 3090 24 GB51all 40K23.4 GB
RTX 4090 24 GB51all 40K23.4 GB
RTX 5090 32 GB112all 40K31.0 GB
L40S 48 GB225all 40K44.0 GB
A100 80 GB5012all 40K78.2 GB
H100 80 GB4611all 40K78.1 GB
RTX PRO 6000 Blackwell 96 GB5914all 40K93.8 GB
DGX Spark (GB10) 128 GB unified7117all 40K107 GB
H200 141 GB9624all 40K138 GB
B200 180 GB12731all 40K176 GB
2× RTX 3060 12 GB
tensor parallel
4135K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
102all 40K15.4 GB a card
2× RTX 4090 24 GB
tensor parallel
235all 40K23.4 GB a card
2× RTX 3090 24 GB
tensor parallel
235all 40K23.4 GB a card
Memory needed at each load
Requests at once8K tokens each32K tokens each
118.3 GB22.0 GB
523.2 GB41.3 GB
826.8 GB55.8 GB
1636.5 GB94.4 GB
3255.8 GB172 GB
6494.4 GB326 GB

One card, with vLLM's small-card settings.

Builds

Sizes, precisions & builds

BuildParamsPrecisionWeightsSmallest setup
ContextPilot-E4B ↗ 7.9BBF16 15.9 GB2× RTX 3060 12 GB
ContextPilot-14B ↗ 14.8BBF16 29.5 GBL40S 48 GB
ContextPilot-8B (above) ↗ 8.2BBF16 16.4 GB2× RTX 3060 12 GB

From the model card

What tencent says about ContextPilot

Read 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.

Overview

ContextPilot combines three main components:

  • an extended context-management toolset with planning, structured memory, retrieval, and soft context offloading;
  • context-aware partial rollout that focuses exploration on sensitive context-editing decisions; and
  • fine-grained credit assignment that trains intermediate snapshots using the outcomes of their downstream branches.

The resulting agents are evaluated on long-context question answering and deep-search tasks; see the evaluation instructions for details.

Loading

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.

Intended Use

This checkpoint is intended for research on proactive context management, long-horizon agents, long-context QA, and deep search.

License

LICENSE.

Citation

@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.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms