Member Junction
    Preparing search index...

    Read seam for fetching the serialized model artifact bytes by file id (the read-side counterpart to the training IArtifactStore.save). Reads through the storage provider the file's MJ: Files row names in production (StorageProviderArtifactLoader); tests inject an in-memory map.

    interface IArtifactLoader {
        load(
            fileId: string,
            contextUser: UserInfo,
            provider: IMetadataProvider,
        ): Promise<Uint8Array<ArrayBufferLike>>;
    }

    Implemented by

    Index

    Methods

    Methods

    • Fetch the serialized artifact bytes previously stored under fileId.

      Parameters

      • fileId: string

        the MLModel.ArtifactFileID value

      • contextUser: UserInfo

        the acting user the file row is read as (required: a call site without one is a compile error)

      • provider: IMetadataProvider

        the provider the file row is read through (required: no fallback to the global provider)

      Returns Promise<Uint8Array<ArrayBufferLike>>

      the artifact bytes, or null when not found