Skip to content

Commit

Permalink
Upgrade glm-4 example transformers version (intel#11659)
Browse files Browse the repository at this point in the history
* upgrade glm-4 example transformers version

* move pip install in one line
  • Loading branch information
JinBridger authored Jul 31, 2024
1 parent a44ab32 commit 6e3ce28
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 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 tiktoken required for GLM-4
pip install "tiktoken>=0.7.0"
# install packages required for GLM-4
pip install "tiktoken>=0.7.0" transformers==4.42.4 trl
```

On Windows:
Expand All @@ -29,7 +29,7 @@ conda activate llm
pip install --pre --upgrade ipex-llm[all]
pip install "tiktoken>=0.7.0"
pip install "tiktoken>=0.7.0" transformers==4.42.4 trl
```

## 2. Run
Expand Down
6 changes: 3 additions & 3 deletions python/llm/example/CPU/PyTorch-Models/Model/glm4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,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 tiktoken required for GLM-4
pip install "tiktoken>=0.7.0"
# install packages required for GLM-4
pip install "tiktoken>=0.7.0" transformers==4.42.4 trl
```

On Windows:
Expand All @@ -32,7 +32,7 @@ conda activate llm
pip install --pre --upgrade ipex-llm[all]
pip install "tiktoken>=0.7.0"
pip install "tiktoken>=0.7.0" transformers==4.42.4 trl
```

### 2. Run
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 tiktoken required for GLM-4
pip install "tiktoken>=0.7.0"
# install packages required for GLM-4
pip install "tiktoken>=0.7.0" transformers==4.42.4 trl
```

### 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 tiktoken required for GLM-4
pip install "tiktoken>=0.7.0"
# install packages required for GLM-4
pip install "tiktoken>=0.7.0" transformers==4.42.4 trl
```

## 2. Configures OneAPI environment variables for Linux
Expand Down
8 changes: 4 additions & 4 deletions python/llm/example/GPU/PyTorch-Models/Model/glm4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,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 tiktoken required for GLM-4
pip install "tiktoken>=0.7.0"
# install packages required for GLM-4
pip install "tiktoken>=0.7.0" transformers==4.42.4 trl
```

#### 1.2 Installation on Windows
Expand All @@ -28,8 +28,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 tiktoken required for GLM-4
pip install "tiktoken>=0.7.0"
# install packages required for GLM-4
pip install "tiktoken>=0.7.0" transformers==4.42.4 trl
```

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

0 comments on commit 6e3ce28

Please sign in to comment.