Problems solved. Thank you all who replied.
The revision in the following code solved the problem
create new OrderedDict that does not contain module.

from collections import OrderedDict
new_checkpoint = OrderedDict()
for k, v in checkpoint[‘state_dict’].items():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
name = k[7:] # remove module.
new_checkpoint[name] = v
I also met the following problem
TypeError: FloatClassNLLCriterion_updateOutput received an invalid combination of arguments - got (int, torch.FloatTensor, torch.cuda.LongTensor, torch.FloatTensor, bool, NoneType, torch.FloatTensor), but expected (int state, torch.FloatTensor input, torch.LongTensor target, torch.FloatTensor output, bool sizeAverage, [torch.FloatTensor weights or None], torch.FloatTensor total_weight)
solved the problem by adding the following code
model = torch.nn.DataParallel(model).cuda()
hope this post will be helpful for newbies like me. many thanks!
nam