From a44ab32153b7a46cbbcc976da9ea6551270898ef Mon Sep 17 00:00:00 2001 From: "Jin, Qiao" <89779290+JinBridger@users.noreply.github.com> Date: Tue, 30 Jul 2024 17:08:06 +0800 Subject: [PATCH] Switch to conhost when running on NPU (#11687) --- .../example/NPU/HF-Transformers-AutoModels/LLM/README.md | 8 ++++++++ .../NPU/HF-Transformers-AutoModels/Multimodal/README.md | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/python/llm/example/NPU/HF-Transformers-AutoModels/LLM/README.md b/python/llm/example/NPU/HF-Transformers-AutoModels/LLM/README.md index f605b419..9e75a374 100644 --- a/python/llm/example/NPU/HF-Transformers-AutoModels/LLM/README.md +++ b/python/llm/example/NPU/HF-Transformers-AutoModels/LLM/README.md @@ -45,6 +45,14 @@ pip install transformers==4.40 For optimal performance, it is recommended to set several environment variables. Please check out the suggestions based on your device. #### 2.1 Configurations for Windows +> [!NOTE] +> For optimal performance, we recommend running code in `conhost` rather than Windows Terminal: +> - Press Win+R and input `conhost`, then press Enter to launch `conhost`. +> - Run following command to use conda in `conhost`. Replace `` with your conda install location. +> ``` +> call \Scripts\activate +> ``` + **Following envrionment variables are required**: ```cmd diff --git a/python/llm/example/NPU/HF-Transformers-AutoModels/Multimodal/README.md b/python/llm/example/NPU/HF-Transformers-AutoModels/Multimodal/README.md index a214a8f8..6d1c1884 100644 --- a/python/llm/example/NPU/HF-Transformers-AutoModels/Multimodal/README.md +++ b/python/llm/example/NPU/HF-Transformers-AutoModels/Multimodal/README.md @@ -35,6 +35,14 @@ pip install transformers==4.40 For optimal performance, it is recommended to set several environment variables. Please check out the suggestions based on your device. #### 2.1 Configurations for Windows +> [!NOTE] +> For optimal performance, we recommend running code in `conhost` rather than Windows Terminal: +> - Press Win+R and input `conhost`, then press Enter to launch `conhost`. +> - Run following command to use conda in `conhost`. Replace `` with your conda install location. +> ``` +> call \Scripts\activate +> ``` + **Following envrionment variables are required**: ```cmd