Uh oh!
There was an error while loading. Please reload this page.
Fairseq v0.10.2 compatible - #104
Conversation
Jiusheng Chen (JiushengChen)
commented
Sep 8, 2021
Avoid checking in those txt files and old backup file - "generate_old.py". |
Fei Hu (feihugis)
left a comment
There was a problem hiding this comment.
Thanks Julianne Knott (@JulianneKnott) for this PR! I did a pass and have one question for the files under results: are they used for comparing the outputs from fastseq and fairseq? It will be very helpful if we can add a unit test to automatically check it. We can also integrate it with our CI in the next step.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Julianne Knott (JulianneKnott)
commented
Sep 9, 2021
Yes. Didn't mean to commit them and will remove them on the next commit. Will look into adding a unit test also. |
Julianne Knott (JulianneKnott)
commented
Sep 10, 2021
Benchmark Info:
|
Fei Hu (feihugis)
left a comment
There was a problem hiding this comment.
The current code looks good to me. As this change will break the other parts of the main branch, could we create another branch (e.g., fairseq-0.10.2) for this work? After finishing all the tasks, it can be merged to the main branch.
Julianne Knott (JulianneKnott)
commented
Sep 14, 2021
Updated beam search optimizer.
|
Julianne Knott (JulianneKnott)
commented
Sep 27, 2021
Updated el attention optimizer
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Fei Hu (feihugis)
left a comment
There was a problem hiding this comment.
Thanks Julianne Knott (@JulianneKnott) ! LGTM. Just find some very minor issues. After fixing, the PR will be good to merge.
Uh oh!
There was an error while loading. Please reload this page.
| def step(self, step, lprobs, scores): | ||
| super()._init_buffers(lprobs) | ||
| class BeamSearch(BeamSearch): |
There was a problem hiding this comment.
I'm not sure if people will get confused when the child class has the same name with the parent class? What do Julianne Knott (@JulianneKnott) think of it?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Yu Yan (yuyan2do)
left a comment
There was a problem hiding this comment.
Looks good. Just added a few suggestions inline.
Another question: Is there any test cover converting a model to its TorchScript version? If not, we need do it manually to verify our change do not break this functionality.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| metavar='N', | ||
| help='number of worker for post process') | ||
| parser.add_argument( | ||
| '--decode_hypothesis', |
There was a problem hiding this comment.
Where is this param used?
There was a problem hiding this comment.
fastseq/fastseq/optimizer/fairseq/generate.py
Line 152 in 4a3f17e
Uh oh!
There was an error while loading. Please reload this page.
Updated generate.py to be compatible with Fairseq v0.10.2.
Speed tbd.