all AI news
Setup LiveBook/Elixir to run Nx lib with Torchx (with GPU) on Macbook(Apple Silicon)
March 23, 2024, 2:07 a.m. | Mạnh Vũ
DEV Community dev.to
If you want to run Elixir Nx library for machine learning on Macbook/Mac Mini/Mac Studio with Metal (GPU) for Apple Silicon you can simple follow steps.
- Setup and config Pytorch.
Install asdf if you don't have one.
Follow below script to install Python3 by asdf
asdf plugin-add python
asdf install python 3.x.x
asdf global python 3.x.x
pip3 install torch torchvision
Verify with simple Python script:
Run Python:
python
add text in Python:
import torch
x = torch.rand(5, 3)
print(x)
You …
apple apple silicon config elixir gpu install library mac macbook machine machine learning machinelearning metal plugin python3 pytorch setup silicon simple studio
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
Founding AI Engineer, Agents
@ Occam AI | New York
AI Engineer Intern, Agents
@ Occam AI | US
AI Research Scientist
@ Vara | Berlin, Germany and Remote
Data Architect
@ University of Texas at Austin | Austin, TX
Data ETL Engineer
@ University of Texas at Austin | Austin, TX
Machine Learning Engineer
@ Apple | Sunnyvale, California, United States