IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Python data

PCP_MAX_BATCH_CONTEXT

PCP_MAX_BATCH_CONTEXT​

max.nn.common_layers.context_parallel.PCP_MAX_BATCH_CONTEXT = 262144

source

A step takes the PCP path only while every replica’s page-aligned summed context is at most this many tokens. Each layer’s whole-context scratch holds about 1 KB per context token per device, so this bounds it near 270 MB, and keeps the sparse prefill on its convert-once arm (whose NVFP4 conversion takes at most this context).