Skip to content

Commit 5fc78ff

Browse files
authored
Add a note about "zsh: illegal hardware instruction python" error (#555)
1 parent e9ad6cf commit 5fc78ff

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ch05/01_main-chapter-code/ch05.ipynb

+10
Original file line numberDiff line numberDiff line change
@@ -2185,6 +2185,16 @@
21852185
"id": "ff76a736-6f9f-4328-872e-f89a7b70a2cc",
21862186
"metadata": {},
21872187
"source": [
2188+
"---\n",
2189+
"\n",
2190+
"**Note**\n",
2191+
"\n",
2192+
"- In very rare cases, the code cell above may result in a `zsh: illegal hardware instruction python` error, which could be due to a TensorFlow installation issue on your machine\n",
2193+
"- A reader found that installing TensorFlow via `conda` solved the issue in this specific case, as mentioned [here](https://github.com/rasbt/LLMs-from-scratch/discussions/273#discussioncomment-12367888)\n",
2194+
"- You can find more instructions in this supplementary [Python setup tutorial](https://github.com/rasbt/LLMs-from-scratch/tree/main/setup/01_optional-python-setup-preferences#option-2-using-conda)\n",
2195+
"\n",
2196+
"---\n",
2197+
"\n",
21882198
"- We can then download the model weights for the 124 million parameter model as follows:"
21892199
]
21902200
},

0 commit comments

Comments
 (0)