Hugging Face export =================== Export a Mammoth checkpoint to Hugging Face format and load the result (see :doc:`exporting_to_huggingface`). Export ------ .. autofunction:: mammoth.hf_integration.to_hf.convert_mammoth_to_hf.convert_checkpoint .. autofunction:: mammoth.hf_integration.to_hf.convert_mammoth_to_hf.convert_multi_task_artifact .. autofunction:: mammoth.hf_integration.to_hf.convert_mammoth_to_hf.convert_modular Model ----- .. autoclass:: mammoth.hf_integration.to_hf.configuration_mammoth.MammothConfig .. autoclass:: mammoth.hf_integration.to_hf.modeling_mammoth.MammothForConditionalGeneration :members: forward, get_encoder .. autoclass:: mammoth.hf_integration.to_hf.mammoth_hub.MammothHub :members: Loading and translating ----------------------- .. autofunction:: mammoth.hf_integration.to_hf.inference.load_model .. autofunction:: mammoth.hf_integration.to_hf.inference.translate Hub --- .. autofunction:: mammoth.hf_integration.to_hf.push_to_hub.push .. autofunction:: mammoth.hf_integration.to_hf.model_downloader.download