(base) edu@dasehenqi:~/1016$ python run-Qwen--7B-Chat-Int4.py
2023-10-18 09:58:57,923 - modelscope - INFO - PyTorch version 2.1.0 Found.
2023-10-18 09:58:57,924 - modelscope - INFO - Loading ast index from /home/edu/.cache/modelscope/ast_indexer
2023-10-18 09:58:57,994 - modelscope - INFO - Loading done! Current index file version is 1.9.2, with md5 fde1a6bc29f8f1bd96610d4b9ec5b5da and a total number of 941 components indexed
Traceback (most recent call last):
File "/home/edu/anaconda3/lib/python3.10/site-packages/requests/models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "/home/edu/anaconda3/lib/python3.10/site-packages/simplejson/init.py", line 514, in loads
return _default_decoder.decode(s)
File "/home/edu/anaconda3/lib/python3.10/site-packages/simplejson/decoder.py", line 386, in decode
obj, end = self.raw_decode(s)
File "/home/edu/anaconda3/lib/python3.10/site-packages/simplejson/decoder.py", line 416, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/edu/1016/run-Qwen--7B-Chat-Int4.py", line 2, in
model_dir = snapshot_download("qwen/Qwen-7B-Chat-Int4", revision = 'v1.1.4')
File "/home/edu/anaconda3/lib/python3.10/site-packages/modelscope/hub/snapshot_download.py", line 96, in snapshot_download
revision = _api.get_valid_revision(
File "/home/edu/anaconda3/lib/python3.10/site-packages/modelscope/hub/api.py", line 496, in get_valid_revision
revisions = self.list_model_revisions(
File "/home/edu/anaconda3/lib/python3.10/site-packages/modelscope/hub/api.py", line 449, in list_model_revisions
d = r.json()
File "/home/edu/anaconda3/lib/python3.10/site-packages/requests/models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
(base) edu@dasehenqi:~/1016$ ^C
这个错误是由于在运行Qwen-7B-Chat-Int4模型时,无法从ModelScope的服务器上获取模型的修订版本信息。这可能是由于ModelScope的服务器暂时不可用,或者网络连接有问题。
要解决这个问题,您可以采取以下几种方法之一:
ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单!欢迎加入技术交流群:微信公众号:魔搭ModelScope社区,钉钉群号:44837352