Read many chess books.
Play in many FIDE rated tournaments.
That's it.
While doing this at least 30 hours a week, if you're not 2200 (FIDE rating) in 5 years, then you should probably give up on IM or GM.
By the way, your current level is close to beginner.
How should I get the GM title, I am an intermediate chess player. Please give me useful advice. I want to desperately get the GM or IM title.