Giter VIP home page Giter VIP logo

Comments (4)

erickrf avatar erickrf commented on July 24, 2024 1

I was thinking more of implementation than the research problem of LSH itself. Well, I'll just leave it for now then.

from reformer-pytorch.

lucidrains avatar lucidrains commented on July 24, 2024

@erickrf yes, I think this was noted in this chart in the paper
Screen Shot 2020-02-21 at 1 06 26 PM

The payoffs only come at sequences ~2048 or above, depending on the hash rate. I introduced an extra keyword full_attn_thres, which you can set at your desired threshold to auto-switch between full and LSH attention, so that there is not wasted time and computation at smaller sequences. The other thing to note is, you could set the n_hashes to be smaller. Per my conversations with some of the authors, 4 was enough in most of their runs.

from reformer-pytorch.

lucidrains avatar lucidrains commented on July 24, 2024

@erickrf there is also perhaps room to improve on LSH. https://science.sciencemag.org/content/358/6364/793/tab-figures-data But that is more a topic for longer term research. I would be happy to make the framework more flexible to experimentation if that is something you would be interested in

from reformer-pytorch.

lucidrains avatar lucidrains commented on July 24, 2024

@erickrf if you have any ideas for improving on performance, welcoming PRs :)

from reformer-pytorch.

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.