Different versions of RBM code can be found in this link.