What is our primary use case?
I used PyTorch for creating my machine learning projects. For example, my last project was called 'Code Parrot'. It was from an NLP Transformers book. I tried creating a chatbot which can autocomplete Python source code using Chat GPT. I collected the data for training from Google's BigQuery database, sorted it for only Python files, and then trained the tokenizer and subsequently trained models, Chat GPT 2.4, I guess.
What is most valuable?
The aspect I like most about PyTorch is that it is really developer-friendly. Developers can constantly create new things, and everyone around the world can use it for free because it's an open-source product. What I personally like is that PyTorch has enabled users to use Apple's M1 chip natively for GPU users. Unlike other libraries using CUDA, PyTorch utilizes Metal Performance Shaders (MPS) to enable GPU usage on M1 chips.
What needs improvement?
PyTorch needs improvement in working on ARM-based chips. Although they have unified memory for GPU and RAM, they are unable to utilize these GPUs for processing efficiently. They take so much time. If PyTorch could run natively on ARM-based chips, it would provide a significant boost to machine learning.
For how long have I used the solution?
I have been using PyTorch for the last two semesters, which is about one year.
What do I think about the stability of the solution?
I think PyTorch is stable.
What do I think about the scalability of the solution?
I think PyTorch is not very good for scalability. It is suitable for chunking up numbers and obtaining better accuracy or results. However, if one wants to scale, it is better to use TensorFlow.
How was the initial setup?
The setup is easy; I just run 'pip install PyTorch'.
Which other solutions did I evaluate?
I have used TensorFlow a little bit. I have only created a few projects on it and do not know it really well.
What other advice do I have?
Before using PyTorch, a proper understanding of object-oriented programming in Python is needed. It is important to study PyTorch's documentation before writing any code to know what the functions are doing. Mathematical aspects are also important before using these libraries. I would rate PyTorch an eight because it is really good at what it does but requires a lot of prerequisites. It is effective for achieving model accuracy, but not scalable, as it may break down when scaled.
Which deployment model are you using for this solution?
On-premises