MAMMOTH
Getting Started
Overview
Installation
Quickstart
LUMI & Roihu Quickstart
Concepts
Component-level Modularity
MAMMOTH Sharing Schemes
Tutorials
Training MAMMOTH 101
Extending a Trained Model with a New Language
How-to Guides
Prepare Data
Indexed Datasets (Pretokenization)
Tips and tricks for training
Choosing Sequence Lengths
Estimating GPU Memory
Freezing Components
Counting Parameters
Exporting to Hugging Face
Running a Translation Server
Reference
HuggingFace Tokenizers
Train
Translate
Serve
Build vocab
Export to HF
Upload
Download
Changelog
References
API
Framework
Modules
Translation
Data Loaders
Serving
Hugging Face export
Help
Frequently Asked Questions
Contributors
MAMMOTH
Index
Index
A
|
B
|
C
|
D
|
E
|
F
|
G
|
H
|
I
|
K
|
L
|
M
|
N
|
O
|
P
|
R
|
S
|
T
|
U
|
V
|
X
|
Z
A
accumulate_device() (mammoth.utils.Statistics method)
accuracy() (mammoth.utils.Statistics method)
AdaFactorFairSeq (class in mammoth.utils.optimizers)
add_task() (mammoth.serving.ComponentPool method)
advance() (mammoth.translate.DecodeStrategy method)
(mammoth.translate.GreedySearch method)
all_gather_stats() (mammoth.utils.Statistics static method)
all_gather_stats_list() (mammoth.utils.Statistics static method)
amp (mammoth.utils.optimizers.MultipleOptimizer property)
apply_rotary() (in module mammoth.modules.transformer)
ArtifactSource (class in mammoth.serving)
available_tasks() (mammoth.serving.ComponentPool method)
B
batch_size (mammoth.modules.transformer.KVCache property)
BeamSearch (class in mammoth.translate)
block_ngram_repeats() (mammoth.translate.DecodeStrategy method)
build_model() (in module mammoth.model_builder)
build_xcoder() (in module mammoth.model_builder)
C
CheckpointSource (class in mammoth.serving)
ComponentPool (class in mammoth.serving)
convert_checkpoint() (in module mammoth.hf_integration.to_hf.convert_mammoth_to_hf)
convert_modular() (in module mammoth.hf_integration.to_hf.convert_mammoth_to_hf)
convert_multi_task_artifact() (in module mammoth.hf_integration.to_hf.convert_mammoth_to_hf)
count_parameters() (mammoth.models.NMTModel method)
coverage_none() (mammoth.translate.penalties.PenaltyBuilder method)
coverage_summary() (mammoth.translate.penalties.PenaltyBuilder method)
coverage_wu() (mammoth.translate.penalties.PenaltyBuilder method)
create_app() (in module mammoth.serving.app)
D
decode_token() (mammoth.inputters.vocab.HFTokenizerVocab method)
decode_tokens() (mammoth.inputters.vocab.HFTokenizerVocab method)
DecoderBlock (class in mammoth.modules.transformer)
DecodeStrategy (class in mammoth.translate)
default_path() (in module mammoth.serving)
download() (in module mammoth.hf_integration.to_hf.model_downloader)
downloaded_tasks() (mammoth.serving.ComponentPool method)
DynamicDatasetIter (class in mammoth.inputters.dataloader)
E
elapsed_time() (mammoth.utils.Statistics method)
EncoderBlock (class in mammoth.modules.transformer)
exponential_decay() (in module mammoth.utils.optimizers)
externally_managed_step() (mammoth.utils.optimizers.MultipleOptimizer method)
F
FeedForward (class in mammoth.modules.transformer)
forward() (mammoth.hf_integration.to_hf.modeling_mammoth.MammothForConditionalGeneration method)
(mammoth.models.NMTModel method)
(mammoth.modules.transformer.DecoderBlock method)
(mammoth.modules.transformer.EncoderBlock method)
(mammoth.modules.transformer.FeedForward method)
(mammoth.modules.transformer.MultiHeadAttention method)
(mammoth.modules.transformer.NativeTransformerWrapper method)
(mammoth.modules.transformer.RotaryEmbedding method)
(mammoth.modules.transformer.TransformerStack method)
freeze_model_components() (in module mammoth.model_builder)
from_loss_logits_target() (mammoth.utils.Statistics class method)
from_opts() (mammoth.inputters.dataloader.DynamicDatasetIter class method)
from_pretrained() (mammoth.hf_integration.to_hf.mammoth_hub.MammothHub class method)
G
GenerationSettings (class in mammoth.serving)
get_base_optimizer() (in module mammoth.utils.optimizers)
get_encoder() (mammoth.hf_integration.to_hf.modeling_mammoth.MammothForConditionalGeneration method)
get_post_emb_norm_by_lang() (mammoth.modules.layer_stack.StackXcoder method)
GNMTGlobalScorer (class in mammoth.translate)
GreedySearch (class in mammoth.translate)
H
has_component() (mammoth.serving.ModelSource method)
HFSource (class in mammoth.serving)
HFTokenizerVocab (class in mammoth.inputters.vocab)
I
InferenceBatcher (class in mammoth.inputters.dataloader)
initialize() (mammoth.translate.BeamSearch method)
(mammoth.translate.DecodeStrategy method)
(mammoth.translate.GreedySearch method)
K
KVCache (class in mammoth.modules.transformer)
L
LayerCache (class in mammoth.modules.transformer)
learning_rate() (mammoth.utils.optimizers.SubOptimizer method)
length_average() (mammoth.translate.penalties.PenaltyBuilder method)
length_none() (mammoth.translate.penalties.PenaltyBuilder method)
length_wu() (mammoth.translate.penalties.PenaltyBuilder method)
list_components() (mammoth.hf_integration.to_hf.mammoth_hub.MammothHub static method)
list_tasks() (mammoth.hf_integration.to_hf.mammoth_hub.MammothHub static method)
load_component() (mammoth.serving.ModelSource method)
load_model() (in module mammoth.hf_integration.to_hf.inference)
load_state_dict() (mammoth.utils.optimizers.MultipleOptimizer method)
load_tokenizer() (mammoth.serving.ModelSource method)
loaded_components() (mammoth.serving.ComponentPool method)
loaded_tasks() (mammoth.serving.ComponentPool method)
LoadedTask (class in mammoth.serving)
log() (mammoth.translate.Translation method)
log_tensorboard() (mammoth.utils.Statistics method)
M
make_learning_rate_decay_fn() (in module mammoth.utils.optimizers)
mammoth.utils.optimizers
module
MammothConfig (class in mammoth.hf_integration.to_hf.configuration_mammoth)
MammothForConditionalGeneration (class in mammoth.hf_integration.to_hf.modeling_mammoth)
MammothHub (class in mammoth.hf_integration.to_hf.mammoth_hub)
materialize() (mammoth.utils.Statistics method)
maybe_update_forbidden_tokens() (mammoth.translate.DecodeStrategy method)
maybe_update_target_prefix() (mammoth.translate.DecodeStrategy method)
merge() (mammoth.inputters.vocab.Vocab class method)
ModelSource (class in mammoth.serving)
module
mammoth.utils.optimizers
MultiHeadAttention (class in mammoth.modules.transformer)
MultipleOptimizer (class in mammoth.utils.optimizers)
N
NativeTransformerWrapper (class in mammoth.modules.transformer)
NMTModel (class in mammoth.models)
noam_decay() (in module mammoth.utils.optimizers)
noamwd_decay() (in module mammoth.utils.optimizers)
num_layers (mammoth.modules.transformer.NativeTransformerWrapper property)
O
open_source() (in module mammoth.serving)
output() (mammoth.utils.Statistics method)
P
ParallelCorpus (class in mammoth.inputters.dataset)
PenaltyBuilder (class in mammoth.translate.penalties)
ppl() (mammoth.utils.Statistics method)
push() (in module mammoth.hf_integration.to_hf.push_to_hub)
R
record_download() (mammoth.serving.ModelSource method)
remove_task() (mammoth.serving.ComponentPool method)
reorder_beams() (mammoth.modules.transformer.KVCache method)
reorder_cache() (mammoth.translate.DecodeStrategy method)
resolve_frozen_components() (in module mammoth.model_builder)
resolve_task() (in module mammoth.serving)
RotaryEmbedding (class in mammoth.modules.transformer)
rsqrt_decay() (in module mammoth.utils.optimizers)
S
sample_with_temperature() (in module mammoth.translate.greedy_search)
SimpleLookAheadBucketing (class in mammoth.inputters.dataloader)
StackXcoder (class in mammoth.modules.layer_stack)
state_dict() (mammoth.utils.optimizers.MultipleOptimizer method)
Statistics (class in mammoth.utils)
step() (mammoth.utils.optimizers.AdaFactorFairSeq method)
(mammoth.utils.optimizers.SubOptimizer method)
SubOptimizer (class in mammoth.utils.optimizers)
T
target_prefixing() (mammoth.translate.DecodeStrategy method)
tflops() (mammoth.utils.Statistics method)
tokenize() (mammoth.inputters.vocab.HFTokenizerVocab method)
tokenize_example() (mammoth.inputters.vocab.HFTokenizerVocab method)
train() (mammoth.Trainer method)
Trainer (class in mammoth)
training_step (mammoth.utils.optimizers.MultipleOptimizer property)
(mammoth.utils.optimizers.SubOptimizer property)
TransformerStack (class in mammoth.modules.transformer)
translate() (in module mammoth.hf_integration.to_hf.inference)
(mammoth.serving.TranslationEngine method)
translate_batch() (mammoth.translate.Translator method)
Translation (class in mammoth.translate)
TranslationBuilder (class in mammoth.translate)
TranslationEngine (class in mammoth.serving)
Translator (class in mammoth.translate)
U
update() (mammoth.utils.Statistics method)
update_finished() (mammoth.translate.DecodeStrategy method)
(mammoth.translate.GreedySearch method)
update_finished_in_cache() (mammoth.translate.DecodeStrategy method)
V
validate() (mammoth.Trainer method)
Vocab (class in mammoth.inputters.vocab)
X
xent() (mammoth.utils.Statistics method)
Z
zero_grad() (mammoth.utils.optimizers.MultipleOptimizer method)
(mammoth.utils.optimizers.SubOptimizer method)