Skip to content

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