Serving ======= The translation server behind ``mammoth_serve`` (see :doc:`serving`). Model sources ------------- .. autofunction:: mammoth.serving.open_source .. autoclass:: mammoth.serving.ModelSource :members: .. autoclass:: mammoth.serving.CheckpointSource .. autoclass:: mammoth.serving.HFSource .. autoclass:: mammoth.serving.ArtifactSource Component pool -------------- .. autoclass:: mammoth.serving.ComponentPool :members: .. autoclass:: mammoth.serving.LoadedTask .. autofunction:: mammoth.serving.resolve_task .. autofunction:: mammoth.serving.default_path Translation engine ------------------ .. autoclass:: mammoth.serving.GenerationSettings .. autoclass:: mammoth.serving.TranslationEngine :members: HTTP API -------- .. autofunction:: mammoth.serving.app.create_app