[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove pos unsqueeze(0) #275

Merged
merged 1 commit into from
Jun 14, 2023
Merged

Conversation

apivovarov
Copy link
Contributor

Adding fake batch dim with size 1 to pos tensor is not needed.
tok_emb + pos_emb works fine. Broadcast works.

tok_emb - shape (b, t, n_embd)
pos_emb - shape (t, n_embd)

@karpathy karpathy merged commit 18ee6b6 into karpathy:master Jun 14, 2023
@karpathy
Copy link
Owner

yep the broadcast is fine. merging to reduce clutter ty

kw1jjang pushed a commit to kw1jjang/nanoGPT-BVV that referenced this pull request Jun 15, 2023
gkielian added a commit to gkielian/ReaLLMASIC_nanogpt that referenced this pull request Oct 16, 2024
…_fix

Added tril for softmax input quantization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants