MCPcopy Create free account

hub / github.com/FunAudioLLM/Fun-Audio-Chat / functions

Functions257 in github.com/FunAudioLLM/Fun-Audio-Chat

Methoddefault_chat_template
This default vicuna template formats inputs in the form of a chat history. For each message in the chat history: * the template will
funaudiochat/processing_funaudiochat.py:501
Functioneager_attention_forward
( module: nn.Module, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, attentio
funaudiochat/modeling_funaudiochat.py:77
Methodencode_thread_func
Encoding thread: Take complete frames from audio_buffer, encode them into Opus, and place them into opus_bytes_queue
web_demo/server/server.py:849
Methodfilter
(self, record)
training/plugin/sitecustomize.py:30
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: Optional[torch.Tensor] = None,
funaudiochat/modeling_funaudiochat.py:130
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
funaudiochat/modeling_funaudiochat.py:187
Methodforward
(self, seqlen: int)
funaudiochat/modeling_funaudiochat.py:242
Methodforward
r""" input_features (`torch.float` of shape `(features_dim, N)`): N = sum(feature_lens) Float values of mel features extracted fro
funaudiochat/modeling_funaudiochat.py:307
Methodforward
( self, audio_ids, continuous_audio_features=None, continuous_audio_output_len
funaudiochat/modeling_funaudiochat.py:518
Methodforward
( self, inputs_embeds=None, audio_embeds=None, labels=None, attention_
funaudiochat/modeling_funaudiochat.py:685
Methodforward
r""" Args: input_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`): Indices of input sequence toke
funaudiochat/modeling_funaudiochat.py:878
FunctiongetAPIClient
(url:string)
web_demo/client/src/pages/Queue/api/client.ts:5
Methodget_decoder
(self)
funaudiochat/modeling_funaudiochat.py:823
Methodget_latest_step
(self)
web_demo/server/funaudiochat_infer.py:137
Methodget_mm_inputs
Get multimodal inputs for training.
training/plugin/mm_plugins.py:209
Methodget_output_embeddings
(self)
funaudiochat/modeling_funaudiochat.py:814
Methodget_results
(self)
web_demo/server/funaudiochat_infer.py:170
FunctionhandleMouseEnter
()
web_demo/client/src/components/ImageGallery/ImageGallery.tsx:80
FunctionhandleMouseLeave
()
web_demo/client/src/components/ImageGallery/ImageGallery.tsx:83
FunctionhandleShuffle
()
web_demo/client/src/components/ImageGallery/ImageGallery.tsx:117
Methodhandle_chat
(self, request)
web_demo/server/server.py:237
Functioninfer_function_calling_example
Function Calling 推理示例函数(仅生成文本,不生成语音) Args: model_path: 模型路径 audio_path: 输入音频路径
examples/infer_s2t.py:74
Functioninfer_multiturn_example
多轮对话推理示例函数,这里我们采用assistant生成的text作为下一轮的输入 Args: model_path: 模型路径 audio_paths: 输入音频路径列表
examples/infer_s2s.py:92
Methodlogits
(self)
funaudiochat/modeling_funaudiochat.py:42
FunctionmimeTypeCheck
()
web_demo/client/src/pages/Conversation/getMimeType.ts:1
Methodmodel_input_names
(self)
funaudiochat/processing_funaudiochat.py:350
Functiono
(e, t)
web_demo/client/public/assets/decoderWorker.min.js:89
Methodpadding_side
(self)
funaudiochat/modeling_funaudiochat.py:799
Functionparallel_function_checker_enforce_order
( func_descriptions: list, model_output: list, possible_answers: dict, language: str, mode
evaluate/SpeechFCEval/utils/compute_metrics_bfcl.py:506
Functionparse_json
(file_path)
evaluate/SpeechFCEval/utils/compute_metrics_bfcl.py:40
Functionparse_json
(file_path)
evaluate/SpeechFCEval/utils/compute_metrics_acebench.py:39
Functionprint_attn_implementation
Print the attention implementation being used. Args: config: The model configuration
training/plugin/attention.py:105
Functionprint_attn_implementation_wrapper
(config)
training/plugin/registration.py:78
Methodprocess
(inputs, outputs, parameters)
web_demo/client/src/audio-processor.ts:157
Methodprocess_messages
Process messages and replace audio placeholders.
training/plugin/mm_plugins.py:158
Functionquit_
(status, toThrow)
web_demo/client/public/assets/decoderWorker.min.js:317
FunctionreceiveInstantiationResult
(result)
web_demo/client/public/assets/decoderWorker.min.js:677
Methodrecv_loop
()
web_demo/server/server.py:253
Methodresize_token_embeddings
(self, new_num_tokens: Optional[int] = None, pad_to_multiple_of=None)
funaudiochat/modeling_funaudiochat.py:832
Methodrun_generation
()
web_demo/server/server.py:444
Methodsave_audio_loop
Async tasks for handling audio saving and inference
web_demo/server/server.py:346
Functionsave_json
(data_list, file_path)
evaluate/SpeechFCEval/utils/compute_metrics_bfcl.py:46
Functionsave_json
(data_list, file_path)
evaluate/SpeechFCEval/utils/compute_metrics_acebench.py:45
Methodsave_pretrained
Saves the attributes of this processor (feature extractor, tokenizer...) in the specified directory so that it can be reloaded using
funaudiochat/processing_funaudiochat.py:355
FunctionsendControlBOS
()
web_demo/client/src/pages/Conversation/components/Controls/Controls.tsx:11
FunctionsendControlEOS
()
web_demo/client/src/pages/Conversation/components/Controls/Controls.tsx:15
Methodsend_audio_loop
Async coroutine: Read encoded Opus data from the queue and send at fixed time intervals
web_demo/server/server.py:941
Methodsend_text_loop
Asynchronous coroutine: Read text from the text buffer queue and send it at 200ms intervals after audio transmission begins.
web_demo/server/server.py:997
Methodset_decoder
(self, decoder)
funaudiochat/modeling_funaudiochat.py:820
Methodset_input_embeddings
(self, value)
funaudiochat/modeling_funaudiochat.py:811
Methodset_output_embeddings
(self, new_embeddings)
funaudiochat/modeling_funaudiochat.py:817
Methodstop_tts_process
(self)
web_demo/server/server.py:228
Methodtie_weights
(self)
funaudiochat/modeling_funaudiochat.py:826
Methodtts_receiver_thread_func
[Multiprocessing] Receiving output from the TTS process (only messages belonging to the current session)
web_demo/server/server.py:817
Methodtts_sender_thread_func
[Multiprocessing] Send audio tokens to the TTS process
web_demo/server/server.py:762
Functiontts_worker_process
TTS independent process1, avoiding Python GIL Args: input_queue: (uuid, tokens_list, offset, finalize) output_queue: (uu
web_demo/server/server.py:56
FunctionuseUserEmail
(isBypass: boolean)
web_demo/client/src/pages/Queue/hooks/useUserEmail.ts:6
← previous201–257 of 257, ranked by callers