Table of Contents

Property ProjectedMemorySize

Namespace
LMKit.Inference
Assembly
LM-Kit.NET.dll

ProjectedMemorySize

Gets the estimated bytes the context will occupy on its device once it is resident, cache and compute buffers included. Reported only while the context holds nothing (Residency is NotCreated or Hibernated); a resident context reports 0 here and its real cost in MemorySize.

public long ProjectedMemorySize { get; }

Property Value

long

Remarks

A context that has not allocated reports zero across every memory property, which reads as a missing value rather than as the real and useful fact that it is costing nothing yet. This is what it will cost when it materializes, so the zero can be understood as headroom already committed to rather than as an unknown. The figure comes from a calibrated model of the architecture's cache layout, not from a measurement, so treat it as a close estimate.

Share