1: \begin{abstract}We prove the Breuil--M\'ezard conjecture for
2: 2-dimensional potentially Barsotti--Tate representations of the
3: absolute Galois group $G_K$, $K$ a finite extension of $\Qp$, for
4: any $p>2$ (up to the question of determining precise values for the
5: multiplicities that occur). In the case that $K/\Qp$ is unramified,
6: we also determine most of the multiplicities.
7: We then apply these results to the weight part of
8: Serre's conjecture, proving a variety of results including the
9: Buzzard--Diamond--Jarvis conjecture.
10: \end{abstract}
11: