intel-analytics / ipex-llm

Accelerate local LLM inference and finetuning (LLaMA, Mistral, ChatGLM, Qwen, Baichuan, Mixtral, Gemma, Phi, etc.) on Intel CPU and GPU (e.g., local PC with iGPU, discrete GPU such as Arc, Flex and Max); seamlessly integrate with llama.cpp, Ollama, HuggingFace, LangChain, LlamaIndex, DeepSpeed, vLLM, FastChat, Axolotl, etc.
Apache License 2.0
6.27k stars 1.23k forks source link

chronos #7127

Open YUKUN-XIAO opened 1 year ago

YUKUN-XIAO commented 1 year ago

Traceback (most recent call last): File "autolstm_nyc_taxi.py", line 21, in from bigdl.chronos.data import get_public_dataset ImportError: cannot import name 'get_public_dataset' from 'bigdl.chronos.data'

hkvision commented 1 year ago

@YUKUN-XIAO Thank you for raising this issue. I tested on my machine using the latest nightly build and seems can't reproduce this: image image

Could you provide more information on this? E.g. which chronos version are you using. Or can you upgrade to the latest nightly build version with pip install --pre --upgrade bigdl-chronos?

YUKUN-XIAO commented 1 year ago

@YUKUN-XIAO Thank you for raising this issue. I tested on my machine using the latest nightly build and seems can't reproduce this: image image

Could you provide more information on this? E.g. which chronos version are you using. Or can you upgrade to the latest nightly build version with pip install --pre --upgrade bigdl-chronos?

image

image

image

Traceback (most recent call last): File "autolstm_nyc_taxi.py", line 21, in from bigdl.chronos.data import get_public_dataset File "/root/miniconda3/envs/chronos_env/lib/python3.7/site-packages/bigdl/chronos/data/init.py", line 18, in from .repo_dataset import get_public_dataset, gen_synthetic_data File "/root/miniconda3/envs/chronos_env/lib/python3.7/site-packages/bigdl/chronos/data/repo_dataset.py", line 19, in from bigdl.chronos.data.utils.public_dataset import PublicDataset File "/root/miniconda3/envs/chronos_env/lib/python3.7/site-packages/bigdl/chronos/data/utils/public_dataset.py", line 20, in import requests ModuleNotFoundError: No module named 'requests'

谢谢,刚刚升级了一下,重新运行了一次,又报了错误。

hkvision commented 1 year ago

Could you pip install requests in your environment and have another try?

YUKUN-XIAO commented 1 year ago

OK, I solved it according to your method.
image

image After pip installation orca, errors will still be reported

hkvision commented 1 year ago

You need to install pip install --pre --upgrade bigdl-orca not other orca packages.

YUKUN-XIAO commented 1 year ago

You need to install pip install --pre --upgrade bigdl-orca not other orca packages.

image

Do I need to run pip install -- pre -- upgrade ray or pip install -- pre -- upgrade ray[tune]

hkvision commented 1 year ago

You can pip install --pre --upgrade bigdl-orca[automl] This command will install ray and related dependencies.

YUKUN-XIAO commented 1 year ago

You can pip install --pre --upgrade bigdl-orca[automl] This command will install ray and related dependencies. image image

Do I need to install Java

hkvision commented 1 year ago

Yes, you can follow the instructions here to install java: https://bigdl.readthedocs.io/en/latest/doc/Orca/Overview/install.html#install-java

YUKUN-XIAO commented 1 year ago

Yes, you can follow the instructions here to install java: https://bigdl.readthedocs.io/en/latest/doc/Orca/Overview/install.html#install-java

image I run this command pip install pytorch_lightning -i http://pypi.douban.com/simple --trusted-host pypi.douban.com to solve the problem

YUKUN-XIAO commented 1 year ago

Yes, you can follow the instructions here to install java: https://bigdl.readthedocs.io/en/latest/doc/Orca/Overview/install.html#install-java

image I run this command pip install pytorch_lightning -i http://pypi.douban.com/simple --trusted-host pypi.douban.com to solve the problem

image

A new problem has arisen

jason-dai commented 1 year ago

To install Chronos, I would suggest you follow the guide at https://bigdl.readthedocs.io/en/latest/doc/Chronos/Overview/install.html.

(You may need to install Java as described at https://bigdl.readthedocs.io/en/latest/doc/UserGuide/python.html#install).

YUKUN-XIAO commented 1 year ago

To install Chronos, I would suggest you follow the guide at https://bigdl.readthedocs.io/en/latest/doc/Chronos/Overview/install.html.

(You may need to install Java as described at https://bigdl.readthedocs.io/en/latest/doc/UserGuide/python.html#install).

thank you

YUKUN-XIAO commented 1 year ago

Can chronos run on the ray cluster I built myself ?