Visualize training history from a model

I want to generate accuracy/loss vs epoch graph from a trained model. Is it possible to do so? an example image is attached.

You could plot the accuracy e.g. using tensorboard as described here.

@ptrblck is it possible to generate graph with already trained pytorch model?

If you have saved the accuracy values for each epoch, this should be possible.
Otherwise, you would need to rerun the training and plot the metrics for each epoch.