GithubHelp home page GithubHelp logo

Comments (5)

freewym avatar freewym commented on September 17, 2024

Yes, I also observed such things before. Yes I also think it's caused by the beam search code sequence_generator.py. I haven't investigate into this as the code is almost from fairseq, Not sure if people doing MT with fairseq have encountered the same problem.

from espresso.

joyolee avatar joyolee commented on September 17, 2024

Yes, I also observed such things before. Yes I also think it's caused by the beam search code sequence_generator.py. I haven't investigate into this as the code is almost from fairseq, Not sure if people doing MT with fairseq have encountered the same problem.

Thanks for your prompt reply. I might have a check if the people in MT also have similar things later, or submit an issue in fairseq.

from espresso.

freewym avatar freewym commented on September 17, 2024

The thread in #55 may suggest the reason: the encoder's convolution may give different output when input features are padded differently in different batches

from espresso.

joyolee avatar joyolee commented on September 17, 2024

I would ask if this problem is fixed? I submitted an issue in fairseq, and the author suspects that this problem could be caused by the missing padding mask after each layer. https://github.com/pytorch/fairseq/issues/3078#issuecomment-754858923

from espresso.

freewym avatar freewym commented on September 17, 2024

After looking at the issue I mentioned in my last post, I agree that the encoder's padding is the cause. But I think it only happens with convolutions (not confirmed yet): the shorter examples in a batch will be padded with different padding frames in different batches, making the convolution kernel being applied across the example boundary get different numbers.

from espresso.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.