Table of Contents

Method CreateFromFile

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

CreateFromFile(string, bool)

Creates a ModelCard instance by inspecting the specified file, without adopting a predefined catalog entry even when the file's origin sidecar points at one. The card answers for THE FILE (a settable identity, per-file capabilities and license), which is what an import pipeline needs: the adopting overload freezes the identity to the catalog's.

public static ModelCard CreateFromFile(string path, bool checkPredefinedCards)

Parameters

path string

The absolute path to the model file.

checkPredefinedCards bool

When true, a file downloaded from a catalog URI adopts that catalog entry (the historical behavior); when false, the file is always inspected as itself.

Returns

ModelCard

A ModelCard instance populated with metadata extracted from the model file.

CreateFromFile(string)

Creates a ModelCard instance by loading metadata from the specified file path.

public static ModelCard CreateFromFile(string path)

Parameters

path string

The absolute path to the model file.

Returns

ModelCard

A ModelCard instance populated with metadata extracted from the model file.

Share