Switch to conhost when running on NPU (#11687)
This commit is contained in:
parent
b119825152
commit
a44ab32153
2 changed files with 16 additions and 0 deletions
|
|
@ -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 <kbd>Win</kbd>+<kbd>R</kbd> and input `conhost`, then press Enter to launch `conhost`.
|
||||
> - Run following command to use conda in `conhost`. Replace `<your conda install location>` with your conda install location.
|
||||
> ```
|
||||
> call <your conda install location>\Scripts\activate
|
||||
> ```
|
||||
|
||||
**Following envrionment variables are required**:
|
||||
|
||||
```cmd
|
||||
|
|
|
|||
|
|
@ -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 <kbd>Win</kbd>+<kbd>R</kbd> and input `conhost`, then press Enter to launch `conhost`.
|
||||
> - Run following command to use conda in `conhost`. Replace `<your conda install location>` with your conda install location.
|
||||
> ```
|
||||
> call <your conda install location>\Scripts\activate
|
||||
> ```
|
||||
|
||||
**Following envrionment variables are required**:
|
||||
|
||||
```cmd
|
||||
|
|
|
|||
Loading…
Reference in a new issue