Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
6ceee7cb
authored
Dec 07, 2024
by
YeYuheng
Committed by
GitHub
Dec 07, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
marker doc (#3335)
* marker doc * marker doc
parent
90d7d2a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
15 deletions
+19
-15
docSite/content/zh-cn/docs/development/custom-models/marker.md
+4
-2
python/pdf-marker/Readme.md
+15
-13
No files found.
docSite/content/zh-cn/docs/development/custom-models/marker.md
View file @
6ceee7cb
...
...
@@ -21,9 +21,11 @@ PDF 是一个相对复杂的文件格式,在 FastGPT 内置的 pdf 解析器
参考文档
[
Marker 安装教程
](
https://github.com/labring/FastGPT/tree/main/python/pdf-marker
)
,安装 Marker 模型。封装的 API 已经适配了 FastGPT 自定义解析服务。
这里介绍快速 Docker
按照
的方法:
这里介绍快速 Docker
安装
的方法:
```
```
dockerfile
docker pull crpi-h3snc261q1dosroc.cn-hangzhou.personal.cr.aliyuncs.com/marker11/marker_images:latest
docker run --gpus all -itd -p 7231:7231 --name model_pdf_v1 crpi-h3snc261q1dosroc.cn-hangzhou.personal.cr.aliyuncs.com/marker11/marker_images:latest
```
### 2. 添加 FastGPT 环境变量
...
...
python/pdf-marker/Readme.md
View file @
6ceee7cb
...
...
@@ -72,20 +72,22 @@ export PROCESSES_PER_GPU="1"
# 镜像打包和部署
## 打包镜像
在 `pdf-marker` 根目录下执行:
```
bash
sudo docker build -t model_pdf -f Dockerfile .
```
## 运行容器
```
bash
sudo docker run --gpus all -itd -p 7231:7231 --name model_pdf_v1 model_pdf
## 本地构建镜像
1. 在 `pdf-marker` 根目录下执行:
```bash
sudo docker build -t model_pdf -f Dockerfile .
```
2. 运行容器
```bash
sudo docker run --gpus all -itd -p 7231:7231 --name model_pdf_v1 model_pdf
```
## 快速构建镜像
```
dockerfile
docker pull crpi-h3snc261q1dosroc.cn-hangzhou.personal.cr.aliyuncs.com/marker11/marker_images:latest
docker run --gpus all -itd -p 7231:7231 --name model_pdf_v1 crpi-h3snc261q1dosroc.cn-hangzhou.personal.cr.aliyuncs.com/marker11/marker_images:latest
```
# 访问示例
用Post方法访问端口为 `7321 ` 的 `v1/parse/file` 服务
...
...
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