在安装 xinference cpu版本之后, 在下载向量模型, 重排序模型的时候踩坑记录
docker run -e XINFERENCE_MODEL_SRC=modelscope -p 9998:9997 docker.1ms.run/xprobe/xinference:v1.3.1-cpu xinference-local -H 0.0.0.0 --log-level debug
官方镜像bug: 需要手动升级
RuntimeError: [address=0.0.0.0:40921, pid=32] Failed to import transformers.models.timm_wrapper.configuration_timm_wrapper because of the following error (look up to see its traceback): cannot import name 'ImageNetInfo' from 'timm.data' (/opt/conda/lib/python3.11/site-packages/timm/data/__init__.py)
进入容器手动安装 timm
docker exec -it ${id} /bin/bash
pip install timm==1.0.13