how to use transformers to get all pretraining model names in transformers hub
```python
from transformers.hf_api import HfApi

api = HfApi()
models = api.list_models()
```

This is not very well documented yet so feel free to add to the doc.