RoPE config: enforcing dim
#2790
Andrei-Aksionov
started this conversation in
General
Replies: 1 comment 1 reply
-
|
I think we can remove this TODO. cc @fegin But in general just fyi, the config system is still evolving. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there 👋
I’m still reviewing the code. The current step is configurations.
Congratulations on the implementation:
I've noticed this TODO comment:
torchtitan/torchtitan/models/llama3/__init__.py
Lines 106 to 113 in fe80b63
I would like to contribute, but have a couple of questions to the author of the comment, @tianyu-l:
enforcing? It's already tied torope.dimis not always equal tohead_dim(like in Qwen 3.5), this check should be done in the model's class. InLlama3Model__init__ we have access to the full config:torchtitan/torchtitan/models/llama3/model.py
Lines 130 to 135 in fe80b63
so we can add a check there:
and similar for other models.
But, does it make any sense? 🤔
Feels like over-engineering.
enforcingmeant to not providerope.dimin the config at all and calculate it in the model's class?IMHO, it will add too much magic.
Overall, seems like the current approach is fine.
Nevertheless, curious to hear what idea was behind that TODO comment.
Beta Was this translation helpful? Give feedback.
All reactions