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

arch: remove torch.load calls #109

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

akx
Copy link
Contributor

@akx akx commented Jan 2, 2024

Architecture code should not be loading any extra data from an arbitrary file without safe unpickling.

Architecture code should not be loading any extra data from an arbitrary file without safe unpickling
@akx akx marked this pull request as ready for review January 2, 2024 16:55
)["params_ema"]
)
# Refuse to attempt to load a decoder here
raise NotImplementedError(f"Got a non-empty {decoder_load_path=}")
Copy link
Member

Choose a reason for hiding this comment

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

Why not just remove the arg?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because it'd then be non-obvious why a new model file someone tries is not working as they expect.

@joeyballentine joeyballentine merged commit 081cd11 into chaiNNer-org:main Jan 2, 2024
8 checks passed
@akx akx deleted the bad-torch-load-calls branch January 2, 2024 19:19
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