ReCode icon indicating copy to clipboard operation
ReCode copied to clipboard

How to retrain the model

Open fengzhangyin opened this issue 6 years ago • 3 comments

@sweetpeach I want to retrain the model, but I don't know what to do. Hope to give some detailed instructions. Thanks.

fengzhangyin avatar Nov 30 '18 03:11 fengzhangyin

To train the model, you can follow instructions from here. Then the trained model will be used in ReCode during decoding step at test time.

sweetpeach avatar Nov 30 '18 04:11 sweetpeach

@sweetpeach I see the device set for Theano is CPU in train.sh. Since CPU training from scratch would be slow, could you describe your setup for GPU training please. I have tried setting device in train.sh to "gpu" or "cuda". But Theano complains since "cuda" is for the old GPU backend and "gpu" gives me errors with pymc3 (which is installed).

A gpu docker container or some package versions for the requirements would be very helpful. Thanks.

carlos-gemmell avatar Sep 17 '19 17:09 carlos-gemmell

Hi, Could you please share a trained model with us for debugging purposes? Because I cannot easily understand the logic of your testing stage, especially the retrieval of ngrams and their alignments. Thanks a lot!!

yz1019117968 avatar Apr 17 '22 11:04 yz1019117968