  We prove the Breuil-M\'ezard conjecture for 2-dimensional potentially
Barsotti-Tate representations of the absolute Galois group G_K, K a finite
extension of Q_p, for any p>2 (up to the question of determining precise values
for the multiplicities that occur). In the case that K/Q_p is unramified, we
also determine most of the multiplicities. We then apply these results to the
weight part of Serre's conjecture, proving a variety of results including the
Buzzard-Diamond-Jarvis conjecture.
