Skip to content

The Positional Encoding is not using sin / cos? #551

Open
@mw66

Description

pos_emb = self.transformer.wpe(pos) # position embeddings of shape (t, n_embd)

E.g compared with the section Positional Encoding of the following article:

http://jalammar.github.io/illustrated-transformer/

So, did I miss something?

Is this an overlook, or simplification? And how does this affect the training result?

Anyone can help explain?

Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions