Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not save Path objects to model cards #2998

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

helpmefindaname
Copy link
Collaborator

Saving Path objects in Pickle can lead to OS incompatibilities, as Path is resolved to either PosixPath (linux) or WindowsPath (windows).
As the model card saves the training parameters, calling with a path can lead that models trained on a linux docker won't be loadable on any Windows machine (and reversed).

This PR gives a simple fix by converting each path to a string before adding it to the ModelCard

@alanakbik
Copy link
Collaborator

@helpmefindaname thanks for fixing this!

@alanakbik alanakbik merged commit f0841e3 into flairNLP:master Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants