-
Notifications
You must be signed in to change notification settings - Fork 32k
remove ipex and ccl for xpu and cpu #42852
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
31 commits
Select commit
Hold shift + click to select a range
20e6ee1
remove ipex and ccl for xpu and cpu, since all ipex optimizations are
yao-matrix 7d0cf21
fix style
yao-matrix a6037b4
xx
yao-matrix 00a8d4e
Merge branch 'main' into remove-ipex
yao-matrix b20cb4c
Merge branch 'main' into remove-ipex
yao-matrix 0b8f510
Merge branch 'main' into remove-ipex
yao-matrix 692125e
xx
yao-matrix c9dce30
xx
yao-matrix dae56db
Merge branch 'main' into remove-ipex
yao-matrix 7fdbd12
xx
yao-matrix e1cbfed
Merge branch 'main' into remove-ipex
yao-matrix 49c8837
auto-round
yao-matrix a7fb9f7
Merge branch 'main' into remove-ipex
yao-matrix be84649
xx
yao-matrix b404ccc
Merge branch 'main' into remove-ipex
yao-matrix 2c16e21
Merge branch 'main' into remove-ipex
yao-matrix 2cc79d0
Merge branch 'main' into remove-ipex
yao-matrix e7cce37
Merge branch 'main' into remove-ipex
yao-matrix 3309a48
Merge branch 'main' into remove-ipex
yao-matrix 55da8d6
fix style
yao-matrix 3eac2a2
Merge branch 'main' into remove-ipex
yao-matrix 2929445
Merge branch 'main' into remove-ipex
yao-matrix f92b95b
Merge branch 'main' into remove-ipex
yao-matrix 0e8b326
xx
yao-matrix f7f0927
xx
yao-matrix 43a4796
Merge branch 'main' into remove-ipex
SunMarc a22818f
Merge branch 'main' into remove-ipex
SunMarc a39b97f
Merge branch 'main' into remove-ipex
yao-matrix eb60a71
Merge branch 'main' into remove-ipex
SunMarc 3f7a784
Merge branch 'main' into remove-ipex
yao-matrix 457f64b
Merge branch 'main' into remove-ipex
yao-matrix 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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,13 +15,14 @@ | |
| import tempfile | ||
| import unittest | ||
|
|
||
| import pytest | ||
|
|
||
| from transformers import AutoModelForCausalLM, AutoRoundConfig, AutoTokenizer | ||
| from transformers.testing_utils import ( | ||
| backend_empty_cache, | ||
| backend_synchronize, | ||
| require_accelerate, | ||
| require_auto_round, | ||
| require_intel_extension_for_pytorch, | ||
| require_torch_accelerator, | ||
| require_torch_gpu, | ||
| require_torch_multi_accelerator, | ||
|
|
@@ -106,7 +107,7 @@ def test_quantized_model_bf16(self): | |
| output = quantized_model.generate(**input_ids, max_new_tokens=40, do_sample=False) | ||
| self.assertIn(self.tokenizer.decode(output[0], skip_special_tokens=True), self.EXPECTED_OUTPUTS) | ||
|
|
||
| @require_intel_extension_for_pytorch | ||
| @pytest.mark.skip(reason="This test is temperarily disabled for CI machine's CPU is slow") | ||
| def test_quantized_model_on_cpu(self): | ||
| """ | ||
| Simple test that checks if the quantized model is working properly | ||
|
|
@@ -174,7 +175,7 @@ def test_convert_from_gptq(self): | |
| inputs = tokenizer(text, return_tensors="pt").to(model.device) | ||
| tokenizer.decode(model.generate(**inputs, max_new_tokens=5)[0]) | ||
|
|
||
| @require_intel_extension_for_pytorch | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
| @pytest.mark.skip(reason="This test is temperarily disabled for CI machine's CPU is slow") | ||
| def test_convert_from_awq_cpu(self): | ||
| """ | ||
| Simple test that checks if auto-round work properly with awq format | ||
|
|
||
Oops, something went wrong.
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 was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we can skip those tests or require a specific tag to be enabled ? It will be too slow on our CI to run the model on our cpu.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SunMarc, done, thx