-
Notifications
You must be signed in to change notification settings - Fork 251
[OpenVINO] Fix long context inference for Phi3.5 and Phi4 #1744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
4440904
test longrope phi4
eaidova 72cd3c8
update prepare_inputs_for_generation
eaidova 8aa5978
change condition
eaidova 19feb0b
Merge branch 'main' into ea/lonrope_exp
IlyasMoutawwakil 822664a
Merge branch 'main' into ea/lonrope_exp
helena-intel 4426e18
Merge remote-tracking branch 'origin/main' into ea/lonrope_exp
helena-intel 9f0394a
Merge remote-tracking branch 'origin/main' into ea/lonrope_exp
helena-intel c8adca6
Skip longrope for phi_moe for now
helena-intel 75af74c
Remove commented out code
helena-intel 8185565
Merge remote-tracking branch 'upstream/main' into ea/lonrope_exp
helena-intel 650a7ab
Merge remote-tracking branch 'upstream/main' into ea/lonrope_exp
helena-intel 1d70db3
Add test for phi3 longrope
helena-intel b018402
Apply review suggestions
helena-intel 77ca45f
Add _disable_longrope property
helena-intel 6b74fb8
Refactor long_rope to align more with transformers
helena-intel 6fafcce
Rename test model, add test, revert ov_config
helena-intel 231a9a6
Modify longrope test to use torch.randint
helena-intel fa088fe
Limit Phi3 to transformers>=4.49, disable remote-code
helena-intel 0041491
Skip phi3 tests for transformers<4.49
helena-intel 9327d0d
Add phi3-longrope to decoder tests
helena-intel 4049dcf
Merge remote-tracking branch 'upstream/main' into ea/lonrope_exp
helena-intel ae45e07
Use self.original_inv_freq in longrope forward
helena-intel 0c06d0e
Combine latest changes
rkazants 0f6e6af
Apply code-formatting
rkazants 20242d8
Potential fix for pull request finding
echarlaix 0ff4499
Apply suggestion from @echarlaix
echarlaix f2df81f
Fix inference for long rope
rkazants d9508b8
Apply code-formatting
rkazants 2de8c9b
Merge remote-tracking branch 'origin/phi_3_4_long' into phi_3_4_long
rkazants 42c519d
add phi3 test depending on MIN_TRANSFORMERS_VERSION
echarlaix f499257
add fix for phimoe
echarlaix 72a071f
Merge remote-tracking branch 'upstream/main' into phi_3_4_long
rkazants 30c40c2
Fix unsupported tests
rkazants 84ccea0
Merge remote-tracking branch 'upstream/main' into phi_3_4_long
rkazants 1b53860
Merge remote-tracking branch 'openvino-agent/phi_3_4_long' into phi_3…
rkazants b3e3ce5
Adjust phi3 long rope test
rkazants 71f8d00
Adjust phi3 long rope test
rkazants cf85a48
Apply code-formatting
rkazants File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Uh oh!
There was an error while loading. Please reload this page.