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

Docker 运行 JittorLLMs #33

Closed
online2311 opened this issue Apr 7, 2023 · 4 comments
Closed

Docker 运行 JittorLLMs #33

online2311 opened this issue Apr 7, 2023 · 4 comments

Comments

@online2311
Copy link

online2311 commented Apr 7, 2023

一键运行 JittorLLMs

docker run -it --rm --name jittorllms -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 

CPU 跑 chatglm 模型 限制最大占用8G内存,cpu_mem_limit 限制内存使用量。

@cjld
Copy link
Contributor

cjld commented Apr 7, 2023

还需要设置JT_SAVE_MEM=1

@online2311
Copy link
Author

已更正

@show1abc
Copy link

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

@online2311
Copy link
Author

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
你可以参考这个命令看看是否可以运行。

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

3 participants