Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
disable qbits lib import when using gpu version itrex
Browse files Browse the repository at this point in the history
  • Loading branch information
zhewang1-intc committed Jun 14, 2024
1 parent 127692d commit 317194c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion intel_extension_for_transformers/qbits/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
# limitations under the License.

import torch
from intel_extension_for_transformers.qbits_py import * # pylint: disable=E0401, E0611
if not torch.xpu._is_compiled():
from intel_extension_for_transformers.qbits_py import * # pylint: disable=E0401, E0611

0 comments on commit 317194c

Please sign in to comment.