What I did with Joel was just say no bite and put a toy in his mouth and then praise him.
And after he starts knowing that he shouldn't bite thats when I started "timeout" which was puting him in something(not his crate)but like a laundry basket over him or at one time it was an empty toybox lol but that really worked with him but not until he was old enough to understand.
But when there really young just replace with a toy and if he keeps biting just walk away, he'll catch on quick
Hope that helps