Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
32ac7d29
You need to sign in or sign up before continuing.
Commit
32ac7d29
authored
Jul 10, 2024
by
mashun1
Browse files
Update README.md
parent
86c7d215
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
README.md
README.md
+10
-8
No files found.
README.md
View file @
32ac7d29
...
...
@@ -2,21 +2,23 @@
## 安装
###
环境准备
###
本仓库
#### Docker
本仓库仅提供代码修改时的参考,请勿直接使用,官方版本0.1.43已测可用。
本仓库也提供了已测试通过的
`Dockerfile`
(Z100),在
`ollama_build.zip`
中,如需适配其他平台需要按照下述文档对
`Dockerfile`
进行修改,主要为
`AMDGPU_TARGETS=当前设备型号(如:gfx906,gfx928等);HSA_OVERRIDE_GFX_VERSION=设备型号(如: gfx906对应9.0.6;gfx928对应9.2.8)`
。
docker pull image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.1.0-centos7.6-dtk24.04-py310
直接下载本仓库中的
`ollama_build.zip`
并修改其中的Dockerfile(遵循上述描述),然后执行
`docker build xxxxx`
相关命令(具体需自行查阅相关资料)。
docker run --shm-size 30g --network=host --name=ollama --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v 项目地址(绝对路径):/home/ -v /opt/hyhal:/opt/hyhal:ro -it <your IMAGE ID> bash
### 官方版本下载及修改
#### 环境准备
###
本仓库
###
## Docker
本仓库仅提供代码修改时的参考,请勿直接使用,官方版本0.1.43已测可用。
本仓库也提供了已测试通过的
`Dockerfile`
(Z100),在
`ollama_build.zip`
中,如需适配其他平台需要按照下述文档对
`Dockerfile`
进行修改,主要为
`AMDGPU_TARGETS=当前设备型号(如:gfx906,gfx928等);HSA_OVERRIDE_GFX_VERSION=设备型号(如: gfx906对应9.0.6;gfx928对应9.2.8)`
。
docker pull image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.1.0-centos7.6-dtk24.04-py310
docker run --shm-size 30g --network=host --name=ollama --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v 项目地址(绝对路径):/home/ -v /opt/hyhal:/opt/hyhal:ro -it <your IMAGE ID> bash
### 官方版本下载及修改
1、下载源码
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment