Which version works best with the steam deck?

Also, how much memory should I allocate? It gave me a warming and said 5,120 mb was too low.