Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Sally-SH/VSP-LLM
/ functions
Functions
6,051 in github.com/Sally-SH/VSP-LLM
⨍
Functions
6,051
◇
Types & classes
878
↳
Endpoints
3
↓ 675 callers
Method
append
(self, value)
fairseq/examples/speech_to_text/simultaneous_translation/agents/fairseq_simul_st_agent.py:99
↓ 520 callers
Method
size
(self, index)
fairseq/fairseq/data/list_dataset.py:28
↓ 363 callers
Method
info
(self)
fairseq/examples/speech_to_text/simultaneous_translation/agents/fairseq_simul_st_agent.py:107
↓ 191 callers
Method
size
Return an example's size as a float or tuple. This value is used when filtering a dataset with ``--max-positions``.
fairseq/examples/speech_recognition/data/asr_dataset.py:111
↓ 170 callers
Method
pad
Helper to get index of pad symbol
fairseq/fairseq/data/dictionary.py:193
↓ 156 callers
Method
eos
Helper to get index of end-of-sentence symbol
fairseq/fairseq/data/dictionary.py:197
↓ 150 callers
Method
exists
(path: str)
fairseq/fairseq/file_io.py:85
↓ 113 callers
Method
write
(self, data)
fairseq/examples/wav2vec/wav2vec_featurize.py:102
↓ 106 callers
Function
__Pyx_AddTraceback
fairseq/fairseq/data/token_block_utils_fast.cpp:31114
↓ 98 callers
Function
__Pyx_AddTraceback
fairseq/fairseq/data/data_utils_fast.cpp:29340
↓ 85 callers
Method
load
Loads the dictionary from a text file with the format: ``` <symbol0> <count0> <symbol1> <count1> ... ```
fairseq/fairseq/data/dictionary.py:206
↓ 76 callers
Method
add_symbol
Adds a word to the dictionary
fairseq/fairseq/data/dictionary.py:115
↓ 72 callers
Method
cuda
(self)
fairseq/fairseq/sequence_generator.py:118
↓ 71 callers
Method
array
Fetch a read only view of an np.array, stored in plasma.
fairseq/fairseq/data/plasma_utils.py:139
↓ 70 callers
Method
log
Log intermediate stats according to log_interval.
fairseq/fairseq/logging/progress_bar.py:145
↓ 68 callers
Method
add
(self, ref, pred)
fairseq/fairseq/scoring/bleu.py:107
↓ 66 callers
Method
index
Returns the index of the specified symbol
fairseq/fairseq/data/dictionary.py:58
↓ 65 callers
Method
write
(self, sizes)
fairseq/fairseq/data/indexed_dataset.py:408
↓ 58 callers
Function
create_dummy_data
(data_dir, num_examples=100, maxlen=20, alignment=False)
fairseq/tests/utils.py:162
↓ 51 callers
Function
generate_main
(data_dir, extra_flags=None, path=None)
fairseq/tests/utils.py:388
↓ 49 callers
Method
unk
Helper to get index of unk symbol
fairseq/fairseq/data/dictionary.py:201
↓ 48 callers
Function
train_translation_model
( data_dir, arch, extra_flags=None, task="translation", run_validation=False, lang_fla
fairseq/tests/utils.py:314
↓ 47 callers
Function
LayerNorm
(normalized_shape, eps=1e-5, elementwise_affine=True, export=False)
fairseq/fairseq/modules/layer_norm.py:30
↓ 43 callers
Function
preprocess_translation_data
(data_dir, extra_flags=None)
fairseq/tests/utils.py:224
↓ 40 callers
Function
CYTHON_UNUSED_VAR
fairseq/fairseq/data/token_block_utils_fast.cpp:470
↓ 39 callers
Method
close
(self)
fairseq/fairseq/nan_detector.py:106
↓ 39 callers
Method
size
(self, index)
src/hubert_dataset.py:517
↓ 38 callers
Function
CYTHON_UNUSED_VAR
fairseq/fairseq/data/data_utils_fast.cpp:470
↓ 38 callers
Method
encoder
(self)
fairseq/fairseq/models/fairseq_model.py:432
↓ 37 callers
Method
bos
Helper to get index of beginning-of-sentence symbol
fairseq/fairseq/data/dictionary.py:189
↓ 37 callers
Method
update
(self, val)
fairseq/fairseq/logging/meters.py:122
↓ 36 callers
Method
string
Helper for converting a tensor of token indices to a string. Can optionally remove BPE symbols or escape <unk> words.
fairseq/fairseq/data/dictionary.py:65
↓ 34 callers
Function
__Pyx_Raise
fairseq/fairseq/data/token_block_utils_fast.cpp:26449
↓ 34 callers
Method
encode_line
( self, line, line_tokenizer=tokenize_line, add_if_not_exist=True, con
fairseq/fairseq/data/dictionary.py:294
↓ 33 callers
Method
assertHypoTokens
(self, hypo, tokens)
fairseq/tests/test_sequence_generator.py:168
↓ 32 callers
Function
ChoiceEnum
return the Enum class used to enforce list of choices
fairseq/fairseq/dataclass/constants.py:32
↓ 31 callers
Function
__Pyx_Raise
fairseq/fairseq/data/data_utils_fast.cpp:24840
↓ 31 callers
Method
collate_tokens
Convert a list of 1d tensors into a padded 2d tensor.
src/vsp_llm_dataset.py:550
↓ 31 callers
Method
decoder
(self)
fairseq/fairseq/models/fairseq_model.py:436
↓ 30 callers
Function
convert_namespace_to_omegaconf
Convert a flat argparse.Namespace to a structured DictConfig.
fairseq/fairseq/dataclass/utils.py:344
↓ 30 callers
Method
copy
(src_path: str, dst_path: str, overwrite: bool = False)
fairseq/fairseq/file_io.py:71
↓ 29 callers
Method
assertHypoScore
(self, hypo, pos_probs, normalized=True, lenpen=1.0)
fairseq/tests/test_sequence_generator.py:171
↓ 28 callers
Method
run
(self)
fairseq/fairseq/data/iterators.py:561
↓ 28 callers
Method
save
Stores dictionary into a text file
fairseq/fairseq/data/dictionary.py:278
↓ 28 callers
Method
size
(self, index: int)
fairseq/examples/laser/laser_src/multitask_data_utils.py:134
↓ 27 callers
Function
__Pyx_SafeReleaseBuffer
BufferGetAndValidate */
fairseq/fairseq/data/token_block_utils_fast.cpp:28778
↓ 27 callers
Method
log
(self, *args, **kwargs)
fairseq/examples/speech_recognition/new/infer.py:152
↓ 26 callers
Method
create
(constraints: List[List[int]])
fairseq/fairseq/token_generation_constraints.py:146
↓ 26 callers
Method
half
(self)
fairseq/fairseq/modules/lightconv_layer/lightconv_layer.py:136
↓ 26 callers
Method
set_incremental_state
Helper for setting incremental state for an nn.Module.
fairseq/fairseq/incremental_decoding_utils.py:34
↓ 25 callers
Function
__Pyx_SafeReleaseBuffer
BufferGetAndValidate */
fairseq/fairseq/data/data_utils_fast.cpp:27169
↓ 25 callers
Method
get_incremental_state
Helper for getting incremental state for an nn.Module.
fairseq/fairseq/incremental_decoding_utils.py:23
↓ 25 callers
Method
size
(self, index)
fairseq/examples/wav2vec/unsupervised/data/extracted_features_dataset.py:129
↓ 24 callers
Function
preprocess_lm_data
(data_dir)
fairseq/tests/utils.py:206
↓ 23 callers
Function
quant_noise
Wraps modules and applies quantization noise to the weights for subsequent quantization with Iterative Product Quantization as described
fairseq/fairseq/modules/quant_noise.py:10
↓ 21 callers
Function
__Pyx_PyObject_Call
fairseq/fairseq/data/token_block_utils_fast.cpp:26733
↓ 21 callers
Method
build_model
(cls, args, task)
fairseq/tests/utils.py:471
↓ 21 callers
Method
cumsum
(sequence, sample_ratios)
fairseq/fairseq/data/concat_dataset.py:16
↓ 21 callers
Method
load_indexed_dataset
(path, dictionary)
fairseq/fairseq/tasks/semisupervised_translation.py:165
↓ 19 callers
Function
__Pyx_PyObject_Call
fairseq/fairseq/data/data_utils_fast.cpp:25124
↓ 19 callers
Function
__Pyx_PyObject_IsTrue
fairseq/fairseq/data/data_utils_fast.cpp:32243
↓ 19 callers
Function
__Pyx_PyType_GetName
fairseq/fairseq/data/token_block_utils_fast.cpp:33442
↓ 19 callers
Method
get_num_updates
Get the number of parameters updates.
fairseq/fairseq/trainer.py:1088
↓ 19 callers
Method
model
(self)
fairseq/fairseq/trainer.py:248
↓ 19 callers
Method
open
( path: str, mode: str = "r", buffering: int = -1, encoding: Optional[str] = N
fairseq/fairseq/file_io.py:44
↓ 19 callers
Method
set_lr
(self, lr)
fairseq/fairseq/optim/bmuf.py:55
↓ 18 callers
Function
__Pyx_PyType_GetName
fairseq/fairseq/data/data_utils_fast.cpp:32051
↓ 18 callers
Method
get_smoothed_values
Get all smoothed values.
fairseq/fairseq/logging/meters.py:299
↓ 18 callers
Method
load_state_dict
(self, state_dict)
fairseq/fairseq/logging/meters.py:44
↓ 18 callers
Method
size
Return an example's size as a float or tuple. This value is used when filtering a dataset with ``--max-positions``.
fairseq/fairseq/data/denoising_dataset.py:411
↓ 18 callers
Function
tensorize
(constraints: List[List[int]])
fairseq/tests/test_constraints.py:13
↓ 17 callers
Method
add_args
Add optimizer-specific arguments to the parser.
fairseq/fairseq/optim/sgd.py:18
↓ 17 callers
Method
backward
(ctx, grad_output)
fairseq/fairseq/modules/base_layer.py:130
↓ 17 callers
Function
gen_parser_from_dataclass
convert a dataclass instance to tailing parser arguments
fairseq/fairseq/dataclass/utils.py:53
↓ 16 callers
Function
Linear
Weight-normalized Linear layer (input: N x T x C)
fairseq/fairseq/models/fconv_self_att.py:605
↓ 16 callers
Function
__Pyx_ImportType_3_0_8
fairseq/fairseq/data/token_block_utils_fast.cpp:29687
↓ 16 callers
Function
__Pyx_ImportType_3_0_8
fairseq/fairseq/data/data_utils_fast.cpp:27913
↓ 16 callers
Function
__Pyx_PyObject_IsTrue
fairseq/fairseq/data/token_block_utils_fast.cpp:33634
↓ 16 callers
Function
_fill
Filling tensor x with y at masked positions (dim=0).
fairseq/fairseq/models/nat/levenshtein_utils.py:265
↓ 16 callers
Function
call
(cmd, debug=False)
fairseq/examples/multilingual/data_scripts/download_wmt19_and_before.py:121
↓ 16 callers
Method
get_lr
(self)
fairseq/fairseq/optim/bmuf.py:52
↓ 16 callers
Function
sample
(id: int, length: int)
fairseq/tests/test_dataset.py:19
↓ 16 callers
Method
start
(self)
fairseq/fairseq/logging/meters.py:206
↓ 14 callers
Function
_pair
(v)
fairseq/fairseq/modules/vggblock.py:15
↓ 14 callers
Method
exists
(path)
fairseq/fairseq/data/indexed_dataset.py:198
↓ 14 callers
Method
isfile
(path: str)
fairseq/fairseq/file_io.py:91
↓ 14 callers
Function
remove_bpe
(line, bpe_symbol)
fairseq/examples/noisychannel/rerank_utils.py:248
↓ 14 callers
Method
train
(mode=True)
fairseq/fairseq/models/fairseq_model.py:210
↓ 13 callers
Function
__Pyx_PyInt_From_int64_t
CIntToPy */
fairseq/fairseq/data/token_block_utils_fast.cpp:32157
↓ 13 callers
Function
__Pyx_TypeTest
ExtTypeTest */
fairseq/fairseq/data/token_block_utils_fast.cpp:27553
↓ 13 callers
Method
_test_case
(self, paths, extra_flags)
fairseq/tests/test_valid_subset_checks.py:57
↓ 13 callers
Method
device
(self)
fairseq/fairseq/models/roberta/hub_interface.py:32
↓ 13 callers
Method
max_positions
Maximum input length supported by the encoder.
fairseq/fairseq/models/lstm.py:342
↓ 13 callers
Method
mkdir
(arg)
fairseq/examples/wav2vec/vq-wav2vec_featurize.py:72
↓ 12 callers
Function
Linear
(in_features, out_features, bias=True)
fairseq/fairseq/models/lightconv.py:897
↓ 12 callers
Function
_current_postion_info
()
fairseq/tests/speech_recognition/asr_test_base.py:126
↓ 12 callers
Method
build_bpe
Build the tokenizer for this task.
fairseq/fairseq/tasks/fairseq_task.py:614
↓ 12 callers
Method
forward
(self, src_tokens, src_lengths=None, **kwargs)
fairseq/tests/utils.py:482
↓ 12 callers
Method
get_normalized_probs
(self, net_output, log_probs, sample=None)
fairseq/examples/speech_recognition/models/vggtransformer.py:154
↓ 12 callers
Method
has_next
Whether the iterator has been exhausted.
fairseq/fairseq/data/iterators.py:63
next →
1–100 of 6,051, ranked by callers