Add a note about "zsh: illegal hardware instruction python" error (#555)

This commit is contained in:
Sebastian Raschka 2025-03-02 15:18:24 -06:00 committed by GitHub
parent e9ad6cf86d
commit 5fc78ff9fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2185,6 +2185,16 @@
"id": "ff76a736-6f9f-4328-872e-f89a7b70a2cc", "id": "ff76a736-6f9f-4328-872e-f89a7b70a2cc",
"metadata": {}, "metadata": {},
"source": [ "source": [
"---\n",
"\n",
"**Note**\n",
"\n",
"- 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",
"- 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",
"- 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",
"\n",
"---\n",
"\n",
"- We can then download the model weights for the 124 million parameter model as follows:" "- We can then download the model weights for the 124 million parameter model as follows:"
] ]
}, },