Skip to content

Commit d90c718

Browse files
committed
add training test file
1 parent d6aa38d commit d90c718

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_main.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import pytest
2+
import torch
3+
from transformers import GPT2Tokenizer
4+
from src.main import (
5+
LongRoPEModel,
6+
load_data,
7+
non_uniform_interpolation,
8+
RoPEPositionalEncoding,
9+
progressive_extension,
10+
short_context_recovery,
11+
)

0 commit comments

Comments
 (0)