Downloading files can be done through the Web Interface by clicking on the "Download" button, but it can also be handled
programmatically using the huggingface_hub library that is a dependency to transformers:
Using snapshot_download to download an entire repository
Using hf_hub_download to download a specific file
See the reference for these methods in the huggingface_hub
documentation.
Do you want to run a Transformer model on a mobile device?
You should check out our swift-coreml-transformers repo.
It contains a set of tools to convert PyTorch or TensorFlow 2.0 trained Transformer models (currently contains GPT-2,
DistilGPT-2, BERT, and DistilBERT) to CoreML models that run on iOS devices.
At some point in the future, you'll be able to seamlessly move from pretraining or fine-tuning models in PyTorch or
