Skip to content

Fix graph breaks in LLama-FT torch compile mode execution#61

Merged
vivekgoe merged 1 commit into
habana-mainfrom
fix-compile-graph-breaks
Mar 5, 2024
Merged

Fix graph breaks in LLama-FT torch compile mode execution#61
vivekgoe merged 1 commit into
habana-mainfrom
fix-compile-graph-breaks

Conversation

@scsudhak-intel
Copy link
Copy Markdown

@scsudhak-intel scsudhak-intel commented Feb 22, 2024

Training script uses dynamic control flow based on the success of a module import, which caused a graph break.
This patch handles the control flow through boolean flags which avoids graph breaks due to module import.

@hlahkar hlahkar marked this pull request as ready for review March 5, 2024 03:28
@hlahkar hlahkar requested review from libinta and mandy-li as code owners March 5, 2024 03:28
@hlahkar hlahkar requested a review from a user March 5, 2024 03:28
Signed-off-by: Sanju C Sudhakaran <scsudhakaran@habana.ai>
@hlahkar hlahkar force-pushed the fix-compile-graph-breaks branch from 7874781 to a27f6d3 Compare March 5, 2024 03:33
@vivekgoe vivekgoe changed the title Fix graph breaks in torch compile mode Fix graph breaks in LLama-FT torch compile mode execution Mar 5, 2024
@vivekgoe
Copy link
Copy Markdown

vivekgoe commented Mar 5, 2024

@dvarshney-habana please review

@vivekgoe vivekgoe merged commit 0cbbb8d into habana-main Mar 5, 2024
hlahkar pushed a commit that referenced this pull request Mar 15, 2024
Signed-off-by: Sanju C Sudhakaran <scsudhakaran@habana.ai>
@astachowiczhabana
Copy link
Copy Markdown

huggingface#806

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants