To get back to Marrakech a grande taxi back is the best way.
Warning: Taxis back to Marrakech are in general more expensive than coming here. The is because people often travel through the mountains, so there's less people coming back to Marrakech apparently...
To go on up into the mountains, please read the Imlil page.