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

Save the original model config in train script #77

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

Conversation

yushijinhun
Copy link

The train script removes the "oxe_kwargs" key in the config, and add "dataset_kwargs_list" & "sample_weights" to the config. Such behavior causes a TypeError: Object of type function is not JSON serializable(base) error when saving model checkpoint, because the standardize_fn we put into the model config is not serializable. This commit fixes the issue by preserving the unmodified config.

The train script removes the "oxe_kwargs" key in the config, and add
"dataset_kwargs_list" & "sample_weights" to the config. Such behavior causes
a `TypeError: Object of type function is not JSON serializable(base)` error
when saving model checkpoint, because the `standardize_fn` we put into the
model config is not serializable. This commit fixes the issue by preserving the
unmodified config.
WenchangGaoT pushed a commit to WenchangGaoT/octo1 that referenced this pull request May 10, 2024
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.

1 participant