Coder Social home page Coder Social logo

Parallel mode issue about mad HOT 5 CLOSED

gn-yh-lim avatar gn-yh-lim commented on July 19, 2024
Parallel mode issue

from mad.

Comments (5)

craffel avatar craffel commented on July 19, 2024 1

There's no real advantage to using soft decoding at inference time - standard softmax attention typically works as well or better and has the same complexity/capabilities. You only really get a gain (in terms of cost and the ability to online decoding) from monotonic attention if you do hard attention at inference time.

from mad.

craffel avatar craffel commented on July 19, 2024

IIRC you could probably do it with a custom kernel, but it's been so long since I thought about it that I don't remember what I had in mind. Otherwise you could try using higher-precision floats, but AFAIK there aren't any other options.

from mad.

gn-yh-lim avatar gn-yh-lim commented on July 19, 2024

what do you mean by a custom kernel? could you please give an example? thanks!

from mad.

craffel avatar craffel commented on July 19, 2024

E.g. a custom CUDA kernel. No examples, sorry.

from mad.

gn-yh-lim avatar gn-yh-lim commented on July 19, 2024

thanks for clarifying. Just one last question: during inference, from my understanding, it would be ok to use soft monotonic attention as in training (despite it being more expensive) instead of hard monotonic attention. Could you please confirm if that is true? The only potential problem that I see is the introduction of white noise before the sigmoid layer, would really appreciate it if you could give some insights into this. Thanks again for the great paper!

from mad.

Related Issues (3)

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.