Giter Club home page Giter Club logo

energy-transformer-jax's Introduction

Hi there ๐Ÿ‘‹

I research foundation models from the unique perspectives of visualization and dynamical systems.

Talk to me about

  • ๐Ÿง  Hopfield Networks
  • ๐Ÿงฉ Understandable latent spaces
  • ๐Ÿฆพ AI Frameworks/libraries
  • ๐Ÿงฑ Full stack development

I try to make all of my work+research public and open source.

I am affiliated with the Visual AI Lab at IBM Research & PoloClub at GA Tech.

I work closely with Hendrik Strobelt, Dmitry Krotov, Polo Chau.

energy-transformer-jax's People

Contributors

bhoov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

energy-transformer-jax's Issues

Is the code for attention energy consistent with the equation?

Hi, thank you for sharing very intreating works.
I have take a look the code, and I am confused about the potential inconsistent with code and equation described in the paper.

[1] Code seems to sum over all N by N attention matrix, where N is the number of token.

A = jax.nn.logsumexp(beta * jnp.einsum("qhz,khz->hqk", Q, K), -1)
return -1/beta * A.sum()

[2] Similarly, equation seems to calculate the energy via the attention matrix A, but does not sum the attention weights when the query and key come from the same token.

In that case, don't we need to remove the diagonal elements of the attention matrix?

Thanks in advance.

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.