Megatron-LM icon indicating copy to clipboard operation
Megatron-LM copied to clipboard

[QUESTION] Why is Multi-Token Prediction not supported with the mRoPE

Open liudl85 opened this issue 10 months ago • 3 comments

Your question Ask a clear and concise question about Megatron-LM. Tag the @mcore-oncall to get oncall's attention to this issue.


Why is Multi-Token Prediction (MTP) not supported with the mRoPE position embedding type?

As described in codes: https://github.com/NVIDIA/Megatron-LM/blob/3f6ad4691b6ea4ff36f7647ecefca2066d214b0c/megatron/training/arguments.py#L1253-L1258

Is this simply because it hasn't been implemented yet (Do you have a plan?), or are there fundamental technical incompatibilities between the two?

If the generated content is text tokens, there shouldn't be any difference between an LLM and an MLLM. Furthermore, the position_ids should follow the same formula as in standard autoregressive generation. Am I overlooking any key considerations here?

I'd appreciate your insights!

liudl85 avatar Jan 13 '26 07:01 liudl85

Hi @shifangx, do you know about the answer to this?

BoxiangW avatar Jan 21 '26 18:01 BoxiangW

When MTP was added, mRoPE was not there. I think simply changing the assertion would work.

BestJuly avatar Jan 28 '26 02:01 BestJuly

resolved by https://github.com/NVIDIA/Megatron-LM/pull/3114

maanug-nv avatar Jan 29 '26 19:01 maanug-nv