Skip to content

Commit

Permalink
fix backend not ipex (#930)
Browse files Browse the repository at this point in the history
* set env to DEBUG

* add logs

* fix backend not ipex
  • Loading branch information
CSY-ModelCloud authored Dec 19, 2024
1 parent fa7929b commit 1e1e3b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ on:
default: '10'

env:
DEBUG: 1
CUDA_DEVICE_ORDER: PCI_BUS_ID
CUDA_VISIBLE_DEVICES: 0
TORCH_CUDA_ARCH_LIST: '8.9'
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ipex_xpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test(self):
)
tokenizer = self.load_tokenizer(self.NATIVE_MODEL_ID)
calibration_dataset = self.load_dataset(tokenizer)
origin_model.quantize(calibration_dataset)
origin_model.quantize(calibration_dataset, backend=BACKEND.IPEX)
with tempfile.TemporaryDirectory() as tmpdir:
origin_model.save(tmpdir)

Expand Down

0 comments on commit 1e1e3b6

Please sign in to comment.