dahara1 commited on
Commit
167d34d
1 Parent(s): 20db798

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +19 -3
README.md CHANGED
@@ -153,15 +153,31 @@ This may not be necessary, but just to be sure
153
 
154
  After creating the Z drive and compiling, delete the Z drive before running the script. Otherwise, an error will occur if the module cannot be found.
155
 
156
- - Add PYTHONPATH manually in your CMD window.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
 
158
  ```
159
- set PYTHONPATH=%PYTHONPATH%;%PYTORCH_AIE_PATH%\tools;%PYTORCH_AIE_PATH%\ops\python;%PYTORCH_AIE_PATH%\models\llm\chatglm3;%PYTORCH_AIE_PATH%\ext\llm-awq\awq\quantize;%PYTORCH_AIE_PATH%\ext\smoothquant\smoothquant;%PYTORCH_AIE_PATH%\ext\llm-awq\awq\utils
 
160
  ```
161
 
162
  - Copy [modeling_llama_amd.py](https://github.com/amd/RyzenAI-SW/blob/1.1/example/transformers/models/llama2/modeling_llama_amd.py) from the version1.1 tree
163
 
164
- Please set the appropriate runtime type for 1.2. There are no changes to the model download and sample scripts.
165
  Good luck.
166
 
167
  ![chat_image](trans-sample.png)
 
153
 
154
  After creating the Z drive and compiling, delete the Z drive before running the script. Otherwise, an error will occur if the module cannot be found.
155
 
156
+ - Exit the CMD and restart it.
157
+
158
+ - Enable the conda environment
159
+
160
+ ```
161
+ conda activate ryzenai-transformers
162
+ ```
163
+
164
+ - cd and then run setup.bat
165
+
166
+ ```
167
+ cd <your_RyzenA-SW_install_pat>\RyzenAI-SW\example\transformers
168
+ .\setup_phx.bat
169
+ ```
170
+
171
+ - Set the environment variables. The batch file you should run will differ depending on the CPU you are using, so please refer to the [official instructions](https://ryzenai.docs.amd.com/en/latest/runtime_setup.html).
172
 
173
  ```
174
+ set XLNX_VART_FIRMWARE=%RYZEN_AI_INSTALLATION_PATH%\voe-4.0-win_amd64\xclbins\phoenix\1x4.xclbin
175
+ set XLNX_TARGET_NAME=AMD_AIE2_Nx4_Overlay
176
  ```
177
 
178
  - Copy [modeling_llama_amd.py](https://github.com/amd/RyzenAI-SW/blob/1.1/example/transformers/models/llama2/modeling_llama_amd.py) from the version1.1 tree
179
 
180
+ There are no changes to the model download and sample scripts.
181
  Good luck.
182
 
183
  ![chat_image](trans-sample.png)