git clone https://github.com/WbWbX/Generation.git
Download CMS generator package (genproductions), and run gridpack_generation.sh
script with the desired set of cards.
git clone -b mg27x https://github.com/cms-sw/genproductions.git
cd genproductions/bin/MadGraph5_aMCatNLO/
cp -r PATHTOGENERATION/CARDFOLDER cards/
./gridpack_generation.sh CARDFOLDER cards/CARDFOLDER
Further instructions on how to create cards for Madgraph can be found here.
Useful tutorial on MG options can be found here