Code Monkey home page Code Monkey logo

rotary-embedding-tensorflow's Introduction

Arya Aftab ๐Ÿ‘‹

Arya's LinkedIn Arya's LinkedIn

As a Data Scientist and Machine Learning Engineer, I worked independently and as a team member for several projects, including voice command, speech emotion recognition, speech enhancement, etc. My desire to learn more about Machine Learning, Deep Learning, their applications and deploy them into real-world models.

Hello, My name is Arya!

  • ๐Ÿ”ญ Iโ€™m currently working on Meta-learning and Self-supervised Learning
  • ๐Ÿ“‹ Previously worked on Speech Recognition, Speech Emotion Recognition, and Tiny Machine Learning
  • ๐ŸŽ“ Master of Electrical Engineering (Communication Systems), Sharif University of Technology
  • ๐ŸŽ“ Bachelor of Biomedical Engineering (Bioelectric), Amirkabir University of Technology

GitHub Stats

Top Langs

Arya's github stats

rotary-embedding-tensorflow's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rotary-embedding-tensorflow's Issues

Problem with the correctness of the embeddings

I have tested the code, and in the case where dim equals to the full dim of the feature vector (so every element will be multiplied with the embedding), I have computed the
res2 = np.einsum("axc,ayc->xy", res, res)
where the "res" is the result of the embedding. (batch x time x feature, batch was equal to 1)
This matrix should show that rotary embedding is relative in a sense, so res2[0, 1] == res2[1, 2] == res2[2, 3] and so on.
But your code did not produce this result. I have tried it with other rotary embeddings (from GPTj-6B), and that produced the expected symmetries.
I have compared the two codes, and at first glance things have looked very similar, so it is not obvious where is the difference. Maybe I was using your code wrongly? But that would be strange because the embedded vectors look "close" to right.

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.