Skip to content

Commit

Permalink
Fix the short_context_recovery function call
Browse files Browse the repository at this point in the history
  • Loading branch information
jshuadvd committed Jun 13, 2024
1 parent 77b87cd commit ef76867
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,12 @@ def test_short_context_recovery():
d_model=512, n_heads=8, num_layers=6, vocab_size=50257, max_len=65536
)
tokenizer = GPT2Tokenizer.from_pretrained("gpt2")
short_context_recovery(model, tokenizer)
base_length = 65536
lambda_factors_base = torch.ones(256)
n_hat_base = 50
short_context_recovery(
model, tokenizer, base_length, lambda_factors_base, n_hat_base
)


# Testing the longrope_model_forward_with_extended_context function
Expand Down

0 comments on commit ef76867

Please sign in to comment.