MCPcopy Create free account

hub / github.com/XiaoDu-flying/Interlat / functions

Functions1,013 in github.com/XiaoDu-flying/Interlat

↓ 1 callersFunctionget_conv
(model_name: str, worker_addr: str)
core_training/fastchat/serve/openai_api_server.py:388
↓ 1 callersFunctionget_embedding
(text: str, model, tokenizer, device: str)
eval/alfworld/eval_agent/agents/plan_agent.py:123
↓ 1 callersFunctionget_embedding
(text: str, model, tokenizer, device)
eval/alfworld/eval_agent/agents/hidden_agent.py:462
↓ 1 callersFunctionget_embedding
(payload: Dict[str, Any])
core_training/fastchat/serve/openai_api_server.py:755
↓ 1 callersMethodget_embeddings
(self, params)
core_training/fastchat/serve/model_worker.py:185
↓ 1 callersMethodget_embeddings
(self, params)
core_training/fastchat/serve/huggingface_api_worker.py:201
↓ 1 callersMethodget_embeddings
(self, params)
core_training/fastchat/serve/base_model_worker.py:176
↓ 1 callersFunctionget_gen_kwargs
( params, seed: Optional[int] = None, )
core_training/fastchat/serve/huggingface_api_worker.py:51
↓ 1 callersFunctionget_gpu_memory
Get available memory for each GPU.
core_training/fastchat/utils.py:129
↓ 1 callersFunctionget_gpu_memory_usage
()
eval/alfworld/eval_agent/main.py:66
↓ 1 callersMethodget_hidden_state_and_plan
(self, task_id)
eval/alfworld/eval_agent/main.py:171
↓ 1 callersMethodget_hidden_state_and_plan
(self, task_id)
core_training/hidden_state_loader.py:105
↓ 1 callersMethodget_hidden_state_and_plan
(self, task_id: str)
compression_training/compress.py:607
↓ 1 callersMethodget_items_with_tags
(self, input_tag: str)
eval/alfworld/eval_agent/envs/textcraft_env.py:284
↓ 1 callersFunctionget_model_info
(name: str)
core_training/fastchat/model/model_registry.py:21
↓ 1 callersFunctionget_next
()
core_training/fastchat/utils.py:256
↓ 1 callersMethodhandle_no_worker
(self, params)
core_training/fastchat/serve/controller.py:229
↓ 1 callersMethodhandle_worker_timeout
(self, worker_address)
core_training/fastchat/serve/controller.py:237
↓ 1 callersMethodhas_items
(self, items:List[ItemTagWithCount])
eval/alfworld/eval_agent/envs/textcraft_env.py:461
↓ 1 callersFunctioninfer_chain
Execute a three-layer reasoning chain with different roles and prompts
data_collection/alfworld_collection.py:290
↓ 1 callersFunctioninfer_chain
Execute a reasoning chain and save the sample (including task_type / task_level)
data_collection/math_collection.py:386
↓ 1 callersMethodinsert_plan_tokens
将plan文本插入到指定位置,前后加入特殊标记
eval/alfworld/eval_agent/agents/model_insert_hidden.py:903
↓ 1 callersMethodinsert_plan_tokens
(self, input_ids, attention_mask, labels, human_end_positions, plans)
core_training/hidden_model/custom_model.py:228
↓ 1 callersFunctioninteractive_loop
( task: tasks.Task, loader, agent: agents.LMAgent, pruning_config: Dict[str, Any], env_con
eval/alfworld/eval_agent/main.py:277
↓ 1 callersMethodis_craftable
(self, item: str)
eval/alfworld/eval_agent/envs/textcraft_env.py:275
↓ 1 callersFunctionis_limit_reached
(model_name, ip)
core_training/fastchat/serve/gradio_web_server.py:347
↓ 1 callersMethodis_model_limit_reached
(self, model: str)
core_training/fastchat/serve/call_monitor.py:77
↓ 1 callersFunctionis_rank0
()
compression_training/compress.py:122
↓ 1 callersFunctionis_sentence_complete
Check whether the output is a complete sentence.
core_training/fastchat/utils.py:313
↓ 1 callersMethodis_user_limit_reached
(self, model: str, user_id: str)
core_training/fastchat/serve/call_monitor.py:87
↓ 1 callersMethodis_valid_item
(self, item: str)
eval/alfworld/eval_agent/envs/textcraft_env.py:278
↓ 1 callersFunctionlaunch_all
()
core_training/fastchat/serve/launch_all_serve.py:256
↓ 1 callersFunctionlist_available_configs
List all available predefined configurations Returns: Dictionary mapping config names to descriptions
data_collection/config.py:267
↓ 1 callersMethodlist_language_models
(self)
core_training/fastchat/serve/controller.py:147
↓ 1 callersMethodlist_models
(self)
core_training/fastchat/serve/controller.py:130
↓ 1 callersMethodlist_multimodal_models
(self)
core_training/fastchat/serve/controller.py:138
↓ 1 callersFunctionload_adaptive_proj_from_deepspeed
从 DeepSpeed 的 mp_rank_00_model_states.pt 中恢复 - model.adaptive_proj.* 参数 - model.scale / model.output_scale(如果在 ckpt 里有) 同时: - 优先
eval/alfworld/eval_agent/agents/hidden_agent.py:152
↓ 1 callersFunctionload_awq_quantized
(model_name, awq_config: AWQConfig, device)
core_training/fastchat/modules/awq.py:24
↓ 1 callersFunctionload_compress_model
(model_path, device, torch_dtype, use_fast, revision="main")
core_training/fastchat/model/compression.py:109
↓ 1 callersMethodload_compress_model
(self, model_path, device, torch_dtype, revision="main")
core_training/fastchat/model/model_adapter.py:117
↓ 1 callersFunctionload_dataset_configs
Load dataset configurations
eval/alfworld/eval_agent/main.py:88
↓ 1 callersMethodload_dataset_for_task
Load the dataset for the specific task
data_collection/base_data_collector.py:675
↓ 1 callersFunctionload_demo_side_by_side_anony
(models_, url_params)
core_training/fastchat/serve/gradio_block_arena_anony.py:51
↓ 1 callersFunctionload_demo_side_by_side_named
(models, url_params)
core_training/fastchat/serve/gradio_block_arena_named.py:48
↓ 1 callersFunctionload_exllama_model
(model_path, exllama_config: ExllamaConfig)
core_training/fastchat/modules/exllama.py:19
↓ 1 callersFunctionload_file
(filepath: str)
eval/alfworld/eval_agent/utils/__init__.py:6
↓ 1 callersFunctionload_gptq_quantized
(model_name, gptq_config: GptqConfig)
core_training/fastchat/modules/gptq.py:29
↓ 1 callersMethodload_json
(cls, json_dict: Dict[str, Any])
eval/alfworld/eval_agent/utils/datatypes.py:39
↓ 1 callersFunctionload_model
Load model and prepare for DDP
data_collection/alfworld_collection.py:208
↓ 1 callersFunctionload_model
Load model and prepare for DDP
data_collection/math_collection.py:314
↓ 1 callersMethodload_model_and_tokenizer
Load model and tokenizer with error handling
data_collection/base_data_collector.py:440
↓ 1 callersFunctionload_model_configs
Load model configurations
eval/alfworld/eval_agent/main.py:72
↓ 1 callersMethodload_tasks
(cls, split: str, part_num: int, part_idx: int)
eval/alfworld/eval_agent/tasks/base.py:21
↓ 1 callersFunctionload_xft_model
(model_path, xft_config: XftConfig)
core_training/fastchat/modules/xfastertransformer.py:24
↓ 1 callersFunctionmain
(args: argparse.Namespace)
eval/alfworld/eval_agent/main.py:659
↓ 1 callersFunctionmain
Main evaluation script
eval/math/math_evaluator.py:357
↓ 1 callersFunctionmain
(args)
core_training/fastchat/serve/huggingface_api.py:16
↓ 1 callersFunctionmain
(args)
core_training/fastchat/serve/cli.py:192
↓ 1 callersFunctionmain
()
core_training/fastchat/serve/test_throughput.py:12
↓ 1 callersFunctionmain
()
core_training/fastchat/serve/test_message.py:10
↓ 1 callersFunctionmain
Main execution function
data_collection/math_reasoning_collector.py:353
↓ 1 callersFunctionmain
()
data_collection/alfworld_collection.py:492
↓ 1 callersFunctionmain
Main execution function
data_collection/alfworld_task_collector.py:409
↓ 1 callersFunctionmain
()
data_collection/math_collection.py:665
↓ 1 callersFunctionmain
()
data_collection/collect_data.py:38
↓ 1 callersFunctionmain
()
compression_training/compress.py:974
↓ 1 callersMethodmake_conv_template
can be overrided to costomize the conversation template for different model workers.
core_training/fastchat/serve/base_model_worker.py:63
↓ 1 callersFunctionmake_delta
(base_model_path, target_model_path, delta_path)
core_training/fastchat/model/make_delta.py:14
↓ 1 callersFunctionmake_supervised_data_module
Create dataset and collator for supervised fine-tuning.
core_training/data_processor.py:523
↓ 1 callersFunctionmake_supervised_data_module
Build data module.
compression_training/compress.py:867
↓ 1 callersMethodmerge_distributed_data
Merge data from all ranks (called by rank 0)
data_collection/base_data_collector.py:342
↓ 1 callersFunctionmistral_api_stream_iter
(model_name, messages, temperature, top_p, max_new_tokens)
core_training/fastchat/serve/api_provider.py:378
↓ 1 callersFunctionmodel_worker_stream_iter
( conv, model_name, worker_addr, prompt, temperature, repetition_penalty, top_p,
core_training/fastchat/serve/gradio_web_server.py:304
↓ 1 callersMethodnormalize_hidden_to_embedding_distribution
将hidden_state的分布调整为与reference_embeds相似
eval/alfworld/eval_agent/agents/model_insert_hidden.py:799
↓ 1 callersFunctionnvidia_api_stream_iter
(model_name, messages, temp, top_p, max_tokens, api_base)
core_training/fastchat/serve/api_provider.py:420
↓ 1 callersFunctionoai_moderation
Check whether the text violates OpenAI moderation API.
core_training/fastchat/utils.py:151
↓ 1 callersFunctionopenai_api_stream_iter
( model_name, messages, temperature, top_p, max_new_tokens, api_base=None, api_key
core_training/fastchat/serve/api_provider.py:91
↓ 1 callersMethodparse_action
(self, llm_output: str)
eval/alfworld/eval_agent/envs/textcraft_env.py:562
↓ 1 callersMethodparse_action
(self, llm_output: str)
eval/alfworld/eval_agent/envs/webshop_env.py:31
↓ 1 callersMethodparse_action
(self, llm_output: str)
eval/alfworld/eval_agent/envs/alfworld_env.py:32
↓ 1 callersMethodparse_action
(self, llm_output: List[str])
eval/alfworld/eval_agent/envs/alfworld_env.py:280
↓ 1 callersMethodparse_action
(self, llm_output: str)
eval/alfworld/eval_agent/envs/sciworld_env.py:31
↓ 1 callersFunctionparse_args
()
compression_training/compress.py:957
↓ 1 callersFunctionparse_arguments
Parse command line arguments
data_collection/math_reasoning_collector.py:284
↓ 1 callersFunctionparse_arguments
Parse command line arguments
data_collection/alfworld_task_collector.py:351
↓ 1 callersFunctionprepare_logits_processor
( temperature: float, repetition_penalty: float, top_p: float, top_k: int )
core_training/fastchat/serve/inference.py:45
↓ 1 callersFunctionpreprocess_with_position_tracking
Preprocess conversations and track the position of the first human message end marker.
compression_training/compress.py:615
↓ 1 callersFunctionpretty_print_semaphore
Print a semaphore in better format.
core_training/fastchat/utils.py:212
↓ 1 callersMethodprint_output
Print output.
core_training/fastchat/serve/inference.py:333
↓ 1 callersMethodprocess_hidden_states_list
(self, hidden_states_list)
core_training/hidden_model/custom_model.py:211
↓ 1 callersFunctionprocess_response
(response)
core_training/fastchat/model/model_chatglm.py:24
↓ 1 callersMethodprocess_task_batch
Process a batch of task items and collect data
data_collection/base_data_collector.py:683
↓ 1 callersMethodprompt_for_input
Prompt for input from a role.
core_training/fastchat/serve/inference.py:321
↓ 1 callersFunctionraise_warning_for_incompatible_cpu_offloading_configuration
( device: str, load_8bit: bool, cpu_offloading: bool )
core_training/fastchat/model/model_adapter.py:158
↓ 1 callersMethodraise_warning_for_old_weights
(self, model)
core_training/fastchat/model/model_adapter.py:705
↓ 1 callersFunctionrandom_rot_hidden
RandomRot: H' = μ̂ + (H - μ̂) Σ̂^{-1/2} Q Σ̂^{1/2} Where Q is a Haar random orthogonal matrix, ensuring: - Exactly preserve mean / covari
eval/alfworld/eval_agent/main.py:214
↓ 1 callersFunctionread_readme
()
setup.py:7
↓ 1 callersFunctionread_requirements
()
setup.py:12
↓ 1 callersMethodreceive_heart_beat
(self, worker_name: str, queue_length: int)
core_training/fastchat/serve/controller.py:209
↓ 1 callersFunctionrecover_message_list
(prompt)
core_training/fastchat/model/model_chatglm.py:40
← previousnext →301–400 of 1,013, ranked by callers