Skip to content

Commit

Permalink
Bump test torch version (#708)
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix authored May 14, 2024
1 parent abe944c commit d021798
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test_inc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
python -m pip install --upgrade pip
pip install cmake
pip install py-cpuinfo
pip install torch==2.2 torchaudio torchvision --extra-index-url https://download.pytorch.org/whl/cpu
pip install torch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 --index-url https://download.pytorch.org/whl/cpu
pip install .[neural-compressor,diffusers,tests]
pip install intel-extension-for-transformers
pip install peft
Expand All @@ -43,7 +43,7 @@ jobs:
- name: Test IPEX
run: |
pip uninstall -y intel-extension-for-transformers
pip install torch==2.1.0 torchaudio==2.1.0 torchvision==0.16 --extra-index-url https://download.pytorch.org/whl/cpu
pip install intel-extension-for-pytorch==2.1.100
pip install torch==2.3.0 torchaudio==2.3.0 torchvision==0.18 --extra-index-url https://download.pytorch.org/whl/cpu
pip install intel-extension-for-pytorch==2.3.0
pytest tests/neural_compressor/test_ipex.py
2 changes: 1 addition & 1 deletion optimum/intel/neural_compressor/modeling_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def _from_pretrained(
try:
quantization_config = PretrainedConfig.from_pretrained(model_save_dir / "quantize_config.json")
algorithm = getattr(quantization_config, "quant_method", None)
if algorithm in {"rtn", "gptq", "awq", "autoaround"}:
if algorithm in {"rtn", "gptq", "awq", "autoround"}:
from intel_extension_for_transformers.transformers.modeling.modeling_auto import (
_BaseQBitsAutoModelClass,
)
Expand Down

0 comments on commit d021798

Please sign in to comment.