dotnet / dotnet/machinelearning

When using the AddPredictionEnginePool, How to Confirm the a Model is accessible if watchForChanges: true?

Open
#6,920 0 comments 0 reactions 0 assignees View on GitHub
area-Integration
Dominant language
C#
Stars
9.4k
Forks
2k
Avg merge
2d 20h
Merged PRs (30d)
11

Description

### System information
Windows 11, Net 8.0

When setting up a webAPI with a similar command to
predictionEnginePool.AddPredictionEnginePool()
.FromFile(modelName: modelName, filePath: $"MLModels/{modelName}.zip", watchForChanges: true);

Is there a way to know the model the code points to has been loaded and being currently used?
I was curious if there some command in the predictionEnginePool that could be read, such as a time stamp or a way to log when the model changes. I'd liked to be able to provide feedback about the model's creation data. I can pull the timestamp from the files, but within the WebApi, I was curious about being able to monitor that part.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.