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.
- Host: GitHub
- URL: https://github.com/dstalzjohn/py-poetry-m1
- Owner: dstalzjohn
- Created: 2022-01-13T07:20:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-16T12:02:06.000Z (over 3 years ago)
- Last Synced: 2025-03-24T10:12:26.230Z (over 1 year ago)
- Topics: m1, machine-learning, python, tensorflow
- Language: Makefile
- Homepage:
- Size: 65.4 KB
- Stars: 16
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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`