A generator on a marijuana farm is to blame for a fire last year that destroyed a dozen homes south of San Francisco, investigators said Thursday.