Tensor flow or Pytorch

Hi, i am new to this platform and currently doing week 1 of Advanced algorithm(in ML specialization). i want to know which library Tensor flow vs Pytorch for building various neural nets and Future LLM(if used at all as i also want to learn them) in 2024?

1 Like

Both are used at the moment. But since you are taking DeepLearning.AI courses, they teach TensorFlow. So, you can learn TensorFlow and look at learning PyTorch too, in the future if you see the need.

2 Likes

PyTorch is more intuitive and Python-friendly, making it easier to learn and experiment with neural networks.

It’s the preferred choice for modern LLM development - OpenAI and Tesla use it for their AI systems.

However, there are jobs available for both libraries.

The question is, which one do you identify with better? I personally prefer TensorFlow

1 Like

Consider using keras3 API (see here) and setting the backend for your task.

1 Like

Hi

Thank you for the response, but as a newcomer i dont understand what is written in that site as of now. Hope i can understand in future.

1 Like

Hi! With consistency and practice you will be able to understand, the most recent surveys give a slight edge of pythorch over tensorflow, but they are still very similar in use

Technology | 2024 Stack Overflow Developer Survey

My suggestion for you is start learning the principles, and keep practicing, you will see that after you understand python as programming language you can easily switch between frameworks, plus LLMs helps a lot in terms of having the syntax for your code or translate between frameworks, so you might stick with the one that you feel more comfortable for now and use the tools as you needed.

I hope this helps!

Thank you, bro i will start with tensorflow then go to pytorch