Determinism fixes #1
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There are three commits in the PR. each commit can be reviewed individually.
Commit 1: Ensures we use flash attention 3 for VLLMCompatibleFlashAttention. Without this fix, we run in to the following error which shows we are using
torch.ops._vllm_fa2_C.varlen_fwd.Commit 2: output layer weights are updated on torchtian but arent getting synced to vllm. this is happening because Qwen3 has tie_word_embeddings=True and is using token embeddings weight for output layer in VLLM. The fix ensure these are also tied in titan side and whenever output layers is updated, the token embedding layer is also updated.
before the fix:
After the fix:
Before the fix:
Gradients computed: 1/282 paramsAfter the fix:
Gradients computed: 198/282 params