Skip to content

notebook used for testing plaidml setup on my macbook

Notifications You must be signed in to change notification settings

kennylimyx/plaidml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Plaidml macOS installation guide

Check out the full story here: https://kennylimyx.medium.com/quick-plaidml-macos-installation-guide-e1d4b9805e53

  1. Set up environment Set up a virtual environment using either venv or conda. I prefer conda

For conda, follow these steps:

  1. Open terminal

  2. type: conda create -n [insert envt name] python=3

  3. type: conda activate [inset envt name]

  4. Install plaidml (this comes with keras, but not tensorflow type: pip install plaidml-keras plaidbench

  5. Install tensorflow type: conda install tensorflow

  6. Install jupyter type: conda install jupyter labs

  7. Set up plaidml type: plaidml-setup When prompted for experimental devices, type: n When prompted for graphics card, choose whichever you like (I chose amd_radeon)

  8. launch Jupyter notebook type: jupyter notebook

  9. Import and use plaidml type: import plaidml.keras plaidml.keras.install_backend() import os os.environ["KERAS_BACKEND"] = "plaidml.keras.backend"

Once the model is compiled, you should see this: INFO:plaidml:Opening device "metal_intel(r)_hd_graphics_530.0"

Pro tip: Check GPU acitvity using activity monitor Launch activity monitor Go to window -> gpu history

About

notebook used for testing plaidml setup on my macbook

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published