Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 314db04

Browse files
committedDec 16, 2024·
disable bnb tests
Signed-off-by: jiqing-feng <jiqing.feng@intel.com>
1 parent 30027ff commit 314db04

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed
 

‎.github/workflows/test_ipex.yml

-5
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ jobs:
4444
python -c "import intel_extension_for_pytorch; print(intel_extension_for_pytorch.__version__); assert intel_extension_for_pytorch.__version__.startswith('${{ matrix.torch-version }}'.replace('.*', ''))"
4545
python -c "import transformers; print(transformers.__version__); assert transformers.__version__.startswith('${{ matrix.transformers-version }}'.replace('.*', ''))"
4646
47-
- if: ${{ matrix.torch-version != '2.4.0' }}
48-
name: Install bitsandbytes
49-
run: |
50-
pip install https://github.com/bitsandbytes-foundation/bitsandbytes/releases/download/continuous-release_multi-backend-refactor/bitsandbytes-0.45.0.dev0-py3-none-manylinux_2_24_x86_64.whl
51-
5247
- name: Test with Pytest
5348
run: |
5449
pytest tests/ipex

‎optimum/intel/ipex/modeling_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def can_generate(self):
186186

187187
def maybe_apply_torch_compile(self):
188188
if (
189-
not self.model.device.type != "cpu"
189+
self.model.device.type != "cpu"
190190
or self.config.model_type in _COMPILE_NOT_READY_MODEL_TYPES
191191
or is_ipex_version("<", _IPEX_MINIMUM_VERSION_FOR_COMPILE)
192192
or getattr(self.config, "quantization_config", None)

0 commit comments

Comments
 (0)
Please sign in to comment.