Skip to content

Commit

Permalink
update transformers version in example of glm4 (#12453)
Browse files Browse the repository at this point in the history
* fix: update transformers version in example of glm4

* fix: textual adjustments

* fix: texual adjustment
  • Loading branch information
cranechu0131 authored Nov 27, 2024
1 parent effb9bb commit ce6fcaa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ conda activate llm
# install the latest ipex-llm nightly build with 'all' option
pip install --pre --upgrade ipex-llm[all] --extra-index-url https://download.pytorch.org/whl/cpu

# install packages required for GLM-4
pip install "tiktoken>=0.7.0" transformers==4.42.4 "trl<0.12.0"
# install packages required for GLM-4, it is recommended to use transformers>=4.44 for THUDM/glm-4-9b-chat updated after August 12, 2024
pip install "tiktoken>=0.7.0" transformers==4.44 "trl<0.12.0"
```

On Windows:
Expand Down
8 changes: 4 additions & 4 deletions python/llm/example/GPU/HuggingFace/LLM/glm4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ conda activate llm
# below command will install intel_extension_for_pytorch==2.1.10+xpu as default
pip install --pre --upgrade ipex-llm[xpu] --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/

# install packages required for GLM-4
pip install "tiktoken>=0.7.0" transformers==4.42.4 "trl<0.12.0"
# install packages required for GLM-4, it is recommended to use transformers>=4.44 for THUDM/glm-4-9b-chat updated after August 12, 2024
pip install "tiktoken>=0.7.0" transformers==4.44 "trl<0.12.0"
```

### 1.2 Installation on Windows
Expand All @@ -26,8 +26,8 @@ conda activate llm
# below command will install intel_extension_for_pytorch==2.1.10+xpu as default
pip install --pre --upgrade ipex-llm[xpu] --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/

# install packages required for GLM-4
pip install "tiktoken>=0.7.0" transformers==4.42.4 "trl<0.12.0"
# install packages required for GLM-4, it is recommended to use transformers>=4.44 for THUDM/glm-4-9b-chat updated after August 12, 2024
pip install "tiktoken>=0.7.0" transformers==4.44 "trl<0.12.0"
```

## 2. Configures OneAPI environment variables for Linux
Expand Down

0 comments on commit ce6fcaa

Please sign in to comment.