File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,9 +43,6 @@ git clone https://github.com/zai-org/glm-ocr.git
4343cd glm-ocr
4444uv venv --python 3.12 --seed && source .venv/bin/activate
4545uv 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
Original file line number Diff line number Diff line change @@ -43,9 +43,6 @@ git clone https://github.com/zai-org/glm-ocr.git
4343cd glm-ocr
4444uv venv --python 3.12 --seed && source .venv/bin/activate
4545uv pip install -e .
46-
47- # 从源码安装 transformers
48- uv pip install git+https://github.com/huggingface/transformers.git
4946```
5047
5148### 模型服务部署
Original file line number Diff line number Diff 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 = [
5353layout = [
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" ,
You can’t perform that action at this time.
0 commit comments