[Update #89] Add torch ref attention - #107
Conversation
…t kv, sdpa and group attention, update unit tests Signed-off-by: Frida Hou <201670829+Fridah-nv@users.noreply.github.com>
Signed-off-by: nvchenghaoz <211069071+nvchenghaoz@users.noreply.github.com>
…ng repeat kv, sdpa and group attention, update unit tests" This reverts commit 5743fb3.
|
Shall we have a unit test to map the behavior between |
Good point. Let me check the F.scaled_dot_product_attention. We probably need a unit test to compare the AD attention vs. torch attention. |
|
/bot -h |
GitHub Bot Help
Provide a user friendly way for developers to interact with a Jenkins server. Run See details below for each supported subcommand. Details
Launch build/test pipelines. All previously running jobs will be killed.
kill
Kill all running builds associated with pull request. skip
Skip testing for latest commit on pull request. reuse-pipeline
Reuse a previous pipeline to validate current commit. This action will also kill all currently running builds associated with the pull request. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break. |
|
/bot run |
|
Never mind about the unit test failure I mentioned, this PR should be compatible with #101 now Btw, |
@Fridah-nv I am looking for some options to setup a mini-CI for our own fork to prevent some late found bugs during the mass merge back to the upstream TRTLLM repo. I saw the /bot command suggestion in our MR description so I was wondering whether we could directly reuse that. |
* attention matcher with torch._inductor pattern matcher,matching repeat kv, sdpa and group attention, update unit tests Signed-off-by: Frida Hou <201670829+Fridah-nv@users.noreply.github.com> * Update the torch ref op Signed-off-by: nvchenghaoz <211069071+nvchenghaoz@users.noreply.github.com> * Revert "attention matcher with torch._inductor pattern matcher,matching repeat kv, sdpa and group attention, update unit tests" This reverts commit 5743fb3. --------- Signed-off-by: Frida Hou <201670829+Fridah-nv@users.noreply.github.com> Signed-off-by: nvchenghaoz <211069071+nvchenghaoz@users.noreply.github.com> Co-authored-by: Frida Hou <201670829+Fridah-nv@users.noreply.github.com>
* attention matcher with torch._inductor pattern matcher,matching repeat kv, sdpa and group attention, update unit tests Signed-off-by: Frida Hou <201670829+Fridah-nv@users.noreply.github.com> * Update the torch ref op Signed-off-by: nvchenghaoz <211069071+nvchenghaoz@users.noreply.github.com> * Revert "attention matcher with torch._inductor pattern matcher,matching repeat kv, sdpa and group attention, update unit tests" This reverts commit 5743fb3. --------- Signed-off-by: Frida Hou <201670829+Fridah-nv@users.noreply.github.com> Signed-off-by: nvchenghaoz <211069071+nvchenghaoz@users.noreply.github.com> Co-authored-by: Frida Hou <201670829+Fridah-nv@users.noreply.github.com>
* attention matcher with torch._inductor pattern matcher,matching repeat kv, sdpa and group attention, update unit tests Signed-off-by: Frida Hou <201670829+Fridah-nv@users.noreply.github.com> * Update the torch ref op Signed-off-by: nvchenghaoz <211069071+nvchenghaoz@users.noreply.github.com> * Revert "attention matcher with torch._inductor pattern matcher,matching repeat kv, sdpa and group attention, update unit tests" This reverts commit 5743fb3. --------- Signed-off-by: Frida Hou <201670829+Fridah-nv@users.noreply.github.com> Signed-off-by: nvchenghaoz <211069071+nvchenghaoz@users.noreply.github.com> Co-authored-by: Frida Hou <201670829+Fridah-nv@users.noreply.github.com>
* attention matcher with torch._inductor pattern matcher,matching repeat kv, sdpa and group attention, update unit tests Signed-off-by: Frida Hou <201670829+Fridah-nv@users.noreply.github.com> * Update the torch ref op Signed-off-by: nvchenghaoz <211069071+nvchenghaoz@users.noreply.github.com> * Revert "attention matcher with torch._inductor pattern matcher,matching repeat kv, sdpa and group attention, update unit tests" This reverts commit 5743fb3. --------- Signed-off-by: Frida Hou <201670829+Fridah-nv@users.noreply.github.com> Signed-off-by: nvchenghaoz <211069071+nvchenghaoz@users.noreply.github.com> Co-authored-by: Frida Hou <201670829+Fridah-nv@users.noreply.github.com>
* attention matcher with torch._inductor pattern matcher,matching repeat kv, sdpa and group attention, update unit tests Signed-off-by: Frida Hou <201670829+Fridah-nv@users.noreply.github.com> * Update the torch ref op Signed-off-by: nvchenghaoz <211069071+nvchenghaoz@users.noreply.github.com> * Revert "attention matcher with torch._inductor pattern matcher,matching repeat kv, sdpa and group attention, update unit tests" This reverts commit 5743fb3. --------- Signed-off-by: Frida Hou <201670829+Fridah-nv@users.noreply.github.com> Signed-off-by: nvchenghaoz <211069071+nvchenghaoz@users.noreply.github.com> Co-authored-by: Frida Hou <201670829+Fridah-nv@users.noreply.github.com>
The main change in this PR comparing to #89 is to handle the bool attn_mask.
The attn_mask could be bool type which cause the test error in the
test_attention_matcher_hf.py.