MCPcopy Create free account

hub / github.com/ASLP-lab/OSUM-Pangu / functions

Functions1,198 in github.com/ASLP-lab/OSUM-Pangu

↓ 1 callersMethodpre_sample
Sample data according to rank/world_size/num_workers Args: data(List): input data list Returns:
wenet/dataset/dataset.py:131
↓ 1 callersFunctionprecompute_freqs_cis
Precomputes the frequency cis.
wenet/utils/rope_utils.py:5
↓ 1 callersFunctionprocess_tagged_string
处理带标签的字符串,将标签替换为对应的内容 Args: s: Returns: <tag> <tag>xxxx
wenet/dataset/process/processor_tag_think.py:504
↓ 1 callersFunctionprocess_tagged_string
处理带标签的字符串,将标签替换为对应的内容 Args: s: Returns: <tag> <tag>xxxx
wenet/dataset/process/processor_tmp.py:458
↓ 1 callersFunctionprocess_tagged_string_and_delete_tag_from_txt
处理带标签的字符串,提取标签并返回标签和去除标签后的内容 Args: s: 带标签的字符串,格式如 "<tag>XXXX" Returns: 元组 (标签, 去除标签后的内容),例如 ("<tag>", "XXXX")
wenet/dataset/process/processor.py:513
↓ 1 callersFunctionprocess_tagged_string_and_delete_tag_from_txt
处理带标签的字符串,提取标签并返回标签和去除标签后的内容 Args: s: 带标签的字符串,格式如 "<tag>XXXX" Returns: 元组 (标签, 去除标签后的内容),例如 ("<tag>", "XXXX")
wenet/dataset/process/processor_language_think.py:513
↓ 1 callersFunctionprocess_text2
(text, task_tag)
wenet/dataset/process/processor_tag_think.py:58
↓ 1 callersFunctionprocess_text2
(text, task_tag)
wenet/dataset/process/processor.py:56
↓ 1 callersFunctionprocess_text2
(text, task_tag)
wenet/dataset/process/processor_language_think.py:56
↓ 1 callersFunctionprocess_text2
(text, task_tag)
wenet/dataset/process/processor_tmp.py:55
↓ 1 callersFunctionprogress_hook
(t)
wenet/cli/hub.py:31
↓ 1 callersFunctionquantize_vector
Symbols in comments: B: batch_size. D: latent_dim. C: num_latent_classes per group G: num of codebook groups. Args:
wenet/ssl/bestrq/bestrq_model.py:11
↓ 1 callersFunctionread_cntime
[cntime] = read_cntime(file_or_fd) Reads single kaldi 'Confusion Network time info', in binary format: C++ type: vector<tuple<float,float> >.
wenet/dataset/kaldi_io.py:710
↓ 1 callersFunctionread_post
[post] = read_post(file_or_fd) Reads single kaldi 'Posterior' in binary format. The 'Posterior' is C++ type 'vector<vector<tuple<int,float> >
wenet/dataset/kaldi_io.py:639
↓ 1 callersFunctionread_post_ark
generator(key,vec<vec<int,float>>) = read_post_ark(file) Returns generator of (key,posterior) tuples, read from ark file. file_or_fd : ark, gzi
wenet/dataset/kaldi_io.py:616
↓ 1 callersFunctionread_seg_dict
(path)
wenet/text/paraformer_tokenizer.py:8
↓ 1 callersFunctionread_tar
(file)
tools/analyze_dataset.py:91
↓ 1 callersFunctionread_vec_int_ark
generator(key,vec) = read_vec_int_ark(file_or_fd) Create generator of (key,vector<int>) tuples, which reads from the ark file/stream. file_or_f
wenet/dataset/kaldi_io.py:154
↓ 1 callersFunctionreinit_lora
(model, args, configs, tokenizer, seed=777)
wenet/utils/train_utils.py:912
↓ 1 callersFunctionreinit_lora_modules
r"""Refer to https://github.com/Outsider565/LoRA-GA/blob/ c185846309ea9012d0bcd46ebd30347dda1c592c/run_exp.py#L67 Reinitialize the lora model
wenet/finetune/lora/utils.py:157
↓ 1 callersMethodrel_shift
Compute relative positinal encoding. Args: x (torch.Tensor): Input tensor (batch, time, size). zero_triu (bool): If tr
wenet/squeezeformer/attention.py:73
↓ 1 callersFunctionreplace_duplicates_with_blank
(hyp: List[int], blank_id: int = 0)
wenet/utils/ctc_utils.py:36
↓ 1 callersFunctionreplace_keys_in_brackets
(input_str, key_value_dict)
wenet/dataset/process/processor_tag_think.py:493
↓ 1 callersFunctionreplace_keys_in_brackets
(input_str, key_value_dict)
wenet/dataset/process/processor.py:484
↓ 1 callersFunctionreplace_keys_in_brackets
(input_str, key_value_dict)
wenet/dataset/process/processor_language_think.py:484
↓ 1 callersFunctionreplace_keys_in_brackets
(input_str, key_value_dict)
wenet/dataset/process/processor_tmp.py:447
↓ 1 callersMethodreset_encoder_parameter
(self)
wenet/ssl/w2vbert/w2vbert_model.py:125
↓ 1 callersMethodreset_encoder_parameter
(self)
wenet/ssl/wav2vec2/wav2vec2_model.py:184
↓ 1 callersMethodreset_encoder_parameter
(self)
wenet/ssl/bestrq/bestrq_model.py:122
↓ 1 callersMethodreset_parameters
(self)
wenet/finetune/lora/layers.py:66
↓ 1 callersMethodreset_parameters
(self)
wenet/finetune/lora/layers.py:218
↓ 1 callersMethodreset_parameters
(self)
wenet/finetune/lora/layers.py:301
↓ 1 callersMethodright_context
Export interface for c++ call, return right_context of the model
wenet/transformer/asr_model.py:396
↓ 1 callersMethodsample
Sample data according to rank/world_size/num_workers Args: data(List): input data list Returns:
wenet/dataset/dataset.py:101
↓ 1 callersMethodsample_negatives
(self, y, num, padding_count=0, speech_lengths=None)
wenet/ctl_model/asr_model_ctl.py:203
↓ 1 callersFunctionsampler
( logits: torch.Tensor, temperatures: Union[torch.Tensor, None], top_ps: torch.Tensor, top_ks:
wenet/LLM/sampler.py:7
↓ 1 callersFunctionseg_char
(sent)
tools/text2token.py:31
↓ 1 callersMethodset_global_chunk_size
Used in ONNX export.
wenet/efficient_conformer/encoder.py:220
↓ 1 callersMethodset_step
(self, step: int)
wenet/utils/scheduler.py:721
↓ 1 callersMethodsimplify_forward
(self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = No
patches/modelling_qwen2_infer_gpu.py:225
↓ 1 callersFunctionstatic_batch
Static batch the data by `batch_size` Args: data: Iterable[{key, feat, label}] batch_size: batch size Retur
wenet/dataset/process/processor_tag_think.py:1428
↓ 1 callersFunctionstatic_batch
Static batch the data by `batch_size` Args: data: Iterable[{key, feat, label}] batch_size: batch size Retur
wenet/dataset/process/processor.py:1396
↓ 1 callersFunctionstatic_batch
Static batch the data by `batch_size` Args: data: Iterable[{key, feat, label}] batch_size: batch size Retur
wenet/dataset/process/processor_language_think.py:1361
↓ 1 callersFunctionstatic_batch
Static batch the data by `batch_size` Args: data: Iterable[{key, feat, label}] batch_size: batch size Retur
wenet/dataset/process/processor_tmp.py:1548
↓ 1 callersMethodsteps_per_second
(self, cur_step, restart=True)
wenet/utils/common.py:350
↓ 1 callersFunctionstripoff_tags
(x)
tools/compute-cer.py:50
↓ 1 callersFunctionstripoff_tags
(x)
tools/compute-wer.py:48
↓ 1 callersFunctionsubmit
(nworker, hostfile, port, sshport, cmd)
tools/ssh_launcher.py:96
↓ 1 callersMethodtail_process_fn
( self, hidden: torch.Tensor, alphas: torch.Tensor, token_num: Optional[torch.
wenet/paraformer/cif.py:110
↓ 1 callersMethodtar_file_and_group
(self, sample)
tools/compute_shard_cmvn_stats.py:116
↓ 1 callersMethodtext2tokens
(self, line: str)
wenet/text/base_tokenizer.py:20
↓ 1 callersMethodtie_or_clone_weights
(self, jit_mode: bool)
wenet/LLM/causallm_model.py:73
↓ 1 callersFunctiontokenize
Read biasing list from the biasing list address, tokenize and convert it into token id
wenet/utils/context_graph.py:24
↓ 1 callersMethodtokenize
(self, line: str)
wenet/text/whisper_tokenizer.py:66
↓ 1 callersMethodtokenize
(self, line: str)
wenet/text/base_tokenizer.py:9
↓ 1 callersFunctiontokenize_by_seg_dict
(seg_dict, txt)
wenet/text/tokenize_utils.py:22
↓ 1 callersMethodtokens2ids
(self, tokens: List[Type])
wenet/text/hugging_face_tokenizer.py:42
↓ 1 callersMethodtokens2ids
(self, tokens: List[T])
wenet/text/base_tokenizer.py:28
↓ 1 callersMethodtokens2text
(self, tokens: List[T])
wenet/text/base_tokenizer.py:24
↓ 1 callersFunctiontrace_and_print_model
(args, model)
wenet/utils/train_utils.py:587
↓ 1 callersMethodtrain
Train one epoch
wenet/utils/executor.py:42
↓ 1 callersMethodtranscribe
(self, audio_file: str, tokens_info: bool = False)
wenet/cli/model.py:138
↓ 1 callersFunctionuint16_to_float
(value, min, range)
wenet/dataset/kaldi_io.py:504
↓ 1 callersFunctionuint8_to_float_v2
(vec, p0, p25, p75, p100)
wenet/dataset/kaldi_io.py:508
↓ 1 callersFunctionupdate_parameter_and_lr
(model, optimizer, scheduler, scaler, info_dict)
wenet/utils/train_utils.py:757
↓ 1 callersMethodurl_opener
(self, data)
tools/compute_shard_cmvn_stats.py:96
↓ 1 callersMethodurl_opener
(self, data)
tools/extract_shard_data.py:50
↓ 1 callersFunctionusage
()
tools/compute-cer.py:294
↓ 1 callersFunctionusage
()
tools/compute-wer.py:287
↓ 1 callersMethodvocab_size
(self)
wenet/text/char_tokenizer.py:75
↓ 1 callersFunctionwenet_fsdp_wrap_policy
(mode)
wenet/utils/fsdp_utils.py:39
↓ 1 callersFunctionwrap_cuda_model
(args, model, configs=None)
wenet/utils/train_utils.py:427
↓ 1 callersFunctionwrite_mat
write_mat(f, m, key='') Write a binary kaldi matrix to filename or stream. Supports 32bit and 64bit floats. Arguments: file_or_fd : filename o
wenet/dataset/kaldi_io.py:558
↓ 1 callersFunctionws_rec
(data, ws_uri)
tools/websocket/performance-ws.py:35
Method__call__
(self, batch)
tools/compute_shard_cmvn_stats.py:41
Method__call__
(self, batch)
tools/compute_cmvn_stats.py:25
Method__call__
(self, input_ids, scores)
patches/custom_speech_ngram_blocking.py:33
Method__call__
在每个时间步处理logits,对不符合条件的token设置极小的概率。 参数: input_ids (torch.Tensor): 当前输入的token ID序列 logits (torch.Tensor): 当前时间步的logit
patches/custom_speech_ngram_blocking.py:96
Method__call__
(self, input_ids, scores)
patches/custom_speech_repetition_penalty.py:12
Method__call__
(self, input_ids, scores)
patches/cumstom_stop_criteria.py:9
Method__call__
(self, input_ids, scores)
patches/cumstom_stop_criteria.py:20
Method__call__
(self, input_ids, scores)
patches/cumstom_stop_criteria.py:34
Method__call__
(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs)
patches/cumstom_stop_criteria.py:57
Method__call__
(self, input_ids, scores, **kwargs)
patches/cumstom_stop_criteria.py:73
Method__call__
(self, input_ids, scores, **kwargs)
patches/cumstom_stop_criteria.py:80
Method__getitem__
(self, idx)
tools/compute_cmvn_stats.py:76
Method__getstate__
(self)
wenet/text/hugging_face_tokenizer.py:16
Method__getstate__
(self)
wenet/text/whisper_tokenizer.py:36
Method__init__
(self, feat_dim, resample_rate)
tools/compute_shard_cmvn_stats.py:37
Method__init__
(self, file_list)
tools/compute_shard_cmvn_stats.py:80
Method__init__
(self, feat_dim, resample_rate)
tools/compute_cmvn_stats.py:20
Method__init__
(self, data_file)
tools/compute_cmvn_stats.py:66
Method__init__
(self)
tools/compute-cer.py:93
Method__init__
(self, file_list, flag)
tools/extract_shard_data.py:33
Method__init__
(self)
tools/compute-wer.py:87
Method__init__
speech_token_num: int, speech token 的数量(token_id in [0, speech_token_num) 视为 speech token) repeat_times: int, 普通 speech token 的最大允许连续
patches/custom_speech_ngram_blocking.py:5
Method__init__
初始化OSUM_chat_LogitsProcessor。 参数: allowed_tokens (list): 允许出现在当前时间步的token的ID列表 sequence_to_match (list): 用来判断当前时间步允许
patches/custom_speech_ngram_blocking.py:78
Method__init__
(self, *args, **kwargs)
patches/modelling_fm_infer_gpu.py:10
Method__init__
(self, speech_token_num, penalty=1.2)
patches/custom_speech_repetition_penalty.py:4
Method__init__
(self, config: Qwen2Config, layer_idx: int)
patches/modelling_qwen2_infer_gpu.py:136
← previousnext →501–600 of 1,198, ranked by callers