Input masks for generation - Potential small bug.
Opened this issue · 0 comments
nilsec commented
Looks like there may be a small bug in the generation:
ml-4m/fourm/models/generate.py
Line 138 in 2db0125
The input masks for text are determined by the position of the first batch eos only but subsequently applied to all batches. Is this intentional? Looks like it's commonly used with single batch generation (in the examples) so this may have fallen through the cracks? If not I'd be curious about the intention here, otherwise happy to make a PR.
Great stuff btw, thanks for open sourcing this!