An open API service indexing awesome lists of open source software.

https://github.com/dstalzjohn/py-poetry-m1

This repository contains a tutorial for using python poetry and tensorflow on a Apple M1 chip and x64/x86 system. Additionally when using the M1 chip, the power of its GPU is enabled for tensorflow.
https://github.com/dstalzjohn/py-poetry-m1

m1 machine-learning python tensorflow

Last synced: over 1 year ago
JSON representation

This repository contains a tutorial for using python poetry and tensorflow on a Apple M1 chip and x64/x86 system. Additionally when using the M1 chip, the power of its GPU is enabled for tensorflow.

Awesome Lists containing this project

README

          

# py-poetry-m1

This repository contains a tutorial for using python poetry and tensorflow on a Apple M1 chip and x64/x86 system.
Additionally when using the M1 chip, the power of its GPU is enabled for tensorflow.

## Usage with the M1 chip

- `make create_env`
- `conda activate env-tf-poet-3.10`
- `make install_m1`
- `make patch_mac_m1`
- `make run_main`

It should print `GPU enabled`

## Installation of a new package on Mac

- `poetry add `
- `make patch_mac_m1`

## Usage on x64/x86 architecture

- `make create_env`
- `conda activate env-tf-poet-3.10`
- `make install_x64`
- `make run_main`