Closed silverstar0727 closed 1 year ago
oh.... This line tricked me into believing that max_seq_length is 512...
I got a 1024 when I ran print(model.max_seq_length)
and it's actually right.
Yes, the line you mentioned is only for the initialization, and you can change the maximum sequence length by overriding it.
Due to this line, even if I run the code below, I still got max_seq_length fixed at 512.
model.max_seq_length = 1024
Is it because I can't change the max_seq_length? If not, it would be right to erase this line.