Cannot decode > context length tokens due to RoPE max seq len? #91
|
Hi team! Thank you so much for publishing the course assignments and offering low resource options in the handout. I'm an alum but this course didn't exist back in my day :) I learned so much and had fun following along. Q: when I try to decode more than For context - I achieved 1.65 val loss with 5000 steps and pretty coherent TinyStories output. I think due to memory constraints (M4 Mac 16GB), my implementation took ~2s / step instead of ~0.43s / step (36 min / 5000 steps) as suggested in the handout for M4 Max 36GB. Thanks so much again! |
Replies: 2 comments
|
Hi! |
|
Hi!
max_seq_lenis indeed the maximum length you expect your model to be able to generate. Since RoPE needs to generate a cache of positional encodings, we limit this up-front, but it can be as long as you want to ensure you don't get limited during generation. Keep in mind you can change this after training, since the weights/generation quality won't be affected by this parameter.