MCPcopy Create free account

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

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

↓ 1 callersMethod_opt_check
(self, trainer, model)
core_training/callbacks.py:448
↓ 1 callersFunction_prepare_text_with_image
(state, text, image)
core_training/fastchat/serve/gradio_web_server.py:258
↓ 1 callersMethod_save_results
Save evaluation results to files
eval/math/math_evaluator.py:341
↓ 1 callersMethod_select_tracked
(self)
compression_training/callbacks.py:86
↓ 1 callersMethod_setup_device
Setup computation device
eval/math/math_evaluator.py:187
↓ 1 callersMethod_take_snapshot
(self)
compression_training/callbacks.py:93
↓ 1 callersMethodadaptive_mix_with_balanced_distribution
平衡分布的自适应混合,增强数值稳定性
eval/alfworld/eval_agent/agents/model_insert_hidden.py:816
↓ 1 callersMethodadaptive_mix_with_balanced_distribution
(self, hidden_state, plan_embeds, mix_ratio)
core_training/hidden_model/custom_model.py:188
↓ 1 callersMethodadjust_weights_dynamically
(self, random_contrast_loss, plan_similarity_loss)
core_training/hidden_model/custom_model.py:221
↓ 1 callersFunctionagent_generate
(model, tokenizer, text, device, args)
data_collection/alfworld_collection.py:235
↓ 1 callersFunctionagent_generate
(model, tokenizer, text, device, args)
data_collection/math_collection.py:341
↓ 1 callersFunctionai2_api_stream_iter
( model_name, model_id, messages, temperature, top_p, max_new_tokens, api_key=None
core_training/fastchat/serve/api_provider.py:305
↓ 1 callersFunctionanthropic_api_stream_iter
(model_name, prompt, temperature, top_p, max_new_tokens)
core_training/fastchat/serve/api_provider.py:146
↓ 1 callersFunctionappend_csv_row
(path: str, row: Dict[str, Any])
eval/alfworld/eval_agent/main.py:58
↓ 1 callersFunctionapply_compressed_weight
(module, compressed_state_dict, target_device, prefix="")
core_training/fastchat/model/compression.py:88
↓ 1 callersFunctionapply_delta
(base_model_path, target_model_path, delta_path)
core_training/fastchat/model/apply_delta.py:125
↓ 1 callersFunctionapply_delta_low_cpu_mem
(base_model_path, target_model_path, delta_path)
core_training/fastchat/model/apply_delta.py:70
↓ 1 callersFunctionapply_lora
(base_model_path, target_model_path, lora_path)
core_training/fastchat/model/apply_lora.py:17
↓ 1 callersFunctionapply_rotary_pos_emb
(q, k, cos, sin, position_ids)
core_training/fastchat/model/monkey_patch_non_inplace.py:20
↓ 1 callersFunctionbard_api_stream_iter
(model_name, conv, temperature, top_p, api_key=None)
core_training/fastchat/serve/api_provider.py:236
↓ 1 callersFunctionbuild_about
()
core_training/fastchat/serve/gradio_web_server.py:602
↓ 1 callersFunctionbuild_demo
(models)
core_training/fastchat/serve/gradio_web_server.py:779
↓ 1 callersFunctionbuild_demo
(models, vl_models, elo_results_file, leaderboard_table_file)
core_training/fastchat/serve/gradio_web_server_multi.py:90
↓ 1 callersFunctionbuild_plan_prompt
(question: str)
data_collection/math_collection.py:410
↓ 1 callersFunctionbuild_side_by_side_ui_anony
(models)
core_training/fastchat/serve/gradio_block_arena_anony.py:617
↓ 1 callersFunctionbuild_side_by_side_ui_named
(models)
core_training/fastchat/serve/gradio_block_arena_named.py:278
↓ 1 callersFunctionbuild_single_vision_language_model_ui
( models, add_promotion_links=False, random_questions=None )
core_training/fastchat/serve/gradio_block_arena_vision.py:49
↓ 1 callersMethodcalculate_plan_similarity_loss
修复版本:确保plan_logits不产生梯度
eval/alfworld/eval_agent/agents/model_insert_hidden.py:1395
↓ 1 callersMethodcalculate_plan_similarity_loss
( self, normal_logits, plan_logits, attention_mask_n, attention_mask_p,
core_training/hidden_model/custom_model.py:669
↓ 1 callersMethodcalculate_random_contrast_loss
修复版本:确保random_logits不产生梯度
eval/alfworld/eval_agent/agents/model_insert_hidden.py:1448
↓ 1 callersMethodcalculate_random_contrast_loss
( self, normal_logits, random_logits, attention_mask_n, attention_mask_r,
core_training/hidden_model/custom_model.py:715
↓ 1 callersFunctionchat_loop
( model_path: str, device: str, num_gpus: int, max_gpu_memory: str, dtype: Optional[torch.
core_training/fastchat/serve/inference.py:337
↓ 1 callersMethodclassify_task_type
Attempt to classify the ALFWorld task type Args: task_description: Task description text task_item: Original
data_collection/alfworld_task_collector.py:202
↓ 1 callersMethodclean_up_recipes
(self)
eval/alfworld/eval_agent/envs/textcraft_env.py:85
↓ 1 callersMethodcleanup_distributed
Clean up distributed resources
data_collection/base_data_collector.py:414
↓ 1 callersMethodcollect_item_uses
(self)
eval/alfworld/eval_agent/envs/textcraft_env.py:313
↓ 1 callersMethodconduct_action
(self, action: str)
eval/alfworld/eval_agent/envs/alfworld_env.py:44
↓ 1 callersMethodconduct_action
(self, actions: List[str])
eval/alfworld/eval_agent/envs/alfworld_env.py:287
↓ 1 callersFunctionconvert_fp16
(in_checkpoint, out_checkpoint)
core_training/fastchat/model/convert_fp16.py:11
↓ 1 callersMethodconvert_image_to_base64
Given an image, return the base64 encoded image string.
core_training/fastchat/conversation.py:316
↓ 1 callersFunctioncould_be_stop
(text, stop)
core_training/fastchat/serve/huggingface_api_worker.py:83
↓ 1 callersMethodcount_token
(self, params)
core_training/fastchat/serve/huggingface_api_worker.py:130
↓ 1 callersMethodcraft
(self, recipe: Recipe)
eval/alfworld/eval_agent/envs/textcraft_env.py:230
↓ 1 callersMethodcreate_alfworld_planning_prompt
Create a specialized prompt for ALFWorld task planning Args: task_description: Description of the household task
data_collection/alfworld_task_collector.py:120
↓ 1 callersFunctioncreate_argument_parser
Create and configure argument parser
data_collection/alfworld_collection.py:344
↓ 1 callersFunctioncreate_argument_parser
Create and configure argument parser
data_collection/math_collection.py:477
↓ 1 callersFunctioncreate_background_tasks
(worker)
core_training/fastchat/serve/huggingface_api_worker.py:215
↓ 1 callersFunctioncreate_background_tasks
(request_id)
core_training/fastchat/serve/lightllm_worker.py:204
↓ 1 callersFunctioncreate_background_tasks
(request_id)
core_training/fastchat/serve/vllm_worker.py:188
↓ 1 callersFunctioncreate_background_tasks
()
core_training/fastchat/serve/sglang_worker.py:191
↓ 1 callersFunctioncreate_background_tasks
()
core_training/fastchat/serve/base_model_worker.py:190
↓ 1 callersFunctioncreate_background_tasks
(request_id)
core_training/fastchat/serve/mlx_worker.py:181
↓ 1 callersFunctioncreate_controller
()
core_training/fastchat/serve/controller.py:353
↓ 1 callersMethodcreate_generation_metadata
Create metadata about the generation process Args: task_item: Original dataset item Returns: Dictio
data_collection/math_reasoning_collector.py:195
↓ 1 callersMethodcreate_generation_metadata
Create metadata about the generation process Args: task_item: Original trajectory item Returns: Dic
data_collection/alfworld_task_collector.py:259
↓ 1 callersFunctioncreate_huggingface_api_worker
()
core_training/fastchat/serve/huggingface_api_worker.py:281
↓ 1 callersMethodcreate_math_planning_prompt
Create a specialized prompt for mathematical planning Args: problem: The mathematical problem statement Returns
data_collection/math_reasoning_collector.py:123
↓ 1 callersFunctioncreate_model_worker
()
core_training/fastchat/serve/model_worker.py:303
↓ 1 callersFunctioncreate_multi_model_worker
()
core_training/fastchat/serve/multi_model_worker.py:157
↓ 1 callersFunctioncreate_openai_api_server
()
core_training/fastchat/serve/openai_api_server.py:879
↓ 1 callersMethodcreate_prompt
Create evaluation prompt for a math question Override this method for different prompt formats
eval/math/math_evaluator.py:196
↓ 1 callersMethodcreate_prompt_for_task
Create prompt for mathematical reasoning task Args: task_item: Dictionary containing problem data Returns:
data_collection/math_reasoning_collector.py:163
↓ 1 callersMethodcreate_prompt_for_task
Create prompt for ALFWorld task planning Args: task_item: Dictionary containing conversation trajectory Returns
data_collection/alfworld_task_collector.py:189
↓ 1 callersMethodcreate_recipe_set
(self, item_name: str)
eval/alfworld/eval_agent/envs/textcraft_env.py:372
↓ 1 callersMethodcross_gpu_negatives
(self, prepended_hidden_states)
core_training/hidden_model/custom_model.py:285
↓ 1 callersFunctiondecompress
Simulate group-wise dequantization.
core_training/fastchat/model/compression.py:279
↓ 1 callersFunctiondetect_precision
Automatically detect the best supported precision on the current device. Returns: "bf16", "fp16", or "no"
core_training/train.py:99
↓ 1 callersMethoddistribute_dataset
Distribute dataset across processes
data_collection/base_data_collector.py:614
↓ 1 callersMethodempty
(self)
eval/alfworld/eval_agent/utils/datatypes.py:52
↓ 1 callersMethodestimate_sample_size
Estimate memory size of a sample in bytes
data_collection/base_data_collector.py:128
↓ 1 callersFunctionevaluate
Evaluate model performance
data_collection/alfworld_collection.py:312
↓ 1 callersFunctionevaluate
Evaluate model performance; use base_offset to ensure globally unique task_id
data_collection/math_collection.py:432
↓ 1 callersMethodevaluate_answer
Evaluate if model output matches ground truth Returns: Tuple of (is_correct, predicted_answer, normalized_ground_truth)
eval/math/math_evaluator.py:117
↓ 1 callersMethodevaluate_dataset
Evaluate model on a math dataset Args: dataset_name: HuggingFace dataset name split: Dataset split to use
eval/math/math_evaluator.py:227
↓ 1 callersMethodextract_recipe
(self, output_item_str, input_items_str)
eval/alfworld/eval_agent/envs/textcraft_env.py:479
↓ 1 callersMethodextract_task_metadata
Extract metadata from a math task item Args: task_item: Original dataset item task_index: Local index of the
data_collection/math_reasoning_collector.py:176
↓ 1 callersMethodextract_task_metadata
Extract metadata from an ALFWorld task item Args: task_item: Original trajectory item task_index: Local inde
data_collection/alfworld_task_collector.py:232
↓ 1 callersMethodextract_text_from_messages
(self)
core_training/fastchat/conversation.py:382
↓ 1 callersFunctionfinalize_data_save_and_merge
Each process saves its own data; the main process merges them
data_collection/alfworld_collection.py:102
↓ 1 callersFunctionfinalize_data_save_and_merge
Each process saves its own data; the main process merges them
data_collection/math_collection.py:213
↓ 1 callersMethodfinalize_distributed_collection
Complete the distributed data collection process
data_collection/base_data_collector.py:385
↓ 1 callersMethodfind_matching_item
(self, itemtag: ItemTag, input_recipe_items: List[ItemTagWithCount])
eval/alfworld/eval_agent/envs/textcraft_env.py:264
↓ 1 callersMethodfloat_set
(self, config, option)
core_training/fastchat/model/model_adapter.py:1687
↓ 1 callersMethodforward
(self, input: Tensor)
core_training/fastchat/model/compression.py:52
↓ 1 callersMethodfrom_str
(cls, name)
core_training/fastchat/serve/controller.py:39
↓ 1 callersFunctiongemini_api_stream_iter
( model_name, conv, temperature, top_p, max_new_tokens, api_key=None )
core_training/fastchat/serve/api_provider.py:180
↓ 1 callersMethodgenerate
( self, input_ids, do_sample, temperature, max_new_tokens, repetition_penalty=1.0 )
core_training/fastchat/model/rwkv_model.py:40
↓ 1 callersFunctiongenerate_completion_stream_generator
( request: CompletionRequest, n: int, worker_addr: str )
core_training/fastchat/serve/openai_api_server.py:622
↓ 1 callersMethodgenerate_gate
(self, params)
core_training/fastchat/serve/huggingface_api_worker.py:196
↓ 1 callersMethodgenerate_random_hidden_states
生成更合理的随机hidden states
eval/alfworld/eval_agent/agents/model_insert_hidden.py:971
↓ 1 callersMethodgenerate_response
Generate model response for a given prompt
eval/math/math_evaluator.py:208
↓ 1 callersFunctiongenerate_stream
( model, tokenizer, params: Dict, device: str, context_len: int, stream_interval: int
core_training/fastchat/serve/inference.py:62
↓ 1 callersMethodgenerate_stream
(self, params)
core_training/fastchat/serve/sglang_worker.py:81
↓ 1 callersMethodgenerate_stream_gate
(self, params)
core_training/fastchat/serve/model_worker.py:104
↓ 1 callersMethodgenerate_stream_gate
(self, params)
core_training/fastchat/serve/base_model_worker.py:170
↓ 1 callersFunctionget_api_provider_stream_iter
( conv, model_name, model_api_dict, temperature, top_p, max_new_tokens, )
core_training/fastchat/serve/api_provider.py:16
↓ 1 callersFunctionget_battle_pair
()
core_training/fastchat/serve/gradio_block_arena_anony.py:440
↓ 1 callersFunctionget_compressed_list
(module, prefix="")
core_training/fastchat/model/compression.py:72
↓ 1 callersFunctionget_config
Get predefined configuration by name
eval/math/config.py:138
↓ 1 callersFunctionget_config
Get a predefined configuration by name Args: config_name: Name of the predefined configuration Returns: DataCollectionC
data_collection/config.py:247
← previousnext →201–300 of 1,013, ranked by callers