From 19260492c799900bccf065ed6ccda52b6facc0c7 Mon Sep 17 00:00:00 2001 From: Ruonan Wang Date: Fri, 23 Feb 2024 16:14:53 +0800 Subject: [PATCH] LLM: fix action/installation error of mpmath (#10223) * fix * test * fix * update --- python/llm/setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/llm/setup.py b/python/llm/setup.py index c9a89276..b9bb0317 100644 --- a/python/llm/setup.py +++ b/python/llm/setup.py @@ -268,7 +268,9 @@ def setup_package(): f'Could not find package dependency file: {file_path}') 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 # Linux install with -f https://developer.intel.com/ipex-whl-stable-xpu