Skip to content

Update in inference.py -- omitting the optimizer's state#165

Open
vhiwase wants to merge 2 commits intomicrosoft:mainfrom
vhiwase:main
Open

Update in inference.py -- omitting the optimizer's state#165
vhiwase wants to merge 2 commits intomicrosoft:mainfrom
vhiwase:main

Conversation

@vhiwase
Copy link

@vhiwase vhiwase commented Dec 27, 2023

During the inference phase when loading a trained model, there's a focus on exclusively loading the model's weights while disregarding or not loading the optimizer's state. This adjustment can be particularly beneficial when utilizing a pre-trained model for tasks such as inference or transfer learning, where the optimizer's state information might not be necessary.

During the inference phase when loading a trained model, there's a focus on exclusively loading the model's weights while disregarding or not loading the optimizer's state. This adjustment can be particularly beneficial when utilizing a pre-trained model for tasks such as inference or transfer learning, where the optimizer's state information might not be necessary.
@vhiwase
Copy link
Author

vhiwase commented Dec 27, 2023

@microsoft-github-policy-service agree

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