Skip to content

Commit

Permalink
Update model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Levi De La Fuente Rodriguez authored Sep 3, 2023
1 parent 8432e48 commit 8580eb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def __init__(self, params: ModelArgs):

self.freqs_cis = precompute_freqs_cis(
# Note that self.params.max_seq_len is multiplied by 2 because the token limit for the Llama 2 generation of models is 4096.
#Adding this multiplier instead of using 4096 directly allows for dynamism of token lengths while training or fine-tuning.
# Adding this multiplier instead of using 4096 directly allows for dynamism of token lengths while training or fine-tuning.
self.params.dim // self.params.n_heads, self.params.max_seq_len * 2
)

Expand Down

0 comments on commit 8580eb9

Please sign in to comment.