Update README.md
Browse files
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 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
|
158 |
```
|
159 |
-
set
|
|
|
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 |
-
|
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)
|