Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QwenLM/Qwen-Audio
/ functions
Functions
232 in github.com/QwenLM/Qwen-Audio
⨍
Functions
232
◇
Types & classes
49
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
Function
add_file
(history, task_history, file)
web_demo_audio.py:176
Function
add_mic
(history, task_history, file)
web_demo_audio.py:181
Function
add_text
(history, task_history, text)
web_demo_audio.py:171
Method
chat_stream
( self, tokenizer: PreTrainedTokenizer, query: str, history: O
modeling_qwen.py:1232
Function
collate_fn
(inputs, tokenizer)
eval_audio/evaluate_note_analysis.py:75
Function
collate_fn
(inputs, tokenizer)
eval_audio/evaluate_asr.py:51
Function
collate_fn
(inputs, tokenizer)
eval_audio/evaluate_vocal_sound.py:46
Function
collate_fn
(inputs, tokenizer)
eval_audio/evaluate_caption.py:81
Function
collate_fn
(inputs, tokenizer)
eval_audio/evaluate_st.py:46
Function
collate_fn
(inputs, tokenizer)
eval_audio/evaluate_aqa.py:47
Function
collate_fn
(inputs, tokenizer)
eval_audio/evaluate_scene.py:47
Function
collate_fn
(inputs, tokenizer)
eval_audio/evaluate_srwt.py:49
Function
collate_fn
(inputs, tokenizer)
eval_audio/evaluate_emotion.py:46
Method
convert_tokens_to_string
Converts a sequence of tokens in a single string.
tokenization_qwen.py:430
Method
create_custom_forward
(module)
modeling_qwen.py:900
Method
custom_forward
(*inputs)
modeling_qwen.py:901
Method
forward
(self, q, k, v, attention_mask=None)
modeling_qwen.py:180
Method
forward
( self, hidden_states: Optional[Tuple[torch.FloatTensor]], rotary_pos_emb_list: Option
modeling_qwen.py:410
Method
forward
(self, hidden_states)
modeling_qwen.py:572
Method
forward
( self, hidden_states: Optional[Tuple[torch.FloatTensor]], rotary_pos_emb_list: Option
modeling_qwen.py:597
Method
forward
( self, input_ids: Optional[torch.LongTensor] = None, past_key_values: Optional[Tuple[
modeling_qwen.py:743
Method
forward
( self, input_ids: Optional[torch.LongTensor] = None, past_key_values: Optional[Tuple[
modeling_qwen.py:1085
← previous
next →
101–200 of 232, ranked by callers