1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
<!--⚠️ Note that this file is in Markdown but contains specific syntax for our doc-builder (similar to MDX) that may not be
rendered properly in your Markdown viewer.
-->
# Mixins & serialization methods
## Mixins
The `huggingface_hub` library offers a range of mixins that can be used as a parent class for your objects, in order to
provide simple uploading and downloading functions. Check out our [integration guide](../guides/integrations) to learn
how to integrate any ML framework with the Hub.
### Generic
[[autodoc]] ModelHubMixin
- all
- _save_pretrained
- _from_pretrained
### PyTorch
[[autodoc]] PyTorchModelHubMixin
### Keras
[[autodoc]] KerasModelHubMixin
[[autodoc]] from_pretrained_keras
[[autodoc]] push_to_hub_keras
[[autodoc]] save_pretrained_keras
### Fastai
[[autodoc]] from_pretrained_fastai
[[autodoc]] push_to_hub_fastai
|