Try yelping like a dog whenever he bites hard. It lets him know he is hurting you and he should stop. I tried this method with Levi and it has worked wonders!
I learned about this method from Pets WebMD. Give it a read if you are interested
How to Stop Puppy Biting: Training Puppies Not to Bite