环境:
Docker version 20.10.8, build 3967b7d
win10 wsl Docker DeskTop
ubuntu22.04-py310-torch2.1.2-tf2.14.0-1.12.0
from modelscope import snapshot_download
model_dir = snapshot_download('iic/nlp_structbert_word-segmentation_chinese-base-ecommerce')
python test.py
OpenBLAS blas_thread_init: pthread_create failed for thread 1 of 12: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 2 of 12: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 3 of 12: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
增加这个参数启动
–-privileged=true 成功了
ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单!欢迎加入技术交流群:微信公众号:魔搭ModelScope社区,钉钉群号:44837352