torch / distro

Torch installation in a self-contained folder
BSD 3-Clause "New" or "Revised" License
556 stars 484 forks source link

Install older version of Torch #185

Open zakiindrasukma opened 7 years ago

zakiindrasukma commented 7 years ago

Hi! I'm trying to reconstruct a model which was built using Torch. The model was created on Jan. 2015 and unfortunately due to updates to Torch, the model is no longer converging. The author of the model suggested me to install older version of Torch approximately Jan. 2015 version. Is there any way to do it? Any kind of help will be greatly appreciated. Thank you very much.

P.S.: The model I am trying to reconstruct is hosted at : https://github.com/DeepLearning4BioSeqText/Paper16-AAAI-MUST-CNN and the paper is : https://github.com/DeepLearning4BioSeqText/Paper16-AAAI-MUST-CNN/tree/master/paper

fredowski commented 7 years ago

Hi, you can look at the commit history here: https://github.com/torch/distro/commits/master You can copy the SHA which corresponds to a specific commit. Then change to the torch directory and do

./clean.sh git checkout for example: git checkout efb9226e924d69513eea28f5f701cb5f5ca ./install.sh

This will install the version that corresponds to that specific commit.

Friedrich

chaopengshen commented 6 years ago

When I tried to go back to a commit, say the commit on Commits on Jul 25, 2017 git checkout ca6a0d981de0a68b5ce3346e0649507f57e28d87 why does it say fatal: reference is not a tree: ca6a0d981de0a68b5ce3346e0649507f57e28d87