All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
Taking an interest-based loan (Riba) is prohibited and it is a form of cooperating in evil; Allah The Almighty Says (what means): {And cooperate in righteousness and piety, but do not cooperate in sin and aggression. And fear Allah; indeed, Allah is severe in penalty.} [Quran 5:2] Therefore, it is not permissible to borrow money and pay Riba unless there is a dire need, and studying is not a necessity which allows one to commit what is prohibited.
You must sincerely repent to Allah for having borrowed an interest-based loan and be determined never to commit this sin again.
There is no harm in benefiting from the loan you had borrowed because the sin in an interest-based loan is connected to the person dealing in it and not the money itself. If it only covers part of your studies, then communicate with the Islamic centers and your fellow Muslim brothers in the area perhaps they can help you financially or at least guide you to other alternatives, if there are any.
Allah knows best.