Conversation
|
@georghess @Eiphodos @eriklandolsi I can still keep testing this during the course to make sure that the solution is robust. |
|
@mohammad-albarham, good suggestion! If this solves your problem for now, you could just this solution throughout the course. Just note that we will make updates to master regarding HA1+2 and upcoming instructions for cloud compute, so if you have a local branch, you need to keep it in sync with master. If this solution works for you throughout all home assignments, we could merge it to master closer to the end of the course. Until then, we will direct any other students with mac that are interested to this PR. I will set a reminder to follow up in a few weeks time. (Side note: George Hess is no longer part of the course staff) |
|
@eriklandolsi Looks good to me. Thanks. |
Hej,
I have mac with mps, the current yaml files does support the m-chip mac machines.
However, I solved this but edit the file and make it appropriate for mac with m-chip. The solutions is as follows:
I have created a file called conda-environment-files/conda-environment-gpu-mac-mps.yml. Then, I have followed the same instructions to create the environment, but I have an error which was expected because of conda and pip packages. The error is as follows:
This can be solved easily by setting an environment variable to True as:
or in the python file as:
After that, I have tested the gpu and it worked well. The following code was used to test the setup:
I got the following results:
MPS is available tensor([1.], device='mps:0') Forward pass took 0.1280 seconds on mpsSo, simply we need to add the file to directory and set KMP_DUPLICATE_LIB_OK variable to True. This PR resolve #1