File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11
11
12
12
import re
13
13
14
- import cpuinfo # type: ignore
14
+ import openvino as ov
15
15
16
16
_IS_LNL_CPU = None
17
17
18
18
19
19
def is_lnl_cpu () -> bool :
20
+ """
21
+ Checks whether current CPU is an Intel Lunar Lake generation or not.
22
+ :return: True if current CPU is an Intel Lunar Lake generation, False otherwise.
23
+ """
20
24
global _IS_LNL_CPU
21
25
if _IS_LNL_CPU is None :
22
- _IS_LNL_CPU = re .search (r"Ultra \d 2\d{2}" , cpuinfo .get_cpu_info ()["brand_raw" ]) is not None
26
+ cpu_name = ov .Core ().get_property ("CPU" , ov .properties .device .full_name )
27
+ _IS_LNL_CPU = re .search (r"Ultra \d 2\d{2}" , cpu_name ) is not None
23
28
return _IS_LNL_CPU
Original file line number Diff line number Diff line change 25
25
from nncf .common .utils .backend import is_openvino_at_least
26
26
from nncf .common .utils .caching import ResultsCache
27
27
from nncf .common .utils .caching import cache_results
28
- from nncf .common .utils .cpu_info import is_lnl_cpu
29
28
from nncf .common .utils .helpers import set_env_variable
29
+ from nncf .openvino .cpu_info import is_lnl_cpu
30
30
from nncf .openvino .graph .node_utils import convert_op
31
31
from nncf .openvino .graph .node_utils import non_convertable_divide_op
32
32
from nncf .quantization .algorithms .weight_compression .config import WeightCompressionConfig
Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ dependencies = [
43
43
" packaging>=20.0" ,
44
44
" pandas>=1.1.5,<2.3" ,
45
45
" psutil" ,
46
- " py-cpuinfo>=9.0.0" ,
47
46
" pydot>=1.4.1, <=3.0.4" ,
48
47
" pymoo>=0.6.0.1" ,
49
48
" rich>=13.5.2" ,
You can’t perform that action at this time.
0 commit comments