Interface IModelProvider
- Namespace
- InferenceEngine.Core.ModelProviders
- Assembly
- InferenceEngine.Core.dll
Abstraction for model acquisition. Implementations can load models from local files, download from URLs, fetch from cloud storage, etc.
public interface IModelProvider
Methods
GetModelPathAsync(CancellationToken)
Gets the local path to the model file. Implementations should ensure the model is available at the returned path (downloading if necessary) before returning.
Task<string> GetModelPathAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token for the operation