vllm.models.deepseek_v41.nvidia.ops.engram_fabric_table
¶
Engram tables in cuMem, shared between processes by FABRIC handle.
Host tables: one copy in host-NUMA memory per node-local DP group, which GPUs map with 2M pages instead of /dev/shm's 64K pages, so row lookups miss the TLB less. Peer tables: rows split over the HBM of several engines' GPUs.
Classes:
-
ExportedHostTable–What another rank needs to map a host table.
-
PeerTableMappings–This process's mappings of every slice of a peer table, unmapped once
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.
-
share_peer_table–Allocate this GPU's slice of a table in its HBM and map every GPU's slice.
ExportedHostTable
¶
Bases: NamedTuple
What another rank needs to map a host table.
Source code in vllm/models/deepseek_v41/nvidia/ops/engram_fabric_table.py
PeerTableMappings
¶
This process's mappings of every slice of a peer table, unmapped once neither the table nor any tensor over its slice holds them. A slice's memory is freed when every GPU has unmapped it.
Source code in vllm/models/deepseek_v41/nvidia/ops/engram_fabric_table.py
_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_fabric_table.py
_create_table(num_bytes)
¶
Allocate and export a host table on this GPU's 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_fabric_table.py
_gpu_view(address, num_bytes, owner=None)
¶
A uint8 tensor over mapped memory; torch retains owner with it.
Source code in vllm/models/deepseek_v41/nvidia/ops/engram_fabric_table.py
_map_table(table, num_bytes, handles)
¶
Map a host table, importing its handles unless given, and release them.
Returns CPU and GPU uint8 views; either keeps the mapping alive.
Source code in vllm/models/deepseek_v41/nvidia/ops/engram_fabric_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_fabric_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.
Source code in vllm/models/deepseek_v41/nvidia/ops/engram_fabric_table.py
share_peer_table(num_bytes, group)
¶
Allocate this GPU's slice of a table in its HBM and map every GPU's slice.
Every slice holds num_bytes. Returns this GPU's slice and the mappings,
whose addresses are in rank order.