Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HA-Transformer/MAT
/ functions
Functions
2,038 in github.com/HA-Transformer/MAT
⨍
Functions
2,038
◇
Types & classes
299
↓ 1 callers
Method
get_target
(self, soft_target)
tests/speech_recognition/asr_test_base.py:535
↓ 1 callers
Method
get_target_weights
(self, targets, net_output)
fairseq/models/wav2vec.py:204
↓ 1 callers
Method
get_targets
(self, sample, net_output, expand_steps=True)
fairseq/models/wav2vec.py:200
↓ 1 callers
Function
get_valid_stats
(trainer, args, extra_meters=None)
train.py:249
↓ 1 callers
Function
get_valid_stats
(trainer, args, extra_meters=None)
fairseq_cli/train.py:249
↓ 1 callers
Function
get_world_size
()
fairseq/distributed_utils.py:115
↓ 1 callers
Function
gopen
()
scripts/count_docs.py:25
↓ 1 callers
Method
handle_ooms
c10d accumulates/syncs gradients between gpus during backward pass. In case of OOMs, gpus may fail to sync, so we manually iterate
fairseq/trainer.py:450
↓ 1 callers
Function
http_get
(url, temp_file)
fairseq/file_utils.py:216
↓ 1 callers
Method
hub_models
(cls)
fairseq/models/fconv.py:45
↓ 1 callers
Method
hub_models
(cls)
fairseq/models/fairseq_model.py:178
↓ 1 callers
Method
hub_models
(cls)
fairseq/models/roberta/model.py:33
↓ 1 callers
Function
import_user_module
(args)
fairseq/utils.py:276
↓ 1 callers
Method
in_proj_qkv
(self, query)
fairseq/modules/multihead_attention.py:283
↓ 1 callers
Method
infer_conv_output_dim
(self, in_channels, input_dim)
examples/speech_recognition/models/vggtransformer.py:381
↓ 1 callers
Method
init_meters
(self, args)
fairseq/trainer.py:60
↓ 1 callers
Function
intra_ref
(refs)
examples/translation_moe/score.py:172
↓ 1 callers
Function
is_batch_full
(num_tokens)
fairseq/data/data_utils.py:205
↓ 1 callers
Function
is_better
(a, b)
fairseq/checkpoint_utils.py:32
↓ 1 callers
Function
is_master
(args)
fairseq/distributed_utils.py:18
↓ 1 callers
Function
item
(tensor)
fairseq/utils.py:217
↓ 1 callers
Function
label_smoothed_nll_loss
(lprobs, target, epsilon, ignore_index=None, reduce=True)
fairseq/criterions/label_smoothed_cross_entropy.py:13
↓ 1 callers
Function
last_n_checkpoints
(files, n)
scripts/rm_pt.py:32
↓ 1 callers
Function
last_n_checkpoints
(paths, n, update_based, upper_bound=None)
scripts/average_checkpoints.py:70
↓ 1 callers
Method
layer_mb
(self, layer_branches, x, encoder_padding_mask)
fairseq/models/transformer_mb/transformer_mb.py:239
↓ 1 callers
Method
layer_mb
(self, layer_branches, layer_args, layer_kwargs)
fairseq/models/transformer_mb/transformer_mb.py:418
↓ 1 callers
Method
lengths_to_attn_mask
create attention mask according to sequence lengths and transformer context Args: - input_lengths: (B, )-shape I
examples/speech_recognition/models/vggtransformer.py:488
↓ 1 callers
Method
load_dataset
Load a given dataset split. Args: split (str): name of the split (e.g., train, valid, test)
examples/roberta/wsc/wsc_task.py:80
↓ 1 callers
Method
load_dataset
Load a given dataset split. Args: split (str): name of the split (e.g., train, valid, test)
examples/speech_recognition/tasks/speech_recognition.py:96
↓ 1 callers
Method
load_dictionary
Load the dictionary from the filename Args: filename (str): the filename
fairseq/tasks/sentence_ranking.py:59
↓ 1 callers
Method
load_dictionary
Load the dictionary from the filename Args: filename (str): the filename
examples/roberta/commonsense_qa/commonsense_qa_task.py:49
↓ 1 callers
Function
load_model_ensemble_and_task
(filenames, arg_overrides=None, task=None)
fairseq/checkpoint_utils.py:159
↓ 1 callers
Function
load_ref
(path)
examples/translation_moe/score.py:73
↓ 1 callers
Method
load_state_dict
Load an optimizer state dict. In general we should prefer the configuration of the existing optimizer instance (e.g., learning rate)
fairseq/optim/fp16_optimizer.py:125
↓ 1 callers
Method
load_state_dict
Load an optimizer state dict. In general we should prefer the configuration of the existing optimizer instance (e.g., learning rate)
fairseq/optim/fp16_optimizer.py:285
↓ 1 callers
Function
load_sys
(paths)
examples/translation_moe/score.py:52
↓ 1 callers
Function
main
(args, override_args=None)
validate.py:14
↓ 1 callers
Function
main
(args)
interactive.py:57
↓ 1 callers
Function
main
(parsed_args)
eval_lm.py:46
↓ 1 callers
Function
main
()
score.py:35
↓ 1 callers
Function
main
(args)
generate.py:16
↓ 1 callers
Function
main
(args)
preprocess.py:23
↓ 1 callers
Function
main
(args)
fairseq_cli/interactive.py:57
↓ 1 callers
Function
main
(parsed_args)
fairseq_cli/eval_lm.py:46
↓ 1 callers
Function
main
()
fairseq_cli/score.py:35
↓ 1 callers
Function
main
(args)
fairseq_cli/generate.py:16
↓ 1 callers
Function
main
(args)
fairseq_cli/preprocess.py:23
↓ 1 callers
Function
main
()
scripts/read_binarized.py:25
↓ 1 callers
Function
main
()
scripts/rm_pt.py:42
↓ 1 callers
Function
main
()
scripts/compare_namespaces.py:7
↓ 1 callers
Function
main
()
scripts/split_train_valid_docs.py:16
↓ 1 callers
Function
main
()
scripts/average_checkpoints.py:91
↓ 1 callers
Function
main
()
scripts/read_checkpoint.py:18
↓ 1 callers
Function
main
()
scripts/count_docs.py:19
↓ 1 callers
Function
main
()
scripts/spm_decode.py:15
↓ 1 callers
Function
main
()
scripts/init-mbt-ckpt.py:23
↓ 1 callers
Function
main
()
scripts/build_sym_alignment.py:29
↓ 1 callers
Function
main
(args)
scripts/wav2vec_manifest.py:30
↓ 1 callers
Function
main
()
scripts/shard_docs.py:17
↓ 1 callers
Function
main
()
scripts/spm_encode.py:17
↓ 1 callers
Function
main
()
examples/translation_moe/score.py:23
↓ 1 callers
Function
main
Helper script to extract paragraphs questions and answers from RACE datasets.
examples/roberta/preprocess_RACE.py:60
↓ 1 callers
Function
main
Helper script to encode raw text with the GPT-2 BPE using multiple processes. The encoder.json and vocab.bpe files can be obtained here:
examples/roberta/multiprocessing_bpe_encoder.py:18
↓ 1 callers
Function
main
(args)
examples/speech_recognition/infer.py:137
↓ 1 callers
Function
main
()
examples/speech_recognition/datasets/asr_prep_json.py:39
↓ 1 callers
Function
make_batches
(lines, args, task, max_positions, encode_fn)
interactive.py:36
↓ 1 callers
Function
make_batches
(lines, args, task, max_positions, encode_fn)
fairseq_cli/interactive.py:36
↓ 1 callers
Function
make_binary_dataset
(vocab, input_prefix, output_prefix, lang, num_workers)
preprocess.py:97
↓ 1 callers
Function
make_binary_dataset
(vocab, input_prefix, output_prefix, lang, num_workers)
fairseq_cli/preprocess.py:97
↓ 1 callers
Method
make_generation_fast_
Optimize model for faster generation.
fairseq/models/fairseq_model.py:98
↓ 1 callers
Function
map_value_update
(d1, d2)
fairseq/utils.py:241
↓ 1 callers
Method
max_decoder_positions
(self)
fairseq/sequence_generator.py:532
↓ 1 callers
Method
max_positions
Maximum input length supported by the encoder.
fairseq/models/fconv.py:281
↓ 1 callers
Method
max_positions
Maximum input length supported by the encoder.
fairseq/models/lightconv.py:271
↓ 1 callers
Method
max_positions
Maximum input length supported by the encoder.
fairseq/models/fconv_self_att.py:269
↓ 1 callers
Method
max_positions
Maximum input length supported by the encoder.
fairseq/models/transformer.py:285
↓ 1 callers
Method
max_positions
Maximum input length supported by the encoder.
fairseq/models/transformer_mb/transformer_mb.py:307
↓ 1 callers
Function
merge
(src, tgt, hypos, log_probs, path)
examples/translation_moe/score.py:94
↓ 1 callers
Function
merge_result
(worker_result)
preprocess.py:102
↓ 1 callers
Method
meteor_score
(self)
fairseq/bleu.py:122
↓ 1 callers
Function
mock_trainer
(epoch, num_updates, iterations_in_epoch)
tests/test_train.py:16
↓ 1 callers
Function
multi_ref
(refs, hypos)
examples/translation_moe/score.py:134
↓ 1 callers
Method
multiply_grads
Multiplies grads by a constant *c*.
fairseq/optim/bmuf.py:80
↓ 1 callers
Method
no_sync
A context manager to disable gradient synchronization.
fairseq/legacy_distributed_data_parallel.py:78
↓ 1 callers
Method
noising
(self, x, lengths, max_shuffle_distance=None)
fairseq/data/noising.py:151
↓ 1 callers
Function
optimize_models
Optimize ensemble for generation
examples/speech_recognition/infer.py:123
↓ 1 callers
Method
ordered_indices
(self)
fairseq/data/sort_dataset.py:21
↓ 1 callers
Method
ordered_indices
Ordered indices for batching. Here we call the underlying dataset's ordered_indices() so that we get the same random ordering
fairseq/data/multi_corpus_sampled_dataset.py:56
↓ 1 callers
Method
output_layer
Project features to the default output size, e.g., vocabulary size. Args: features (Tensor): features returned by *extra
fairseq/models/fairseq_decoder.py:45
↓ 1 callers
Method
output_layer
Project features to the default output size (typically vocabulary size).
fairseq/models/fairseq_model.py:380
↓ 1 callers
Method
output_layer
Project features to the vocabulary size.
fairseq/models/transformer.py:455
↓ 1 callers
Method
output_layer
(self, features, **unused)
fairseq/models/roberta/model.py:296
↓ 1 callers
Method
output_layer
Project features to the vocabulary size.
fairseq/models/transformer_mb/transformer_mb.py:515
↓ 1 callers
Function
parse_args
()
scripts/read_checkpoint.py:9
↓ 1 callers
Method
parse_transformer_context
transformer_context can be the following: - None; indicates no context is used, i.e., transformer can access full conte
examples/speech_recognition/models/vggtransformer.py:402
↓ 1 callers
Method
parse_transformer_sampling
parsing transformer sampling configuration Args: - transformer_sampling, accepted input: * None, indicat
examples/speech_recognition/models/vggtransformer.py:436
↓ 1 callers
Method
pov
Percent of valid code.
fairseq/bleu.py:268
↓ 1 callers
Method
prefetch
(self, indices)
fairseq/data/noising.py:313
↓ 1 callers
Method
prepare_for_onnx_export_
Make model exportable via ONNX trace.
fairseq/models/fairseq_model.py:131
↓ 1 callers
Function
prepare_result_files
(args)
examples/speech_recognition/infer.py:105
← previous
next →
601–700 of 2,038, ranked by callers