write down model parameters file after tree inference