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
olmocr_pytorch
Commits
de227db3
"git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "519e27978fac02fe97d27fee4db9e3f3860949da"
Commit
de227db3
authored
Mar 21, 2025
by
wanglch
Browse files
Update README.md
parent
14067dbf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
README.md
README.md
+19
-2
No files found.
README.md
View file @
de227db3
...
@@ -32,9 +32,16 @@ docker pull image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.3.0-py3.10-dtk24.0
...
@@ -32,9 +32,16 @@ docker pull image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.3.0-py3.10-dtk24.0
docker run -it --shm-size=1024G -v /path/your_code_data/:/path/your_code_data/ -v /opt/hyhal:/opt/hyhal --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video --name olmocr <your IMAGE ID> bash # <your IMAGE ID>为以上拉取的docker的镜像ID替换
docker run -it --shm-size=1024G -v /path/your_code_data/:/path/your_code_data/ -v /opt/hyhal:/opt/hyhal --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video --name olmocr <your IMAGE ID> bash # <your IMAGE ID>为以上拉取的docker的镜像ID替换
cd /path/your_code_data/
cd /path/your_code_data/
sudo apt-get update
sudo apt-get install poppler-utils ttf-mscorefonts-installer msttcorefonts fonts-crosextra-caladea fonts-crosextra-carlito gsfonts lcdf-typetools
pip install olmocr
pip install olmocr
pip install transformers==4.46.3
pip install transformers==4.46.3
pip unintall torchvision
pip install torchvision
```
```
Tips:以上dtk驱动、python、torch等DCU相关工具版本需要严格一一对应。
Tips:以上dtk驱动、python、torch等DCU相关工具版本需要严格一一对应。
### Dockerfile(方法二)
### Dockerfile(方法二)
...
@@ -43,11 +50,15 @@ Tips:以上dtk驱动、python、torch等DCU相关工具版本需要严格一一
...
@@ -43,11 +50,15 @@ Tips:以上dtk驱动、python、torch等DCU相关工具版本需要严格一一
docker build -t olmocr:latest .
docker build -t olmocr:latest .
docker run --shm-size 500g --network=host --name=olmocr --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 run --shm-size 500g --network=host --name=olmocr --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
sudo apt-get update
sudo apt-get install poppler-utils ttf-mscorefonts-installer msttcorefonts fonts-crosextra-caladea fonts-crosextra-carlito gsfonts lcdf-typetools
cd /path/your_code_data/
cd /path/your_code_data/
pip install olmocr
pip install olmocr
pip install transformers==4.46.3
pip install transformers==4.46.3
pip unintall torchvision
pip install torchvision
```
```
### Anaconda(方法三)
### Anaconda(方法三)
此处提供本地配置、编译的详细步骤,例如:
此处提供本地配置、编译的详细步骤,例如:
...
@@ -56,7 +67,7 @@ pip install transformers==4.46.3
...
@@ -56,7 +67,7 @@ pip install transformers==4.46.3
```
```
DTK驱动:dtk24.04.3
DTK驱动:dtk24.04.3
python:3.10
python:3.10
torch:2.
3
.0
torch:2.
6
.0
flash-attn:2.6.1
flash-attn:2.6.1
```
```
`Tips:以上dtk驱动、python、torch等DCU相关工具版本需要严格一一对应`
`Tips:以上dtk驱动、python、torch等DCU相关工具版本需要严格一一对应`
...
@@ -67,10 +78,16 @@ conda create -n olmocr python=3.10
...
@@ -67,10 +78,16 @@ conda create -n olmocr python=3.10
conda activate olmocr
conda activate olmocr
sudo apt-get update
sudo apt-get install poppler-utils ttf-mscorefonts-installer msttcorefonts fonts-crosextra-caladea fonts-crosextra-carlito gsfonts lcdf-typetools
cd /path/your_code_data/
cd /path/your_code_data/
pip install olmocr
pip install olmocr
pip install transformers==4.46.3
pip install transformers==4.46.3
pip unintall torchvision
pip install torchvision
```
```
## 数据集
## 数据集
...
...
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