Thanks for this. Some users might want to keep in mind that there are two branches for the git repo probably a bit different for pytorch and tensorflow. Therefore check before cloning. PS: Just ordered the textbook. Looking forward to learning from it :)
Thank you! this got me started but then I kept getting a syntax error when I tried to install Jupyter notebook. I couldn't find the solution on Google so I finally gave ChatGPT a try. I gave it the prompt and copy and pasted the errors I was getting and it walked me through several reasons why it may be happening with the solutions. Essentially, I installed a new environment and installed Jupyter in the new environment and updated Conda. I am very new to all of this so it was like having a personal tutor next to me!
Thank you, this was so helpful! It worked perfectly :) Just one suggestion, you could update the version of python installed from 3.9 to to 3.10 in the .yml file in your git repo.
please help.. I have done all these operations. also my code is suitable for gpu but model still takes too long to run. And no result is returned. One mistake or one score. Why could it be? I have macbook pro m2 processor.
For torch.cuda.device_count() it says 0 and torch.cuda.is_available() it says false, the model that I want to use need GPU to train and it checks these commands, I tried running it on tensorflow env too ( the one that you taught how to create). what should I do?
After cloning the repo when I'm trying to run this command I'm getting this, why is that? "SpecNotFound: Invalid name 'torch', try the format: user/package"
Thanks a lot Professor. If I may ask this question: I am going for a machine learning laptop and juggling between the choice of a MACbook pro or a Windows GPU laptop. Want a macbook, if it is as good for deep learning projects. Is it? Thanks.
I am trying to create this and my pip.conf file has some problem. then I have to fix that first. But when I come back when I install this again, I experienced some error. it might be better to tell how to quite the failed install and retry it. currently I am simply try to delete the env and redo it one more time, not sure whether it is a good solution or not.
Hi Professor, I installed the pytorch as you instruct. But I cannot rename in the jupyter notebook. The error shows: "NameError: name 'os_path' is not defined". Can you help me with this?
So I tried to use full fat anaconda to intall pytorch with the metal API and it just didn't work, however when I switched over to a fresh mini conda installation it worked fine.
Getting a message, although not an error ~ conda activate torch path/miniconda3/envs/torch/etc/conda/activate.d/libxml2_activate.sh:export:12: not valid in this context: XML_CATALOG_FILES+
Thank you very much! Finally a video straight to the point and clearly explains everything. So helpful. Really Appreciate it.
Very helpful. The most helpful resource I found online on this topic.
Learning directly from Jeff Heaton himself, awesome!
Thanks for this. Some users might want to keep in mind that there are two branches for the git repo probably a bit different for pytorch and tensorflow. Therefore check before cloning. PS: Just ordered the textbook. Looking forward to learning from it :)
Thank you! this got me started but then I kept getting a syntax error when I tried to install Jupyter notebook. I couldn't find the solution on Google so I finally gave ChatGPT a try. I gave it the prompt and copy and pasted the errors I was getting and it walked me through several reasons why it may be happening with the solutions. Essentially, I installed a new environment and installed Jupyter in the new environment and updated Conda. I am very new to all of this so it was like having a personal tutor next to me!
as usual, life saver for all of us mac users
Hi Thanks a lot. This command worked for me: conda install pytorch::pytorch torchvision torchaudio -c pytorch
Wow Clear instruction. Thanks a lot Jeff
Once again, thanks Jeff !
I don't know how we could do without you !
Cheers
Thanks a lot. It helped me to set up a torch env on my M1 Mac. It drove me crazy.
Thanks.
With this it was easy peasy!
Thank you so much, that was really helpful
thanks - great video - very little out there to set up for M1 macs that is simple and straight forward
Thank you Porfessor, this really helps!
Jeff thank you for all ı got it
Thank you for the easy to follow instructions.
Thank you, this was so helpful! It worked perfectly :)
Just one suggestion, you could update the version of python installed from 3.9 to to 3.10 in the .yml file in your git repo.
You're doing the lord's work, thanks
thx professior, ran the first ai program on my mac!
Thanks so much for doing this!
Hello professor, How can I install pytorch and cv2 in the same environment which contains tensorflow?
great video professor!
please help.. I have done all these operations. also my code is suitable for gpu but model still takes too long to run. And no result is returned. One mistake or one score. Why could it be? I have macbook pro m2 processor.
For torch.cuda.device_count() it says 0 and torch.cuda.is_available() it says false, the model that I want to use need GPU to train and it checks these commands, I tried running it on tensorflow env too ( the one that you taught how to create). what should I do?
After cloning the repo when I'm trying to run this command I'm getting this, why is that? "SpecNotFound: Invalid name 'torch', try the format: user/package"
check that you are loading the correct ( .yml) file in the root of your project.
Thanks a lot Professor.
If I may ask this question: I am going for a machine learning laptop and juggling between the choice of a MACbook pro or a Windows GPU laptop. Want a macbook, if it is as good for deep learning projects. Is it? Thanks.
I am trying to create this and my pip.conf file has some problem. then I have to fix that first. But when I come back when I install this again, I experienced some error. it might be better to tell how to quite the failed install and retry it. currently I am simply try to delete the env and redo it one more time, not sure whether it is a good solution or not.
Hi Professor, I installed the pytorch as you instruct. But I cannot rename in the jupyter notebook. The error shows: "NameError: name 'os_path' is not defined". Can you help me with this?
Hello Professor, I'm trying to install mini conda3 on macOS Ventura 13.1 but I get an error (not supported). but anaconda can run well
not install in my macbook pro m1 max there show msg Mac OS not compatibility. what can i do?
Repository shared in the description isn't available
im still unclear, does this mean i can use libraries written for nvidia gpu on my m1 mac?
Hello, how to make mac m1 use more gpu when training, my mac only use 15-20% gpu even i used coreml
Thank you professor, could you give a suggestion about how much ram is needed for ML or DL, for apple slicon 8, 16, 32 or even 64?
Which is good according to you sir MacBook Air M1 or any windows laptop for programming
So I tried to use full fat anaconda to intall pytorch with the metal API and it just didn't work, however when I switched over to a fresh mini conda installation it worked fine.
Thank you!
Can you add egpu RTX 30 or 40 series and it showing GPU available ?
Hi there,
Thnaks for the video!
has_mps is deprecated.
Also, is there any workaround to use CUDA on a mac M1 ?
Thanks !
Can I just use the pip to install PyTorch on MacBook Air with M2?
Have you figured out how to do quantization for M1 like what the bitsandbytes pypi module does? Cheers!
At 1:49 : the clean up removed python but when I hit python3 , its still there
thanks!
Is there any downside in combining both your tensorflow and PyTorch into a single tank file and environment ? Thank you!
Don't know, but thinking about doing the same.
yup i need the same. @thomasengland1701 @@stack-dhruv
by this will yolo use gpu in m1 mac?
Where can I access the yml file now. It is not available at the given link.
Sorry about that, link updated.
where is the yml link?
Professor, I can not find this ipynb in your Github. Do you delete that?
Link in the description, and here: github.com/jeffheaton/t81_558_deep_learning/blob/pytorch/install/pytorch-install-aug-2022.ipynb
Is there any chance someone could share the .yml file? I can't seem to find it in the repo
did you end up finding the yml?
Thank you for this good tutorial, but I can't find the yml file for the PyTorch installation
me too. where is .yml file for the PyTorch installation?
Hi professor, will this work on miniforge as well? Thank you.
Tell me your questions and I'll answer them
Hi, where is the .yml file?
same issue
download his git repo rather than cloning you will find yml file in the install directory then.
I do not see "torch-conda-nightly.yml " anywhere.
same here
see the comment below your from Phil Hamilton
(I'm referring to the video at 5:50)
By the way, Anaconda has been update for ARM; so I'm not sure that there's still a reason to use Miniconda.
do you have videos on how we can use the M2 on Mac, with PyTorch?
I think it's a similar procedure for the M2
wheres the yac file?
You are my angel
Why can't I find "torch-conda-nightly.yml" file
I don't see it either. WIll try with torch-conda.yml from the repo.
how do you run the yml file?
i couldn't do that either, could you figure out?
Yah, Wash U!
You just wasted my time I can't find the yml file and everyone seems to be having the same issue.
Getting a message, although not an error
~ conda activate torch
path/miniconda3/envs/torch/etc/conda/activate.d/libxml2_activate.sh:export:12: not valid in this context: XML_CATALOG_FILES+
Thanks!
Where is the yml file link ?
Found it
@@kelsensantos where?
@@kelsensantos can you share us where it is?
where the fuck is it stop ghosting Belsen