Fix spec error caused by lookup pr (#10777)
* Fix spec error * remove * fix style
This commit is contained in:
parent
9e5069437f
commit
766fe45222
2 changed files with 2 additions and 1 deletions
|
|
@ -594,7 +594,7 @@ def _non_cpu_ipex_verify(self, verify_input_ids, past_key_values, cur_attention_
|
||||||
"return_dict": return_dict,
|
"return_dict": return_dict,
|
||||||
"use_cache": use_cache,
|
"use_cache": use_cache,
|
||||||
}
|
}
|
||||||
if cur_attention_mask:
|
if cur_attention_mask is not None:
|
||||||
forward_args["attention_mask"] = cur_attention_mask
|
forward_args["attention_mask"] = cur_attention_mask
|
||||||
|
|
||||||
if self.config.model_type == "chatglm":
|
if self.config.model_type == "chatglm":
|
||||||
|
|
|
||||||
|
|
@ -336,6 +336,7 @@ def get_modelscope_hf_config(model_id_or_path: str,
|
||||||
local_path = model_id_or_path
|
local_path = model_id_or_path
|
||||||
return Config._file2dict(local_path)
|
return Config._file2dict(local_path)
|
||||||
|
|
||||||
|
|
||||||
def is_torch_bf16_gpu_available():
|
def is_torch_bf16_gpu_available():
|
||||||
# always true for XPU and CPU
|
# always true for XPU and CPU
|
||||||
return True
|
return True
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue