Alexnet is implemented and available pretrained in pytorch. I let you look at tutorials explaining how to use it.
http://pytorch.org/tutorials/beginner/transfer_learning_tutorial.html#sphx-glr-beginner-transfer-learning-tutorial-py 13
this tutorial covers everything you need to know with resnet, but it works the same way with pytorch