ModelScope这个报错咋解决呢?2024-06-07 22:29:53,751 - modelscope - INFO - PyTorch version 2.3.0+cpu Found.
2024-06-07 22:29:53,752 - modelscope - INFO - Loading ast index from /mnt/workspace/.cache/modelscope/ast_indexer
2024-06-07 22:29:53,782 - modelscope - INFO - Loading done! Current index file version is 1.15.0, with md5 eccbdad6389abeac8790b84f257211fb and a total number of 980 components indexed
/usr/local/lib/python3.10/site-packages/beartype/_util/error/utilerrwarn.py:67: BeartypeModuleUnimportableWarning: Ignoring module "onnx" importation exception:
ImportError: cannot import name 'builder' from 'google.protobuf.internal' (/usr/local/lib/python3.10/site-packages/google/protobuf/internal/init.py)
warn(message, cls)
/usr/local/lib/python3.10/site-packages/beartype/_util/error/utilerrwarn.py:67: BeartypeModuleUnimportableWarning: Ignoring module "onnx" importation exception:
ImportError: cannot import name 'builder' from 'google.protobuf.internal' (/usr/local/lib/python3.10/site-packages/google/protobuf/internal/init.py)
warn(message, cls)
WARNING: Skipping tensorflow as it is not installed.
WARNING: Skipping tensorflow-estimator as it is not installed.
WARNING: Skipping tensorflow-io-gcs-filesystem as it is not installed.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Downloading model qwen/Qwen2-7B-Instruct (revision: master) from modelscope
Save model to path /mnt/workspace/.cache/modelscope/hub/qwen/Qwen2-7B-Instruct
WARNING: Logging before InitGoogleLogging() is written to STDERR
I20240607 22:29:59.388923 4479 thread_pool.h:46] ThreadPool created with: 1
I20240607 22:29:59.389127 4479 as_engine.cpp:232] AllSpark Init with Version: 1.1.0/(GitSha1:1b9b010c-dirty)
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
E20240607 22:29:59.579154 4479 as_engine.cpp:927] workers is empty
Loading checkpoint shards: 100%|███████████████████████████████████████████████████████████████████| 4/4 [00:24<00:00, 6.14s/it]
trans model from huggingface model: /mnt/workspace/.cache/modelscope/hub/qwen/Qwen2-7B-Instruct
Dashinfer model will save to ./dashinfer_models/
save dimodel to ./dashinfer_models/Qwen2-7B-Instruct_cpu_single_float32.dimodel
save ditensors to ./dashinfer_models/Qwen2-7B-Instruct_cpu_single_float32.ditensors
已杀死
换个小一些的模型,https://www.modelscope.cn/studios/dash-infer/Qwen2-7B-Instruct-DashInfer-Demo/file/view/master?fileName=di_config.json&status=1 ,此回答整理自钉群“魔搭ModelScope开发者联盟群 ①”
ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单!欢迎加入技术交流群:微信公众号:魔搭ModelScope社区,钉钉群号:44837352