Skip to content

Don't error if sequence weights model not provided#125

Closed
antortjim wants to merge 1 commit into
jbohnslav:masterfrom
shaliulab:sequence_weights_initialization
Closed

Don't error if sequence weights model not provided#125
antortjim wants to merge 1 commit into
jbohnslav:masterfrom
shaliulab:sequence_weights_initialization

Conversation

@antortjim

@antortjim antortjim commented Nov 4, 2022

Copy link
Copy Markdown

I am not sure why, but

cfg["sequence"]["weights"][cfg.run.model] can be None, and not a dictionary from which we can get cfg[cfg.run.model].arch. This patch defaults to an empty list in that case for the pretrained file, which is handled downstream accordingly

@jbohnslav

Copy link
Copy Markdown
Owner

Thanks for the original report and fix idea. I reimplemented this behavior against the current codebase with a regression test in #179, since this PR was stale/conflicting after the packaging and dependency modernization work. Closing this as superseded by #179.

@jbohnslav jbohnslav closed this Jul 3, 2026
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