Abstract. Let F be a totally real field and p ≥ 3 a prime. If ρ : Gal(F/F ) → GL2(Fp) is continuous, semisimple, totally odd, and tamely ramified at all places of F dividing p, then we formulate a conjecture specifying the weights for which ρ is modular. This extends the conjecture of Diamond, Buzzard, and Jarvis, which required p to be unramified in F . We also prove a theorem that verifies on...