Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FunAudioLLM/Fun-Audio-Chat
/ functions
Functions
257 in github.com/FunAudioLLM/Fun-Audio-Chat
⨍
Functions
257
◇
Types & classes
28
Method
default_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
Function
eager_attention_forward
( module: nn.Module, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, attentio
funaudiochat/modeling_funaudiochat.py:77
Method
encode_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
Method
filter
(self, record)
training/plugin/sitecustomize.py:30
Method
forward
( self, hidden_states: torch.Tensor, cu_seqlens: Optional[torch.Tensor] = None,
funaudiochat/modeling_funaudiochat.py:130
Method
forward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
funaudiochat/modeling_funaudiochat.py:187
Method
forward
(self, seqlen: int)
funaudiochat/modeling_funaudiochat.py:242
Method
forward
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
Method
forward
( self, audio_ids, continuous_audio_features=None, continuous_audio_output_len
funaudiochat/modeling_funaudiochat.py:518
Method
forward
( self, inputs_embeds=None, audio_embeds=None, labels=None, attention_
funaudiochat/modeling_funaudiochat.py:685
Method
forward
r""" Args: input_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`): Indices of input sequence toke
funaudiochat/modeling_funaudiochat.py:878
Function
getAPIClient
(url:string)
web_demo/client/src/pages/Queue/api/client.ts:5
Method
get_decoder
(self)
funaudiochat/modeling_funaudiochat.py:823
Method
get_latest_step
(self)
web_demo/server/funaudiochat_infer.py:137
Method
get_mm_inputs
Get multimodal inputs for training.
training/plugin/mm_plugins.py:209
Method
get_output_embeddings
(self)
funaudiochat/modeling_funaudiochat.py:814
Method
get_results
(self)
web_demo/server/funaudiochat_infer.py:170
Function
handleMouseEnter
()
web_demo/client/src/components/ImageGallery/ImageGallery.tsx:80
Function
handleMouseLeave
()
web_demo/client/src/components/ImageGallery/ImageGallery.tsx:83
Function
handleShuffle
()
web_demo/client/src/components/ImageGallery/ImageGallery.tsx:117
Method
handle_chat
(self, request)
web_demo/server/server.py:237
Function
infer_function_calling_example
Function Calling 推理示例函数(仅生成文本,不生成语音) Args: model_path: 模型路径 audio_path: 输入音频路径
examples/infer_s2t.py:74
Function
infer_multiturn_example
多轮对话推理示例函数,这里我们采用assistant生成的text作为下一轮的输入 Args: model_path: 模型路径 audio_paths: 输入音频路径列表
examples/infer_s2s.py:92
Method
logits
(self)
funaudiochat/modeling_funaudiochat.py:42
Function
mimeTypeCheck
()
web_demo/client/src/pages/Conversation/getMimeType.ts:1
Method
model_input_names
(self)
funaudiochat/processing_funaudiochat.py:350
Function
o
(e, t)
web_demo/client/public/assets/decoderWorker.min.js:89
Method
padding_side
(self)
funaudiochat/modeling_funaudiochat.py:799
Function
parallel_function_checker_enforce_order
( func_descriptions: list, model_output: list, possible_answers: dict, language: str, mode
evaluate/SpeechFCEval/utils/compute_metrics_bfcl.py:506
Function
parse_json
(file_path)
evaluate/SpeechFCEval/utils/compute_metrics_bfcl.py:40
Function
parse_json
(file_path)
evaluate/SpeechFCEval/utils/compute_metrics_acebench.py:39
Function
print_attn_implementation
Print the attention implementation being used. Args: config: The model configuration
training/plugin/attention.py:105
Function
print_attn_implementation_wrapper
(config)
training/plugin/registration.py:78
Method
process
(inputs, outputs, parameters)
web_demo/client/src/audio-processor.ts:157
Method
process_messages
Process messages and replace audio placeholders.
training/plugin/mm_plugins.py:158
Function
quit_
(status, toThrow)
web_demo/client/public/assets/decoderWorker.min.js:317
Function
receiveInstantiationResult
(result)
web_demo/client/public/assets/decoderWorker.min.js:677
Method
recv_loop
()
web_demo/server/server.py:253
Method
resize_token_embeddings
(self, new_num_tokens: Optional[int] = None, pad_to_multiple_of=None)
funaudiochat/modeling_funaudiochat.py:832
Method
run_generation
()
web_demo/server/server.py:444
Method
save_audio_loop
Async tasks for handling audio saving and inference
web_demo/server/server.py:346
Function
save_json
(data_list, file_path)
evaluate/SpeechFCEval/utils/compute_metrics_bfcl.py:46
Function
save_json
(data_list, file_path)
evaluate/SpeechFCEval/utils/compute_metrics_acebench.py:45
Method
save_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
Function
sendControlBOS
()
web_demo/client/src/pages/Conversation/components/Controls/Controls.tsx:11
Function
sendControlEOS
()
web_demo/client/src/pages/Conversation/components/Controls/Controls.tsx:15
Method
send_audio_loop
Async coroutine: Read encoded Opus data from the queue and send at fixed time intervals
web_demo/server/server.py:941
Method
send_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
Method
set_decoder
(self, decoder)
funaudiochat/modeling_funaudiochat.py:820
Method
set_input_embeddings
(self, value)
funaudiochat/modeling_funaudiochat.py:811
Method
set_output_embeddings
(self, new_embeddings)
funaudiochat/modeling_funaudiochat.py:817
Method
stop_tts_process
(self)
web_demo/server/server.py:228
Method
tie_weights
(self)
funaudiochat/modeling_funaudiochat.py:826
Method
tts_receiver_thread_func
[Multiprocessing] Receiving output from the TTS process (only messages belonging to the current session)
web_demo/server/server.py:817
Method
tts_sender_thread_func
[Multiprocessing] Send audio tokens to the TTS process
web_demo/server/server.py:762
Function
tts_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
Function
useUserEmail
(isBypass: boolean)
web_demo/client/src/pages/Queue/hooks/useUserEmail.ts:6
← previous
201–257 of 257, ranked by callers