From 11650b6f8183aa6f83735b1769f5091aaa93590a Mon Sep 17 00:00:00 2001 From: "Jin, Qiao" <89779290+JinBridger@users.noreply.github.com> Date: Tue, 6 Aug 2024 14:55:09 +0800 Subject: [PATCH] upgrade glm-4v example transformers version (#11719) --- .../CPU/HF-Transformers-AutoModels/Model/glm-4v/README.md | 4 ++-- .../llm/example/GPU/HuggingFace/Multimodal/glm-4v/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/llm/example/CPU/HF-Transformers-AutoModels/Model/glm-4v/README.md b/python/llm/example/CPU/HF-Transformers-AutoModels/Model/glm-4v/README.md index cd5a5cb90d3..0bf8584a5c9 100644 --- a/python/llm/example/CPU/HF-Transformers-AutoModels/Model/glm-4v/README.md +++ b/python/llm/example/CPU/HF-Transformers-AutoModels/Model/glm-4v/README.md @@ -19,7 +19,7 @@ conda activate llm # install ipex-llm with 'all' option pip install --pre --upgrade ipex-llm[all] --extra-index-url https://download.pytorch.org/whl/cpu -pip install torchvision tiktoken +pip install torchvision tiktoken transformers==4.42.4 trl ``` On Windows: @@ -30,7 +30,7 @@ conda activate llm pip install --pre --upgrade ipex-llm[all] -pip install torchvision tiktoken +pip install torchvision tiktoken transformers==4.42.4 trl ``` ### 2. Run diff --git a/python/llm/example/GPU/HuggingFace/Multimodal/glm-4v/README.md b/python/llm/example/GPU/HuggingFace/Multimodal/glm-4v/README.md index d976b51ea1a..b4fc7341a27 100644 --- a/python/llm/example/GPU/HuggingFace/Multimodal/glm-4v/README.md +++ b/python/llm/example/GPU/HuggingFace/Multimodal/glm-4v/README.md @@ -15,7 +15,7 @@ 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/ -pip install tiktoken +pip install tiktoken transformers==4.42.4 trl ``` #### 1.2 Installation on Windows @@ -27,7 +27,7 @@ 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/ -pip install tiktoken +pip install tiktoken transformers==4.42.4 trl ``` ### 2. Configures OneAPI environment variables for Linux