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
ModelZoo
vision_transformer_jax
Commits
91ee0bf0
Commit
91ee0bf0
authored
Sep 04, 2024
by
suily
Browse files
Update README.md
parent
d6f6bad6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
README.md
README.md
+2
-2
No files found.
README.md
View file @
91ee0bf0
...
@@ -29,7 +29,7 @@ ViT主要包括patch embeding、transformer encoder、MLP head三部分:以图
...
@@ -29,7 +29,7 @@ ViT主要包括patch embeding、transformer encoder、MLP head三部分:以图
### Docker(方法一)
### Docker(方法一)
```
```
docker pull image.sourcefind.cn:5000/dcu/admin/base/jax:0.4.23-ubuntu20.04-dtk24.04.1-py3.10
docker pull image.sourcefind.cn:5000/dcu/admin/base/jax:0.4.23-ubuntu20.04-dtk24.04.1-py3.10
docker run -it --network=host --privileged=true --name=
docker_name
--device=/dev/kfd --device=/dev/dri --group-add video --shm-size=32G --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v /path/your_code_data/:/path/your_code_data/ <imageID> /bin/bash # <imageID>为以上拉取的docker的镜像ID替换
docker run -it --network=host --privileged=true --name=
vit
--device=/dev/kfd --device=/dev/dri --group-add video --shm-size=32G --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v /path/your_code_data/:/path/your_code_data/ <imageID> /bin/bash # <imageID>为以上拉取的docker的镜像ID替换
cd /your_code_path/vision_transformer
cd /your_code_path/vision_transformer
pip install flax==0.6.9 # flax会强制安装某版本ai包
pip install flax==0.6.9 # flax会强制安装某版本ai包
...
@@ -46,7 +46,7 @@ pip install jaxlib-0.4.23+das1.1.git387bd43.abi1.dtk2404-cp310-cp310-manylinux_2
...
@@ -46,7 +46,7 @@ pip install jaxlib-0.4.23+das1.1.git387bd43.abi1.dtk2404-cp310-cp310-manylinux_2
### Dockerfile(方法二)
### Dockerfile(方法二)
```
```
docker build --no-cache -t vit:latest .
docker build --no-cache -t vit:latest .
docker run -it --network=host --privileged=true --name=
docker_name
--device=/dev/kfd --device=/dev/dri --group-add video --shm-size=32G --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v /path/your_code_data/:/path/your_code_data/ vit /bin/bash
docker run -it --network=host --privileged=true --name=
vit
--device=/dev/kfd --device=/dev/dri --group-add video --shm-size=32G --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v /path/your_code_data/:/path/your_code_data/ vit /bin/bash
cd /your_code_path/vision_transformer
cd /your_code_path/vision_transformer
pip install flax==0.6.9 # flax会强制安装某版本ai包
pip install flax==0.6.9 # flax会强制安装某版本ai包
...
...
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