Skip to content

Commit e6e8991

Browse files
authored
upgrade transformers to 5.1.0 (#74)
Signed-off-by: JaredforReal <w13431838023@gmail.com>
1 parent 3dbe0a2 commit e6e8991

3 files changed

Lines changed: 2 additions & 8 deletions

File tree

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ git clone https://github.com/zai-org/glm-ocr.git
4343
cd glm-ocr
4444
uv venv --python 3.12 --seed && source .venv/bin/activate
4545
uv pip install -e .
46-
47-
# Install transformers from source
48-
uv pip install git+https://github.com/huggingface/transformers.git
4946
```
5047

5148
### Model Deployment

README_zh.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ git clone https://github.com/zai-org/glm-ocr.git
4343
cd glm-ocr
4444
uv venv --python 3.12 --seed && source .venv/bin/activate
4545
uv pip install -e .
46-
47-
# 从源码安装 transformers
48-
uv pip install git+https://github.com/huggingface/transformers.git
4946
```
5047

5148
### 模型服务部署

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencies = [
3737
# Layout detection
3838
"torch>=2.0.0",
3939
"torchvision>=0.15.0",
40-
"transformers>=4.30.0",
40+
"transformers>=5.1.0",
4141
"sentencepiece>=0.1.99",
4242
"accelerate>=0.20.0",
4343
"opencv-python>=4.8.0",
@@ -53,7 +53,7 @@ dependencies = [
5353
layout = [
5454
"torch>=2.0.0",
5555
"torchvision>=0.15.0",
56-
"transformers>=4.30.0",
56+
"transformers>=5.1.0",
5757
"sentencepiece>=0.1.99",
5858
"accelerate>=0.20.0",
5959
"opencv-python>=4.8.0",

0 commit comments

Comments
 (0)