exasol / transformers-extension

An Exasol extension for using state-of-the-art pretrained machine learning models via the Hugging Face Transformers API.
MIT License
2 stars 2 forks source link

Add a seed parameter to allow testing for prediction consisteny #221

Open MarleneKress79789 opened 2 months ago

MarleneKress79789 commented 2 months ago

Downloading a model and saving it locally using AutoModel.from_pretrained loses the model specialization (detailed description in #213) . After loading these broken models, using them for prediction returns bad results.

To solve the testing issues, we need to make the prediction udfs deterministic

Prerequisites: #216, #217, #218, #219, #220

This ticket adds the seed parameter and new tests: