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

chore: update model due to incompatibility with new text processing #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

roedoejet
Copy link
Member

@roedoejet roedoejet commented Feb 12, 2025

Copy link
Member

@joanise joanise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right concept, but requires some tweaks

@@ -127,6 +128,11 @@ def check_and_upgrade_checkpoint(self, checkpoint):
# Upgrading from 0.0 to 1.0 requires no changes; future versions might require changes
checkpoint["model_info"]["version"] = "1.0"

# We changed the handling of phonological features in everyvoice==0.3.0
if ckpt_version < Version("1.1"):
raise ValueError(f"""There were breaking changes to the handling of text in version 1.1, introduced in version 0.3.0 of EveryVoice.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just "version 1.1" like this is confusing, because various things have versions in this message. Name it: "in dfagliner model version 1.1" or whatever strings accurately describes this.

# We changed the handling of phonological features in everyvoice==0.3.0
if ckpt_version < Version("1.1"):
raise ValueError(f"""There were breaking changes to the handling of text in version 1.1, introduced in version 0.3.0 of EveryVoice.
Your model is version {ckpt_version} and your model will not work as a result. Please downgrade to everyvoice 0.2.0.""")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.2.0 never existed. You mean 0.2.0a1. Unless we publish 0.2.0==0.2.0a1, trying pip install everyvoice==0.2.0 will fail. Currently, even pip install everyvoice fails. And pip install everyvoice<0.3 will continue to fail, only with an explicit pip install everyvoice==0.2.0a1 will pip ever accept to install an alpha or beta version.

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.

2 participants