Giter Club home page Giter Club logo

Comments (4)

arti32lehtonen avatar arti32lehtonen commented on May 16, 2024 2

Yep, it helps. I do it after training as you suggest:

for layer in model.performer.performer.net.layers:
    layer[0].fn.fast_attention.redraw_projection = False
    projection_matrix = layer[0].fn.fast_attention.create_projection()
    layer[0].fn.fast_attention.register_buffer('projection_matrix', projection_matrix)

from performer-pytorch.

lucidrains avatar lucidrains commented on May 16, 2024

@arti32lehtonen not without turning off the redrawing of weights, which hurts performance, as indicated in the figures in the paper

from performer-pytorch.

lucidrains avatar lucidrains commented on May 16, 2024

@arti32lehtonen i suppose one could turn off the redrawing of weights only at the end of training though 🤔

from performer-pytorch.

lucidrains avatar lucidrains commented on May 16, 2024

@arti32lehtonen addressed this in https://github.com/lucidrains/performer-pytorch/releases/tag/0.5.1

from performer-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.