Skip to content

Commit 094f832

Browse files
committed
add more log
Signed-off-by: yiliu30 <[email protected]>
1 parent 7d2eb53 commit 094f832

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/xturing/engines/causal.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ def __init__(
6565
elif model_name is not None:
6666
if load_8bit:
6767
use_itrex = DEFAULT_DEVICE.type == "cpu"
68-
logger.info("CUDA is not available, using CPU instead, running the model with itrex.")
6968
if use_itrex:
69+
logger.info("CUDA is not available, using CPU instead, running the model with itrex.")
7070
assert_install_itrex()
7171
# quantize model with weight-only quantization
7272
from intel_extension_for_transformers.transformers import AutoModelForCausalLM as ItrexAutoModelForCausalLM
@@ -78,6 +78,7 @@ def __init__(
7878
trust_remote_code=trust_remote_code,
7979
use_llm_runtime=False, # TODO disable llm runtime for gpt2, removed it later
8080
**kwargs)
81+
logger.info("Loaded int8 model from Itrex.")
8182
else:
8283
device_map = {"": int(os.environ.get("LOCAL_RANK") or 0)}
8384
self.model = AutoModelForCausalLM.from_pretrained(

0 commit comments

Comments
 (0)