You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.
Hi. I have seen the possibility (for example in generate-lines.lua) to decode with several models, whose softmax and attention scores are averaged to generate predictions. This has the inconvenient that decoding time increases nearly linearly with the number of models.
Since I need to keep decoding time low, I would like to build a new model by averaging parameters of several models. Are there methods/pieces of code in fairseq that I could use do to this?
Thanks!
The text was updated successfully, but these errors were encountered:
Thank you for the tips! I have written the attached script. It seems to do the job. Does it seem correct to you? Does it include all the parameters? average_models.lua.txt
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi. I have seen the possibility (for example in generate-lines.lua) to decode with several models, whose softmax and attention scores are averaged to generate predictions. This has the inconvenient that decoding time increases nearly linearly with the number of models.
Since I need to keep decoding time low, I would like to build a new model by averaging parameters of several models. Are there methods/pieces of code in fairseq that I could use do to this?
Thanks!
The text was updated successfully, but these errors were encountered: