Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

> PermissionError: [Errno 13] Permission denied: '/data/.cache' #97

Open
gygygfg opened this issue May 6, 2023 · 1 comment
Open

> PermissionError: [Errno 13] Permission denied: '/data/.cache' #97

gygygfg opened this issue May 6, 2023 · 1 comment

Comments

@gygygfg
Copy link

gygygfg commented May 6, 2023

          > PermissionError: [Errno 13] Permission denied: '/data/.cache'

你这个问题可能是需要开启特权模式 加上--privileged

docker run -it --rm --name jittorllms --privileged -e cpu_mem_limit=8000000000 -e JT_SAVE_MEM=1 -v /tmp/data:/data registry.cn-beijing.aliyuncs.com/starlink-network/jittorllms:latest python3 cli_demo.py chatglm
你可以参考这个命令看看是否可以运行。

Originally posted by @online2311 in #33 (comment)

@gygygfg
Copy link
Author

gygygfg commented May 6, 2023

直接运行会因为在容器里找不到文件夹而覆盖掉已经下载好的模型,建议把命令改成这样
docker run -it --rm --name jittorllms
--privileged
-e cpu_mem_limit=8000000000
-e JT_SAVE_MEM=1
-v /.cache/jittor:/data/.cache/jittor
registry.cn-beijing.aliyuncs.com/starlink-network/jittorllms:latest
python3 cli_demo.py chatglm
另外我们 .cache文件夹位置也不一样,你放在/tmp/data里我习惯放在
/里

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant