MCPcopy Create free account

hub / github.com/argmaxinc/whisperkittools / functions

Functions200 in github.com/argmaxinc/whisperkittools

↓ 17 callersMethod__init__
(self, config: WavLMConfig)
whisperkit/wavlm.py:310
↓ 11 callersMethodfrom_pretrained
( self, local_checkpoint_path: str, sliding_window_stride: int | None = None )
whisperkit/diarization/sseriouss_speaker_segmenter.py:102
↓ 6 callersFunctionplace
(t)
tests/test_text_decoder.py:404
↓ 2 callersMethod__init__
(self, config: WhisperConfig)
whisperkit/audio_encoder.py:71
↓ 2 callersMethod__init__
(self, config: WhisperConfig)
whisperkit/text_decoder.py:130
↓ 2 callersMethodclassifier_head
(self, hidden_states, attention_mask)
whisperkit/wavlm.py:461
↓ 2 callersMethodconfigure_for_token_timestamps
Setup forward pass to return attention weights from alignment heads as output
whisperkit/text_decoder.py:143
↓ 2 callersMethodget_mel_filters
(n_mels)
whisperkit/audio_encoder.py:178
↓ 2 callersMethodtranscribe
Transcribe an audio file using PyTorch OpenAI Whisper
whisperkit/pipelines.py:522
↓ 2 callersMethodxvector_head
(self, hidden_states, intermediate_outputs, attention_mask)
whisperkit/wavlm.py:387
↓ 1 callersMethod__call__
(self, s: str)
whisperkit/evaluate/normalize_en.py:83
↓ 1 callersMethod__init__
(self, remove_diacritics: bool = False, split_letters: bool = False)
whisperkit/evaluate/normalize_en.py:79
↓ 1 callersMethod__init__
Decomposition of `torch.stft` using non-complex dtypes Reference: https://github.com/pseeth/torch-stft
whisperkit/android/models.py:34
↓ 1 callersMethod_fill_lut
Given a `WhisperTextDecoder` instance, pre-compute the autoregressive decoder loop using forced decoder context prefix tokens and save results
whisperkit/text_decoder.py:329
↓ 1 callersFunction_get_audio_paths
(source_dir)
whisperkit/evaluate/datasets.py:132
↓ 1 callersMethod_maybe_compress_audio_file
If size of file at `audio_file_path` is larger than OpenAI API max file size, compress with ffmpeg
whisperkit/pipelines.py:734
↓ 1 callersMethod_maybe_init_client
(self)
whisperkit/pipelines.py:728
↓ 1 callersFunction_prepare_test_inputs_for_decoder
Prepare random test inputs with: - Key-value cache - Fixed length encoder context utilization - Randomized length decoder context uti
whisperkit/test_utils.py:35
↓ 1 callersFunction_prepare_test_inputs_for_encoder
(embed_dim, n_mels, batch_size,
whisperkit/test_utils.py:214
↓ 1 callersMethodbuild_cli
(self)
whisperkit/pipelines.py:80
↓ 1 callersFunctioncli
f""" Evaluates models from {MODEL_REPO_ID} on benchmark datasets and publishes results to hf.co/datasets/{EVALS_REPO_ID}
scripts/evaluate_model.py:17
↓ 1 callersMethodclone_models
(self)
whisperkit/pipelines.py:84
↓ 1 callersMethodclone_repo
(self)
whisperkit/pipelines.py:76
↓ 1 callersMethodcompute_alignment_heads_attention_weights
(self)
whisperkit/text_decoder.py:157
↓ 1 callersFunctionevaluate
Evaluate the given whisper pipeline implementation on a registered dataset.
whisperkit/evaluate/evaluate.py:62
↓ 1 callersFunctionevaluate_sample
Evaluate a single audio file with whisper_pipeline
whisperkit/evaluate/evaluate.py:225
↓ 1 callersMethodforward
(self, input_values, attention_mask=None)
whisperkit/wavlm.py:319
↓ 1 callersFunctionget_dataset
(dataset_name, cache_dir, max_num_samples=-1, language_subset=None)
whisperkit/evaluate/datasets.py:22
↓ 1 callersFunctionget_dir_size
(root_dir)
scripts/generate_model.py:291
↓ 1 callersFunctionget_hub_compile_options
AI Hub compile options recommended for the model
whisperkit/android/utils.py:40
↓ 1 callersFunctionget_pipeline_cls
(cls_name)
whisperkit/pipelines.py:817
↓ 1 callersMethodget_powerset_probs
(self, waveform_sliding_window: torch.Tensor, attention_mask=None)
whisperkit/diarization/sseriouss_speaker_segmenter.py:137
↓ 1 callersFunctionget_text_diffs
(reference, prediction)
whisperkit/evaluate/evaluate.py:373
↓ 1 callersFunctionget_total_size_in_mb
(*dirs)
scripts/generate_model.py:286
↓ 1 callersFunctionload_whisper_model
Load a Whisper model from either Hugging Face hub or local path Args: model_path: Either a Hugging Face model ID or local directory path
tests/test_text_decoder.py:47
↓ 1 callersFunctionmain
(args)
tests/test_text_decoder.py:412
↓ 1 callersFunctionmain
(args)
tests/test_evaluate.py:132
↓ 1 callersFunctionmain
(args)
tests/test_audio_encoder.py:222
↓ 1 callersFunctionmain
(args)
tests/apple/speaker_segmenter/test_sseriouss.py:85
↓ 1 callersFunctionpad_center
Same function as `librosa.util.pad_center`
whisperkit/android/models.py:15
↓ 1 callersMethodpostprocess
(self, s: str)
whisperkit/evaluate/normalize_en.py:481
↓ 1 callersMethodpre_transformer_proj
(self, melspectrogram_features: torch.Tensor)
whisperkit/audio_encoder.py:118
↓ 1 callersMethodpreprocess
(self, s: str)
whisperkit/evaluate/normalize_en.py:452
↓ 1 callersMethodpreprocess_audio_file
(self, audio_file_path: str)
whisperkit/pipelines.py:376
↓ 1 callersMethodprocess_words
(self, words: List[str])
whisperkit/evaluate/normalize_en.py:229
↓ 1 callersFunctionrearrange_quantized_variants
Move quantized variants from nested folders into publishable structure
scripts/generate_model.py:222
↓ 1 callersFunctionregister_torch_ops_for_speaker_segmenter
()
whisperkit/diarization/diarization_utils.py:13
↓ 1 callersFunctionremove_symbols_and_diacritics
Replace any other markers, symbols, and punctuations with a space, and drop any diacritics (category 'Mn' and some manual mappings)
whisperkit/evaluate/normalize_en.py:46
↓ 1 callersFunctionreplace_character
(char)
whisperkit/evaluate/normalize_en.py:52
↓ 1 callersMethodsetUpClass
(cls)
tests/test_audio_encoder.py:46
↓ 1 callersMethodtask_and_language_to_task_idx
Args: task: 0->transcribe, 1->translate language: Original token index from vocab, e.g. <|en|>=50259
whisperkit/text_decoder.py:466
↓ 1 callersMethodtask_idx_to_task_and_language
Args: task_idx: Refers to the flattened index representing selected task & language
whisperkit/text_decoder.py:476
↓ 1 callersMethodtearDownClass
(cls)
tests/test_audio_encoder.py:106
↓ 1 callersMethodtranscribe
Transcribe an audio file using the Whisper pipeline
whisperkit/pipelines.py:88
↓ 1 callersMethodtranscribe_folder
Transcribe an audio folder using the WhisperKit CLI
whisperkit/pipelines.py:266
↓ 1 callersFunctionupload_compression_artifacts
(local_folder_path, model_version)
scripts/generate_model.py:198
↓ 1 callersFunctionupload_version
(local_folder_path, model_version)
scripts/generate_model.py:162
↓ 1 callersFunctionwavlm_torchaudio2hf_dict_adjustment
(state_dict)
whisperkit/diarization/sseriouss_speaker_segmenter.py:219
Method__call__
( self, audio_file_path: str, forced_language: Optional[str] = None, prompt: O
whisperkit/pipelines.py:98
Method__call__
(self, audio_file_path: str)
whisperkit/pipelines.py:776
Method__call__
(self, s: str)
whisperkit/evaluate/normalize_en.py:98
Method__call__
(self, s: str)
whisperkit/evaluate/normalize_en.py:506
Method__call__
(self, s: str)
whisperkit/evaluate/normalize_en.py:524
Method__call__
(self, s: str)
whisperkit/evaluate/normalize_en.py:589
Method__init__
(self, config: WhisperConfig)
whisperkit/audio_encoder.py:24
Method__init__
(self, n_mels=80, n_fft=400, hop_length=160)
whisperkit/audio_encoder.py:170
Method__init__
(self, config, do_norm, layer_id=0)
whisperkit/wavlm.py:24
Method__init__
(self, config)
whisperkit/wavlm.py:57
Method__init__
(self, config)
whisperkit/wavlm.py:74
Method__init__
(self, config)
whisperkit/wavlm.py:91
Method__init__
(self, embed_dim, num_heads, num_buckets=320, max_distance=800)
whisperkit/wavlm.py:120
Method__init__
(self, config: WavLMConfig)
whisperkit/wavlm.py:172
Method__init__
(self, config: WavLMConfig)
whisperkit/wavlm.py:208
Method__init__
(self, config)
whisperkit/wavlm.py:235
Method__init__
(self, config)
whisperkit/wavlm.py:267
Method__init__
(self, config: WavLMConfig)
whisperkit/wavlm.py:294
Method__init__
(self, config: WavLMConfig)
whisperkit/wavlm.py:330
Method__init__
(self, config: WavLMConfig)
whisperkit/wavlm.py:336
Method__init__
(self, config, layer_id: int)
whisperkit/wavlm.py:351
Method__init__
(self, config: WavLMConfig)
whisperkit/wavlm.py:369
Method__init__
(self, config: WavLMConfig)
whisperkit/wavlm.py:441
Method__init__
(self, config: WavLMConfig)
whisperkit/wavlm.py:454
Method__init__
(self, config: WavLMConfig)
whisperkit/wavlm.py:487
Method__init__
(self, whisper_version: str, out_dir: Optional[str], code_c
whisperkit/pipelines.py:37
Method__init__
(self, whisper_version: str = _constants.OPENAI_API_MODEL_VERSION, out_dir:
whisperkit/pipelines.py:700
Method__init__
(self, config: WhisperConfig)
whisperkit/text_decoder.py:32
Method__init__
Enumerates all TextDecoder context prefixes that define a valid task, precomputes the KV cache values and initializes an `nn.Embeddin
whisperkit/text_decoder.py:249
Method__init__
(self, code_commit_hash, model_commit_hash)
whisperkit/test_utils.py:19
Method__init__
(self)
whisperkit/evaluate/normalize_en.py:114
Method__init__
(self, english_spelling_mapping)
whisperkit/evaluate/normalize_en.py:521
Method__init__
(self, english_spelling_mapping=abbr)
whisperkit/evaluate/normalize_en.py:529
Method__init__
(self, sliding_window_stride: int | None = None)
whisperkit/diarization/sseriouss_speaker_segmenter.py:57
Method__init__
(self, n_mels=80, n_fft=400, hop_length=160)
whisperkit/android/models.py:84
Function_get_context_prefill_from
Helper function to run the HuggingFace WhisperDecoder implementation in prefill mode using the I/O format of Argmax WhisperDecoder implementa
whisperkit/test_utils.py:133
Method_get_empty_context_inputs
Build and return inputs for the first decoding step with empty caches. Should be finalized with <|startoftranscript|> query tokens downstr
whisperkit/text_decoder.py:347
Function_prepare_test_inputs_for_decoder_from_cfg
(batch_size: int, cfg: modeling_whisper.WhisperConfig)
whisperkit/test_utils.py:119
Function_prepare_test_inputs_for_encoder_from_cfg
(batch_size: int, cfg: modeling_whisper.WhisperConfig)
whisperkit/test_utils.py:204
Method_update_cache_related_inputs
Run the decoder on current inputs and update kv caches
whisperkit/text_decoder.py:394
Methodbuild_cli
(self)
whisperkit/pipelines.py:142
Methodbuild_cli
(self)
whisperkit/pipelines.py:349
next →1–100 of 200, ranked by callers