Skip to content

Commit

Permalink
hllm model
Browse files Browse the repository at this point in the history
Summary: the HLLM model stacks two LLaMA to perform next item prediction from user's engagement history.

Differential Revision:
D64089998

Privacy Context Container: L1268898
  • Loading branch information
zhangtemplar authored and facebook-github-bot committed Oct 10, 2024
1 parent 5de5001 commit 0c3c192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchtune/modules/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ def forward(
- m_s: max seq len
"""
# input tensor of shape [b, s]
bsz, seq_len = tokens.shape
seq_len = tokens.shape[1]

self._validate_inputs(
seq_len,
Expand Down

0 comments on commit 0c3c192

Please sign in to comment.