File tree 2 files changed +1
-6
lines changed
2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change 44
44
python -c "import intel_extension_for_pytorch; print(intel_extension_for_pytorch.__version__); assert intel_extension_for_pytorch.__version__.startswith('${{ matrix.torch-version }}'.replace('.*', ''))"
45
45
python -c "import transformers; print(transformers.__version__); assert transformers.__version__.startswith('${{ matrix.transformers-version }}'.replace('.*', ''))"
46
46
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
-
52
47
- name : Test with Pytest
53
48
run : |
54
49
pytest tests/ipex
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ def can_generate(self):
186
186
187
187
def maybe_apply_torch_compile (self ):
188
188
if (
189
- not self .model .device .type != "cpu"
189
+ self .model .device .type != "cpu"
190
190
or self .config .model_type in _COMPILE_NOT_READY_MODEL_TYPES
191
191
or is_ipex_version ("<" , _IPEX_MINIMUM_VERSION_FOR_COMPILE )
192
192
or getattr (self .config , "quantization_config" , None )
You can’t perform that action at this time.
0 commit comments