Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

add use_config_from_snapshot option(load config from snapshot or current task) #970

Closed
wants to merge 1 commit into from

Conversation

hudeven
Copy link
Contributor

@hudeven hudeven commented Sep 10, 2019

Summary:
Problem:
Currently when we call load() from a snapshot, it will construct task with the config saved in the snapshot. However, sometimes, we want to overwrite the config by current task's config

Solution:
add "use_config_from_snapshot" to PyTextConfig. By default, it use the config saved in snapshot. If we set use_config_from_snapshot=false, it will overwrite the config by current task's config

Differential Revision: D17299252

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Sep 10, 2019
…ent task) (facebookresearch#970)

Summary:
Pull Request resolved: facebookresearch#970

Problem:
Currently when we call load() from a snapshot, it will construct task with the config saved in the snapshot. However, sometimes, we want to overwrite the config by current task's config

Solution:
add "use_config_from_snapshot" to PyTextConfig. By default, it use the config saved in snapshot. If we set use_config_from_snapshot=false, it will overwrite the config by current task's config

Differential Revision: D17299252

fbshipit-source-id: 57f869d2f1484e1e2bc8c018cb42b37e53a7433f
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in b075241.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants