Getting model version/commit id?

Hi!

I am in the process of developing some classifiers for the classification of online comments. These classifiers will be updated from time to time to avoid drift. This means that, when generating the predictions during inference, I need to know which version of the model was used.

Is there any way to read this from pipeline or AutoModelFromPreTrained?

Also this is a feature request to add a revision parameter (see here) to pipeline() :hugs:

1 Like