Fix the seamless_m4t cannot work on Gaudi - #38363
Conversation
Signed-off-by: yuanwu <yuan.wu@intel.com>
|
cc @IlyasMoutawwakil I think? Feel free to ping me if this should go to someone else! |
|
@yuanwu2017 can be more specific about what you're fixing here ? |
|
@IlyasMoutawwakil The torch.gather cannot work correctly on Gaudi with seamless_m4t. The patch is only for tracking this issue. I will closed it. |
Signed-off-by: yuanwu <yuan.wu@intel.com>
Signed-off-by: yuanwu <yuan.wu@intel.com>
|
git clone https://github.com/yuanwu2017/llm-dbg.git |
|
@IlyasMoutawwakil Can we merge this patch first? The root cause is that Gaudi torch.gather cannot support input of int64 or long . It seems slow to fix this bug from the Gaudi pytorch. After they fix, I will remove the workaround. |
|
@yuanwu2017 you can patch it in the the transformers modeling code can't afford to be bloated with accelerator specific patches. |
Signed-off-by: yuanwu <yuan.wu@intel.com>
Signed-off-by: yuanwu <yuan.wu@intel.com>
|
Done. |
Signed-off-by: yuanwu <yuan.wu@intel.com>
Signed-off-by: yuanwu <yuan.wu@intel.com>
|
Done. |
Signed-off-by: yuanwu <yuan.wu@intel.com>
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
|
sorry I missed this. You might consider open an issue to track the patched stuffs and remove them once things are fixed (as mentioned in the added comments) |
|
Done. |




What does this PR do?
Fixes # (issue)
Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.