Giter Site home page Giter Site logo

Comments (7)

alihassanijr avatar alihassanijr commented on June 27, 2024

Hello,
Thank tou for your interest.

We fixed the dimension for our purposes to get a minor speed improvement. You can modify the line #define DIM 32 and change it to 64 and recompile if you're interested in doing that.
We plan to release either a separate version of the kernel with dynamic dims, or merge that into the kernel directly.

from neighborhood-attention-transformer.

XiaoyuShi97 avatar XiaoyuShi97 commented on June 27, 2024

Hi, I want to double check that no matter the value of dim and num_heads, the dim of head is always 32?

from neighborhood-attention-transformer.

alihassanijr avatar alihassanijr commented on June 27, 2024

Hi,
No, we specifically kept the per-head dim at 32 for our 4 variants, and extended heads for larger variants. That's why we kept it fixed in the kernel.

from neighborhood-attention-transformer.

alihassanijr avatar alihassanijr commented on June 27, 2024

Just an update,
You can now use arbitrary dims per head with v0.11 (PR #23 )

@PeiqinZhuang If that resolves your question, feel free to close the issue.

from neighborhood-attention-transformer.

PeiqinZhuang avatar PeiqinZhuang commented on June 27, 2024

Just an update, You can now use arbitrary dims per head with v0.11 (PR #23 )

@PeiqinZhuang If that resolves your question, feel free to close the issue.

Hi, I have one question. Should I change the block size from 32 to 64, if I change the default dimension from 32 to 64.

from neighborhood-attention-transformer.

alihassanijr avatar alihassanijr commented on June 27, 2024

Sorry, to what exactly are you referring by block size?

from neighborhood-attention-transformer.

alihassanijr avatar alihassanijr commented on June 27, 2024

Closing this due to inactivity. If you still have questions feel free to open it back up.

from neighborhood-attention-transformer.

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.