Refactor the huggingface model code (#825)
Summary:
Refactor the huggingface model code to use a common code base
Pull Request resolved: https://github.com/pytorch/benchmark/pull/825
Reviewed By: erichan1
Differential Revision: D35147572
Pulled By: xuzhao9
fbshipit-source-id: 883a6332101b8b76ac5fe3204377392b00825fd3