File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments