vllm.models.deepseek_v41.nvidia.ops.engram_host_table
¶
Engram host tables in host-NUMA cuMem, shared across DP ranks by FABRIC handle.
GPUs map cuMem host memory with 2M pages instead of the 64K pages of a registered /dev/shm mapping, so random row lookups miss the TLB far less.
Classes:
-
ExportedHostTable–What a peer needs to map a table.
Functions:
-
fabric_host_memory_supported–Whether host-NUMA cuMem allocations can export FABRIC handles here.
-
share_host_table–Map one table on every rank of a node-local group, or None on all of them.
ExportedHostTable
¶
_call_driver(fn, *args)
¶
Call a CUDA driver API and return its result, raising on failure.
Source code in vllm/models/deepseek_v41/nvidia/ops/engram_host_table.py
_create_table(num_bytes)
¶
Allocate and export a table on this GPU's host NUMA node.
Stops once the node would drop below its reserve. The kernel compacts to find 2M pages and fails the chunk, rather than OOM-killing, if it cannot.
Source code in vllm/models/deepseek_v41/nvidia/ops/engram_host_table.py
_map_table(table, num_bytes, handles)
¶
Map a table, importing its handles unless given, and release the handles.
Returns CPU and GPU uint8 views; either keeps the mapping alive.
Source code in vllm/models/deepseek_v41/nvidia/ops/engram_host_table.py
fabric_host_memory_supported()
cached
¶
Whether host-NUMA cuMem allocations can export FABRIC handles here.
Source code in vllm/models/deepseek_v41/nvidia/ops/engram_host_table.py
share_host_table(num_bytes, group)
¶
Map one table on every rank of a node-local group, or None on all of them.
Rank 0 creates the table and broadcasts its handles; the others import them. Returns CPU and GPU uint8 views of the table.