Let $R$ be a commutative Krasner $(m,n)$-hyperring with the scalar identity $1_R$. In this paper, we introduce and study the concept of $n$-ary 2-absorbing and 2-absorbing primary hyperideals of $R$. These concepts are a generalisation of $n$-ary prime and primary hyperideals.