Skip to content

refactor: use finetune_mode in config - #51

Merged
roedoejet merged 2 commits into
dev.ap/slurm-requeuefrom
dev.ap/finetune-mode
Nov 30, 2026
Merged

roedoejet merged 2 commits into
dev.ap/slurm-requeuefrom
dev.ap/finetune-mode

Conversation

@roedoejet

@roedoejet roedoejet commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

add backwards compatibility
description="If True, load only model parameters from a checkpoint (skip optimizer state and epoch number).",
)

# TODO: remove in the release after finetune_mode was added

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not sure I agree with this TODO here. Is there any harm in preserving auto-conversion capability with warnings in the long term? That's been our approach whenever auto-conversion remains possible to calculate.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

you're right, I don't think it's a bad thing to keep it actually. I'll remove this todo

Comment thread styletts2/lightning.py
raise ValueError(
f"'{path}' isn't an EveryVoice StyleTTS2 checkpoint: it has no "
"'state_dict' and 'hyper_parameters' config. Checkpoints from the "
"original StyleTTS2 code need to be converted first."

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we offer a simple way to do this conversion, and if so can you hint at it here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm thinking of trying to write a script that does the conversion, but until I do that, and link to it in the docs, I may as well just remove this line

@roedoejet
roedoejet merged commit 4617cba into dev.ap/slurm-requeue Nov 30, 2026
1 of 2 checks passed
@roedoejet
roedoejet deleted the dev.ap/finetune-mode branch November 30, 2026 22:15
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