MCPcopy Create free account

hub / github.com/QwenLM/Qwen-Audio / functions

Functions232 in github.com/QwenLM/Qwen-Audio

Method__init__
(self, config)
modeling_qwen.py:961
Method__init__
(self, dim, base=10000)
modeling_qwen.py:1342
Method__init__
(self, dim: int, eps: float = 1e-6)
modeling_qwen.py:1413
Method__init__
(self, stop_words_ids: Iterable[Iterable[int]], eos_token_id: int)
qwen_generation_utils.py:329
Method__init__
( self, vocab_file, errors="replace", audio_start_tag='<audio>
tokenization_qwen.py:120
Method__init__
(self, n_state: int, n_head: int)
audio.py:257
Method__init__
(self, n_state: int, n_head: int, cross_attention: bool = False)
audio.py:305
Method__init__
(self, ds, prompt)
eval_audio/evaluate_note_analysis.py:53
Method__init__
(self, size)
eval_audio/evaluate_note_analysis.py:92
Method__init__
(self, ds, prompt)
eval_audio/evaluate_asr.py:28
Method__init__
(self, size)
eval_audio/evaluate_asr.py:68
Method__init__
(self, ds, prompt)
eval_audio/evaluate_vocal_sound.py:24
Method__init__
(self, size)
eval_audio/evaluate_vocal_sound.py:63
Method__init__
( self, tokenizer_type: str = "13a", lowercase: bool = False, punctuation_remo
eval_audio/evaluate_tokenizer.py:27
Method__init__
(self, preds_str, trues_str)
eval_audio/metrics.py:87
Method__init__
(self, ds, prompt)
eval_audio/evaluate_caption.py:58
Method__init__
(self, size)
eval_audio/evaluate_caption.py:98
Method__init__
(self, ds, prompt)
eval_audio/evaluate_st.py:22
Method__init__
(self, size)
eval_audio/evaluate_st.py:63
Method__init__
(self, ds, prompt)
eval_audio/evaluate_aqa.py:24
Method__init__
(self, size)
eval_audio/evaluate_aqa.py:64
Method__init__
(self, ds, prompt)
eval_audio/evaluate_scene.py:25
Method__init__
(self, size)
eval_audio/evaluate_scene.py:64
Method__init__
(self, ds, prompt)
eval_audio/evaluate_srwt.py:26
Method__init__
(self, size)
eval_audio/evaluate_srwt.py:66
Method__init__
(self)
eval_audio/evaluate_srwt.py:126
Method__init__
(self, ds, prompt)
eval_audio/evaluate_emotion.py:24
Method__init__
(self, size)
eval_audio/evaluate_emotion.py:63
Method__init__
:param scores: Scores to use, from the list of overall SED eval scores. The first score in the tuple will be the primary score fo
eval_audio/heareval_score.py:193
Method__iter__
(self)
eval_audio/evaluate_note_analysis.py:110
Method__iter__
(self)
eval_audio/evaluate_asr.py:86
Method__iter__
(self)
eval_audio/evaluate_vocal_sound.py:81
Method__iter__
(self)
eval_audio/evaluate_caption.py:116
Method__iter__
(self)
eval_audio/evaluate_st.py:81
Method__iter__
(self)
eval_audio/evaluate_aqa.py:82
Method__iter__
(self)
eval_audio/evaluate_scene.py:82
Method__iter__
(self)
eval_audio/evaluate_srwt.py:84
Method__iter__
(self)
eval_audio/evaluate_emotion.py:81
Method__len__
(self)
tokenization_qwen.py:249
Method__len__
(self)
eval_audio/evaluate_note_analysis.py:58
Method__len__
(self)
eval_audio/evaluate_note_analysis.py:113
Method__len__
(self)
eval_audio/evaluate_asr.py:34
Method__len__
(self)
eval_audio/evaluate_asr.py:89
Method__len__
(self)
eval_audio/evaluate_vocal_sound.py:29
Method__len__
(self)
eval_audio/evaluate_vocal_sound.py:84
Method__len__
(self)
eval_audio/evaluate_caption.py:64
Method__len__
(self)
eval_audio/evaluate_caption.py:119
Method__len__
(self)
eval_audio/evaluate_st.py:27
Method__len__
(self)
eval_audio/evaluate_st.py:84
Method__len__
(self)
eval_audio/evaluate_aqa.py:29
Method__len__
(self)
eval_audio/evaluate_aqa.py:85
Method__len__
(self)
eval_audio/evaluate_scene.py:30
Method__len__
(self)
eval_audio/evaluate_scene.py:85
Method__len__
(self)
eval_audio/evaluate_srwt.py:32
Method__len__
(self)
eval_audio/evaluate_srwt.py:87
Method__len__
(self)
eval_audio/evaluate_emotion.py:29
Method__len__
(self)
eval_audio/evaluate_emotion.py:84
Method__setstate__
(self, state)
tokenization_qwen.py:238
Method__str__
(self)
eval_audio/heareval_score.py:134
Method_add_tokens
(self, new_tokens: Union[List[str], List[AddedToken]], special_tokens: bool = False)
tokenization_qwen.py:271
Method_batch_encode_plus
( self, batch_text_or_text_pairs: Union[ List[TextInput],
tokenization_qwen.py:340
Method_compute
(self, predictions: np.ndarray, targets: np.ndarray, **kwargs)
eval_audio/heareval_score.py:141
Method_compute
(self, predictions: np.ndarray, targets: np.ndarray, **kwargs)
eval_audio/heareval_score.py:168
Method_compute
( self, predictions: Dict, targets: Dict, **kwargs )
eval_audio/heareval_score.py:214
Method_compute
(self, predictions: np.ndarray, targets: np.ndarray, **kwargs)
eval_audio/heareval_score.py:299
Method_compute
(self, predictions: np.ndarray, targets: np.ndarray, **kwargs)
eval_audio/heareval_score.py:353
Method_conv_forward
( self, x: Tensor, weight: Tensor, bias: Optional[Tensor] )
audio.py:239
Method_convert_id_to_token
Converts an id to a token, special tokens included
tokenization_qwen.py:454
Method_convert_token_to_id
Converts a token to an id using the vocab, special tokens included
tokenization_qwen.py:460
Method_decode
( self, token_ids: Union[int, List[int]], skip_special_tokens: bool = Fals
tokenization_qwen.py:477
Method_decode_audiourl
(audio_token_ids, audio_info, audio_idx)
tokenization_qwen.py:488
Method_encode_audio_info
(tokens)
tokenization_qwen.py:505
Method_encode_audiourl
(audio_tokens, audio_info, audio_idx)
tokenization_qwen.py:330
Method_init_weights
Initialize the weights.
modeling_qwen.py:651
Method_intersection
(self, list1, list2)
eval_audio/evaluate_srwt.py:137
Method_reorder_cache
( past_key_values: Tuple[Tuple[torch.Tensor]], beam_idx: torch.Tensor )
modeling_qwen.py:1151
Method_set_gradient_checkpointing
(self, module, value=False)
modeling_qwen.py:674
Method_tokenize
Converts a string in a sequence of tokens (string), using the tokenizer. Split in words for word-based vocabulary or sub-words for su
tokenization_qwen.py:468
Functionadd_file
(history, task_history, file)
web_demo_audio.py:176
Functionadd_mic
(history, task_history, file)
web_demo_audio.py:181
Functionadd_text
(history, task_history, text)
web_demo_audio.py:171
Methodchat_stream
( self, tokenizer: PreTrainedTokenizer, query: str, history: O
modeling_qwen.py:1232
Functioncollate_fn
(inputs, tokenizer)
eval_audio/evaluate_note_analysis.py:75
Functioncollate_fn
(inputs, tokenizer)
eval_audio/evaluate_asr.py:51
Functioncollate_fn
(inputs, tokenizer)
eval_audio/evaluate_vocal_sound.py:46
Functioncollate_fn
(inputs, tokenizer)
eval_audio/evaluate_caption.py:81
Functioncollate_fn
(inputs, tokenizer)
eval_audio/evaluate_st.py:46
Functioncollate_fn
(inputs, tokenizer)
eval_audio/evaluate_aqa.py:47
Functioncollate_fn
(inputs, tokenizer)
eval_audio/evaluate_scene.py:47
Functioncollate_fn
(inputs, tokenizer)
eval_audio/evaluate_srwt.py:49
Functioncollate_fn
(inputs, tokenizer)
eval_audio/evaluate_emotion.py:46
Methodconvert_tokens_to_string
Converts a sequence of tokens in a single string.
tokenization_qwen.py:430
Methodcreate_custom_forward
(module)
modeling_qwen.py:900
Methodcustom_forward
(*inputs)
modeling_qwen.py:901
Methodforward
(self, q, k, v, attention_mask=None)
modeling_qwen.py:180
Methodforward
( self, hidden_states: Optional[Tuple[torch.FloatTensor]], rotary_pos_emb_list: Option
modeling_qwen.py:410
Methodforward
(self, hidden_states)
modeling_qwen.py:572
Methodforward
( self, hidden_states: Optional[Tuple[torch.FloatTensor]], rotary_pos_emb_list: Option
modeling_qwen.py:597
Methodforward
( self, input_ids: Optional[torch.LongTensor] = None, past_key_values: Optional[Tuple[
modeling_qwen.py:743
Methodforward
( self, input_ids: Optional[torch.LongTensor] = None, past_key_values: Optional[Tuple[
modeling_qwen.py:1085
← previousnext →101–200 of 232, ranked by callers