Lm Stage Context#
-
struct SafetyModelLocalResourceView#
A model-local buffer supplied by the declared-resource owner during Initialization.
-
struct SafetyModelLocalResourceRequirement#
-
struct LMStagePlan#
Logical assignment only; no resource ownership or device handles.
-
struct LMStageProfileView#
Public Members
-
SafetyProfileMetadata const *metadata = {nullptr}#
-
SafetyProfileResources const *resources = {nullptr}#
-
std::vector<SafetyTensorView> tensors = {}#
-
SafetyProfileMetadata const *metadata = {nullptr}#
-
struct LMStageContext#
Immutable after readiness. Stage/slot pairs sharing an executor also share its fixed IO storage. Model-local buffers, executor metadata, IO buffers, and streams are non-owning views.
Public Functions
- SafetyStatus getTensorView(
- int64_t profile,
- std::string_view name,
- SafetyTensorView const *&output
Pure cached lookup; returned metadata borrows the context’s fixed IO storage.
- SafetyStatus getTensorView(
- std::string_view name,
- SafetyTensorView const *&output
Name-only lookup requires a singleton profile; it never chooses among multiple admitted profiles.
Public Members
-
LMStagePlan plan#
-
cudaStream_t mainStream = {nullptr}#
-
std::vector<LMStageProfileView> profiles#
-
std::vector<SafetyModelLocalResourceView> modelLocalResources#
-
bool complete = {false}#