Skip to content

Commit

Permalink
changed max_seq_len 1024 to 2048
Browse files Browse the repository at this point in the history
The models support a 2048 context window. This is not well advertised and people are getting confused. No sense having a smaller size here, as it just adds to the confusion.
  • Loading branch information
MarkSchmidty authored Mar 5, 2023
1 parent 2845af9 commit a81fb4e
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 @@ -27,7 +27,7 @@ class ModelArgs:
norm_eps: float = 1e-5

max_batch_size: int = 32
max_seq_len: int = 1024
max_seq_len: int = 2048


class RMSNorm(torch.nn.Module):
Expand Down

0 comments on commit a81fb4e

Please sign in to comment.