Every night when I used to study the thing which pushed me for late nights and early morning was a very powerful quote from my teacher :
"Every time you feel sleepy you have two choices either complete your sleep or complete your dream by staying awake"
All the best !