Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FLC777/GLAT
/ functions
Functions
3,098 in github.com/FLC777/GLAT
⨍
Functions
3,098
◇
Types & classes
478
↳
Endpoints
1
Method
ordered_indices
(self)
fairseq/data/transform_eos_dataset.py:110
Method
ordered_indices
Just use the tgt dataset ordered_indices
fairseq/data/backtranslation_dataset.py:145
Method
ordered_indices
(self)
fairseq/data/multilingual/sampled_multi_dataset.py:351
Method
ordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/legacy/masked_lm_dataset.py:286
Method
ordered_indices
(self)
fairseq/data/audio/speech_to_text_dataset.py:389
Method
ordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/audio/raw_audio_dataset.py:118
Method
output_layer
Project features to the vocabulary size.
fairseq/model_parallel/models/transformer.py:107
Method
output_layer
Project features to the default output size (typically vocabulary size).
fairseq/model_parallel/models/pipeline_parallel_transformer/model.py:322
Method
output_layer
Project features to the default output size (typically vocabulary size).
fairseq/models/fairseq_model.py:335
Method
output_layout
(self)
fairseq/models/speech_to_text/convtransformer.py:210
Method
padding_idx
(self)
fairseq/modules/character_token_embedder.py:94
Method
param_groups
(self)
fairseq/optim/composite.py:89
Method
param_groups
(self)
fairseq/optim/fairseq_optimizer.py:59
Method
params
Return an iterable of the parameters held by the optimizer.
fairseq/optim/fairseq_optimizer.py:52
Function
parse_alignment
Parses a single line from the alingment file. Args: line (str): String containing the alignment of the format: <src_idx_
fairseq/utils.py:583
Function
parse_args_and_arch
Args: parser (ArgumentParser): the parser input_args (List[str]): strings to parse, defaults to sys.argv parse_known (boo
fairseq/options.py:77
Function
parse_config_yaml
(yaml_data)
fairseq/modules/quantization/quantization_options.py:7
Function
parse_embedding
Parse embedding text file into a dictionary of word and embedding tensors. The first line can have vocabulary size and dimension. The following l
fairseq/utils.py:170
Method
parse_regression_target
(i, line)
fairseq/tasks/sentence_prediction.py:218
Method
plasma
(self)
fairseq/data/plasma_utils.py:32
Method
pooling_ratio
(self)
fairseq/models/speech_to_text/convtransformer.py:273
Function
post_process_prediction
( hypo_tokens, src_str, alignment, align_dict, tgt_dict, remove_bpe=None, extra_sy
fairseq/utils.py:215
Method
pre_tokenizer
Pre-tokenizer to apply before subword tokenization. Returning a dictionary with `tokenizer` providing the tokenizer name and the other
fairseq/data/audio/speech_to_text_dataset.py:58
Method
predict
(self, head: str, tokens: torch.LongTensor, return_logits: bool = False)
fairseq/models/roberta/hub_interface.py:112
Method
predict
(self, head: str, tokens: torch.LongTensor, return_logits: bool = False)
fairseq/models/bart/hub_interface.py:158
Method
prefetch
(self, indices)
fairseq/data/subsample_dataset.py:71
Method
prefetch
Prefetch the data required for this epoch.
fairseq/data/nested_dictionary_dataset.py:112
Method
prefetch
(self, indices)
fairseq/data/language_pair_dataset.py:449
Method
prefetch
Prefetch the data required for this epoch.
fairseq/data/fairseq_dataset.py:83
Method
prefetch
(self, indices)
fairseq/data/round_robin_zip_datasets.py:158
Method
prefetch
(self, indices)
fairseq/data/concat_sentences_dataset.py:45
Method
prefetch
(self, indices)
fairseq/data/resampling_dataset.py:106
Method
prefetch
(self, indices)
fairseq/data/monolingual_dataset.py:229
Method
prefetch
(self, indices)
fairseq/data/token_block_dataset.py:167
Method
prefetch
(self, indices)
fairseq/data/base_wrapper_dataset.py:48
Method
prefetch
(self, indices)
fairseq/data/denoising_dataset.py:425
Method
prefetch
(self, indices)
fairseq/data/concat_dataset.py:108
Method
prefetch
(self, indices)
fairseq/data/indexed_dataset.py:218
Method
prefetch
(self, indices)
fairseq/data/multi_corpus_sampled_dataset.py:141
Method
prefetch
(self, indices)
fairseq/data/lm_context_window_dataset.py:96
Method
prefetch
(self, indices)
fairseq/data/transform_eos_lang_pair_dataset.py:107
Method
prefetch
(self, indices)
fairseq/data/transform_eos_dataset.py:119
Method
prefetch
(self, indices)
fairseq/data/backtranslation_dataset.py:164
Method
prefetch
(self, indices)
fairseq/data/multilingual/sampled_multi_dataset.py:369
Method
prefetch
(self, indices)
fairseq/data/legacy/masked_lm_dataset.py:302
Method
prefetch
(self, indices)
fairseq/data/legacy/block_pair_dataset.py:303
Method
prefetch
(self, indices)
fairseq/data/audio/speech_to_text_dataset.py:398
Method
prepare
(cls, load_dictionary, args, **kargs)
fairseq/data/multilingual/multilingual_data_manager.py:321
Method
prepare_for_inference_
(self, cfg)
fairseq/model_parallel/models/pipeline_parallel_transformer/model.py:141
Method
prepare_for_onnx_export_
(self)
fairseq/modules/sinusoidal_positional_embedding.py:32
Method
prepare_for_onnx_export_
(self)
fairseq/modules/lightweight_convolution.py:205
Method
prepare_for_onnx_export_
(self)
fairseq/modules/transformer_layer.py:273
Method
prepare_for_onnx_export_
(self)
fairseq/modules/character_token_embedder.py:64
Method
prepare_for_onnx_export_
(self)
fairseq/modules/multihead_attention.py:91
Method
prepare_for_onnx_export_
(self)
fairseq/model_parallel/models/pipeline_parallel_transformer/layers.py:462
Method
prepare_for_onnx_export_
(self)
fairseq/models/fairseq_decoder.py:104
Method
prepend_tgt_lang_tag
Prepend target lang ID token as the target BOS (e.g. for to-many multilingual setting). During inference, this requires `--prefix-size 1`
fairseq/data/audio/speech_to_text_dataset.py:74
Method
pretrained
(self)
fairseq/models/fconv_self_att.py:169
Method
print
Print end-of-epoch stats.
fairseq/logging/progress_bar.py:203
Method
print
Print end-of-epoch stats.
fairseq/logging/progress_bar.py:240
Method
print
Print end-of-epoch stats.
fairseq/logging/progress_bar.py:273
Method
print
Print end-of-epoch stats.
fairseq/logging/progress_bar.py:301
Method
print
Print end-of-epoch stats.
fairseq/logging/progress_bar.py:355
Method
print
Print end-of-epoch stats.
fairseq/logging/progress_bar.py:408
Method
print
Print end-of-epoch stats
fairseq/logging/progress_bar.py:463
Function
print_embed_overlap
(embed_dict, vocab_dict)
fairseq/utils.py:163
Method
print_graph
(node: "ConstraintNode")
fairseq/token_generation_constraints.py:154
Method
prune_sentences
(self, batch_idxs: Tensor)
fairseq/search.py:248
Method
quantize
(self, x)
fairseq/models/wav2vec/wav2vec2.py:584
Method
quantize_hook
(module, x, y)
fairseq/modules/quantization/scalar/modules/qact.py:57
Function
quantize_model_
Quantize a model in-place by stages. All the targeted layers are replaced by their quantized counterpart, and the model is ready for the
fairseq/modules/quantization/pq/utils.py:18
Function
quantize_model_
Replaces all modules with their scalar quantized counterpart and registers hooks to quantize the post-ativations of those modules. Args:
fairseq/modules/quantization/scalar/utils.py:19
Function
quantize_model_scalar
(model, model_cfg: DictConfig)
fairseq/quantization_utils.py:15
Method
ratio
(a, b)
fairseq/scoring/bleu.py:138
Function
read_set_from_file
Extract a de-duped collection (set) of text from a file. Expected file format is one item per line.
fairseq/file_utils.py:338
Method
rebuild_batch
(finalized)
fairseq/iterative_refinement_generator.py:314
Method
reduce_metrics
Aggregate logging outputs from data parallel training.
fairseq/criterions/adaptive_loss.py:93
Method
reduce_metrics
Aggregate logging outputs from data parallel training.
fairseq/criterions/legacy_masked_lm.py:136
Method
reduce_metrics
Aggregate logging outputs from data parallel training.
fairseq/criterions/sentence_prediction.py:71
Method
reduce_metrics
Aggregate logging outputs from data parallel training.
fairseq/criterions/cross_entropy.py:61
Method
reduce_metrics
Aggregate logging outputs from data parallel training.
fairseq/criterions/wav2vec_criterion.py:139
Method
reduce_metrics
Aggregate logging outputs from data parallel training.
fairseq/criterions/label_smoothed_cross_entropy_with_alignment.py:88
Method
reduce_metrics
Aggregate logging outputs from data parallel training.
fairseq/criterions/masked_lm.py:72
Method
reduce_metrics
(logging_outputs)
fairseq/criterions/composite_loss.py:97
Method
reduce_metrics
Aggregate logging outputs from data parallel training.
fairseq/criterions/model_criterion.py:96
Method
reduce_metrics
Aggregate logging outputs from data parallel training.
fairseq/criterions/label_smoothed_cross_entropy.py:130
Method
reduce_metrics
Aggregate logging outputs from data parallel training.
fairseq/criterions/nat_loss.py:145
Method
reduce_metrics
Aggregate logging outputs from data parallel training.
fairseq/criterions/fairseq_criterion.py:84
Method
reduce_metrics
Aggregate logging outputs from data parallel training.
fairseq/criterions/sentence_ranking.py:92
Method
reduce_metrics
Aggregate logging outputs from data parallel training.
fairseq/model_parallel/criterions/vocab_parallel_cross_entropy.py:59
Method
reduce_metrics
(self, logging_outputs, criterion)
fairseq/tasks/multilingual_translation.py:420
Method
reduce_metrics
(self, logging_outputs, criterion)
fairseq/tasks/translation_multi_simple_epoch.py:259
Method
reduce_metrics
(self, logging_outputs, criterion)
fairseq/tasks/translation.py:392
Method
reduce_metrics
(self, logging_outputs, criterion)
fairseq/tasks/audio_pretraining.py:250
Method
reduce_metrics
Aggregate logging outputs from data parallel training.
glat_plugins/criterions/ctc_loss.py:204
Method
reduce_metrics
Aggregate logging outputs from data parallel training.
glat_plugins/criterions/glat_loss.py:158
Method
reduction_fn
()
fairseq/distributed/legacy_distributed_data_parallel.py:122
Method
regenerate_length_beam
(self, decoder_out, beam_size)
glat_plugins/models/glat_ctc.py:160
Function
register_audio_feature_transform
(name)
fairseq/data/audio/feature_transforms/__init__.py:18
Function
register_audio_feature_transform_cls
(cls)
fairseq/data/audio/feature_transforms/__init__.py:19
← previous
next →
2,601–2,700 of 3,098, ranked by callers