FlagAI icon indicating copy to clipboard operation
FlagAI copied to clipboard

AquliaChat-7B v0.6 download via baai-modelhub failed

Open sammysun0711 opened this issue 2 years ago • 1 comments

System Info

Hi, I try to use baai-modelhub pypi package to download AquliaChat-7B v0.6 via pipeline as suggested here: Error message:

Traceback (most recent call last):
  File "download.py", line 5, in <module>
    auto_pull.get_model(model_name='AquilaChat-7B', model_save_path='./checkpoints/')
  File "/home/openvino/anaconda3/envs/py38/lib/python3.8/site-packages/baai_modelhub/client.py", line 144, in get_model
    texts=obtain_file_lists(model_id,
  File "/home/openvino/anaconda3/envs/py38/lib/python3.8/site-packages/baai_modelhub/client.py", line 126, in obtain_file_lists
    texts=json.loads(response.text)
  File "/home/openvino/anaconda3/envs/py38/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/home/openvino/anaconda3/envs/py38/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/home/openvino/anaconda3/envs/py38/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Here is my python environment

python                3.8.12
flagai                1.7.3
baai-modelhub                0.0.13
fastjsonschema                2.15.3
jsonlines                3.1.0
jsonpointer                2.3
jsonschema                4.17.3
python-json-logger                2.0.7

Please kindly help to check this issue, thanks!

Information

  • [X] The official example scripts
  • [ ] My own modified scripts

Tasks

  • [X] An officially supported task in the examples folder (such as T5/AltCLIP, ...)
  • [ ] My own task or dataset (give details below)

Reproduction

from baai_modelhub import AutoPull
auto_pull = AutoPull()
auto_pull.get_model(model_name='AquilaChat-7B', model_save_path='./checkpoints/' )

Expected behavior

Expect AquilaChat-7B model and configurations will be save in ./checkpoints directory

sammysun0711 avatar Jun 29 '23 02:06 sammysun0711

you can download all model files manually from https://model.baai.ac.cn/model-detail/100101. And put them in ./checkpoints_in/aquilachat_7b/ dir.

ftgreat avatar Jul 09 '23 12:07 ftgreat

baai-modelhub is no longer supported

Anhforth avatar Jul 12 '23 06:07 Anhforth