Comments (7)
Yes, you will need GPU acceleration which is supported by PyTorch for M1 chips as well. You can install PyTorch by following this guide https://developer.apple.com/metal/pytorch/. Then just install the requirements:
pip install -r assignment3/requirements.txt
from cs231n.
thanks~
from cs231n.
What should I do additionally? Only comment out the code about google colab?
from cs231n.
You should also do the following changes in the files that actually use GPU acceleration:
- In
Generative_Adversarial_Networks.ipynb
, whenever.type(dtype)
is called, change that to.to(device="mps")
- In
Self_Supervised_Learning.ipynb
change the final line in the 4th code cell:# device = torch.device("cuda" if torch.cuda.is_available() else "cpu") device = torch.device("mps" if torch.backends.mps.is_available() else "cpu")
from cs231n.
Is that all I need to do?
from cs231n.
I can't confirm since I don't have Apple M1. It should be all but if you encounter any issues let me know.
from cs231n.
I can't confirm since I don't have Apple M1. It should be all but if you encounter any issues let me know.
thanks a lot~
from cs231n.
Related Issues (12)
- softmax_loss derivative -1 subtraction HOT 2
- I think Inline question 2 is False
- Regarding eval_numerical_gradient_array HOT 6
- Output of dropout notebook (assignment 2) seems wrong HOT 1
- Assignment1 knn Inline question 2 is incorrect HOT 2
- The problem in the conv_backward_naive HOT 2
- can not get the relative error which is less than e-3. HOT 14
- "two_layer_net.ipynb" Solver section default setting problem HOT 1
- Assignment2/cs231n/layers.py line 482: "np.random.rand" rather than "np.random.randn" HOT 1
- KNN, Inline Q2 Rotation. HOT 1
- svm_loss_vectorized Derivative HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cs231n.