LLM: fix action/installation error of mpmath (#10223)

* fix

* test

* fix

* update
This commit is contained in:
Ruonan Wang 2024-02-23 16:14:53 +08:00 committed by GitHub
parent aabfc06977
commit 19260492c7

View file

@ -268,7 +268,9 @@ def setup_package():
f'Could not find package dependency file: {file_path}') f'Could not find package dependency file: {file_path}')
all_requires = ['py-cpuinfo', 'protobuf', all_requires = ['py-cpuinfo', 'protobuf',
"intel-openmp; (platform_machine=='x86_64' or platform_machine == 'AMD64')"] "intel-openmp; (platform_machine=='x86_64' or platform_machine == 'AMD64')",
'mpmath==1.3.0' # fix AttributeError: module 'mpmath' has no attribute 'rational'
]
all_requires += CONVERT_DEP all_requires += CONVERT_DEP
# Linux install with -f https://developer.intel.com/ipex-whl-stable-xpu # Linux install with -f https://developer.intel.com/ipex-whl-stable-xpu