Skip to content

Commit

Permalink
Update on "Renamed bsz to bs for consistency; removed dead code"
Browse files Browse the repository at this point in the history
some minor cleanups

[ghstack-poisoned]
  • Loading branch information
awgu committed May 3, 2024
1 parent ccd84c8 commit 6a3e7b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchtitan/models/llama/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def forward(self, tokens: torch.Tensor):
torch.Tensor: Output logits after applying the Transformer model.
"""
seqlen = tokens.shape[1]
_bs, seqlen = tokens.shape
h = self.tok_embeddings(tokens)
self.freqs_cis = self.freqs_cis.to(h.device)
freqs_cis = self.freqs_cis[0:seqlen]
Expand Down

0 comments on commit 6a3e7b9

Please sign in to comment.