MCPcopy Create free account

hub / github.com/AFAC2024/AFAC2025 / functions

Functions3,355 in github.com/AFAC2024/AFAC2025

Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/mm_plugin.py:794
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/mm_plugin.py:830
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/mm_plugin.py:870
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/mm_plugin.py:995
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/mm_plugin.py:1157
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/mm_plugin.py:1212
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/mm_plugin.py:1277
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/mm_plugin.py:1346
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/mm_plugin.py:1487
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/mm_plugin.py:1569
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/mm_plugin.py:1711
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/mm_plugin.py:1822
Functionprocess_one_shard
(rank)
方案分享/赛题三/双人成行/code/RL/verl/scripts/model_merger.py:85
Functionprocess_row
处理单条数据记录的核心函数 参数: row: 包含material_id和rule信息的数据行
方案分享/赛题二/clife/code/main.py:31
Methodprocess_token_ids
( self, input_ids: list[int], labels: Optional[list[int]], images: list["Image
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/mm_plugin.py:1235
Functionprofitability_line
(x_data, line1_data=None, line2_data=None, line3_data=None)
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/functions.py:68
Methodprompt_length
(self)
方案分享/赛题三/双人成行/code/RL/verl/tests/e2e/envs/digit_completion/task.py:69
Functionput_data
(index, data)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/ray_utils.py:25
Functionquantize_loftq
r"""Initialize LoRA weights with LoRA-fine-tuning-aware Quantization (LoftQ). Usage: python loftq_init.py --model_name_or_path path_to_model --ou
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/scripts/loftq_init.py:30
Functionquantize_pissa
r"""Initialize LoRA weights with Principal Singular values and Singular vectors Adaptation (PiSSA). Usage: python pissa_init.py --model_name_or_p
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/scripts/pissa_init.py:30
Functionqwen2_attn_forward
Adapted from transformers 4.49.0 to support Ulysses sequence parallelism for transformers >= 4.48.0. NOTE: This function has been tested onl
方案分享/赛题三/双人成行/code/RL/verl/verl/models/transformers/qwen2.py:148
Functionqwen2_flash_attn_forward
Adapted from transformers 4.47.1 to support Ulysses sequence parallelism. NOTE: This function is only tested on transformers versions betwee
方案分享/赛题三/双人成行/code/RL/verl/verl/models/transformers/qwen2.py:29
Functionrank
获取指定基金代码所代表的基金在同类排名百分比数据,并返回 JSON 格式结果。 :param fund_code (str): 需要查询的基金代码。 :param start_date (str): 开始时间,格式为 YYYY-MM-DD。 :param e
方案分享/赛题一/allin/代码文件/Data_Acquire/MCP/server.py:76
Methodread
(self, *args, **kwargs)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/evaluation/utils_execute.py:156
Methodreadable
Returns True if the IO object can be read.
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/evaluation/utils_execute.py:165
Methodreadable
Returns True if the IO object can be read.
方案分享/赛题三/双人成行/code/RL/code_eval/MBPP_Humaneval/eval/utils/execution.py:136
Methodreadline
(self, *args, **kwargs)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/evaluation/utils_execute.py:159
Methodreadline
(self, *args, **kwargs)
方案分享/赛题三/双人成行/code/RL/code_eval/MBPP_Humaneval/eval/utils/execution.py:130
Methodreadlines
(self, *args, **kwargs)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/evaluation/utils_execute.py:162
Functionregister
(dispatch_mode=Dispatch.ALL_TO_ALL, execute_mode=Execute.ALL, blocking=True, materialize_futures=True)
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/base/decorator.py:394
Methodregister_agent
Register an agent with battle tools and instructions
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/environment/battle.py:107
Functionregister_dataset_converter
r"""Register a new dataset converter.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/converter.py:236
Functionregister_empty_parameter
(module, name, param)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/fsdp_utils.py:188
Functionregister_mm_plugin
r"""Register a multimodal plugin.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/mm_plugin.py:1894
Functionremote_call_wg
(worker_names)
方案分享/赛题三/双人成行/code/RL/verl/tests/ray/test_worker_group_basics.py:69
Functionremove_boxed
(s)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/reward_score/prime_math/__init__.py:323
Functionremove_handler
r"""Remove a handler to the root logger.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/extras/logging.py:135
Functionremove_pad_token
Remove the pad token. Args: input_ids shape: [bs, seq_length] attention_mask shape: [bs, seq_length] Returns: no_pad
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/torch_functional.py:302
Methodreset_execution_state
Reset the agent's execution state to prepare for a new run. Resets the current step counter to zero and returns the agent to IDLE state.
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/agent/base.py:196
Methodresponse_length
(self)
方案分享/赛题三/双人成行/code/RL/verl/tests/e2e/envs/digit_completion/task.py:73
Methodresume
r"""Get the initial value of gradio components and restores training status if necessary.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/engine.py:49
Methodroot_path
Get the root path of the application
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/tools/config.py:323
Methodroot_path
Get the root path of the application
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/config.py:323
Functionrun
(idx)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/evaluation/old_results_check.py:26
Methodrun
Run the environment. Override in subclasses.
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/environment/base.py:48
Methodrun
Run research on the given stock code using all specialist agents.
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/environment/research.py:59
Methodrun
Run big deal analysis
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/agent/big_deal_analysis.py:31
Methodrun
Run institutional trading analysis on the given stock. Args: request: Optional initial request to process. If provided, overrides
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/agent/hot_money.py:33
Methodrun
运行筹码分析,分析指定股票的筹码分布和技术指标 Args: request: Optional initial request to process. If provided, overrides stock_code parameter.
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/agent/chip_analysis.py:33
Methodrun
Run the agent with cleanup when done.
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/agent/toolcall.py:270
Methodrun
Run risk analysis on the given stock. Args: request: Optional initial request to process. If provided, overrides stock_code param
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/agent/risk_control.py:30
Methodrun
Run technical analysis on the given stock using technical indicators. Args: request: Optional initial request to process. If prov
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/agent/technical_analysis.py:33
Methodrun
Run sentiment analysis on the given stock. Args: request: Optional initial request to process. If provided, overrides stock_code
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/agent/sentiment.py:36
Methodrun
执行相关性检查。 Args: conflict_reason (str): Agent3确认的事实性矛盾理由。 rule_text (str): 当前审查的规则核心概念。 Returns:
方案分享/赛题二/蛋木/code/relevance_checker_agent.py:68
Methodrun
执行两阶段审查任务。
方案分享/赛题二/蛋木/code/conflict_reviewer_agent.py:79
Functionrun_api
()
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/api/app.py:127
Methodrun_batch
(self, prompts: list[str])
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/runner/vllm_runner.py:40
Functionrun_chat
()
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/chat/chat_model.py:147
Functionrun_eval
()
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/eval/evaluator.py:157
Methodrun_eval
(self, data)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/runner.py:401
Functionrun_execute
(executor, result, prompt_type, execute=False)
方案分享/赛题三/ljq13317046284/代码/TokenSkip-main/TokenSkip-main/eval/eval_utils.py:99
Functionrun_func_in_process
Runs the provided function in a separate process with the supplied args and kwargs. The args, kwargs, and return values must all be pickl
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/utils/multiprocess.py:33
Functionrun_resres
(question, temp, prompt, result_queue)
方案分享/赛题三/ljq13317046284/代码/infer.py:78
Methodrun_task
()
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/data_analysis/utils/llm_helper.py:70
Methodrun_train
(self, data)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/runner.py:398
Functionrun_web_demo
()
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/interface.py:100
Functionrun_web_ui
()
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/interface.py:91
Methodsample_batch_str_prompts
(self, batch_size)
方案分享/赛题三/双人成行/code/RL/verl/tests/e2e/envs/digit_completion/task.py:100
Methodsave_args
r"""Save the training configuration to config path.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/runner.py:462
Methodsave_checkpoint
(self, local_path: str, hdfs_path: str = None,
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/checkpoint/checkpoint_manager.py:62
Methodsave_checkpoint
(self, local_path: str, hdfs_path: str = None, global_step: int = 0, remove_previous_ckpt=False)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/checkpoint/megatron_checkpoint_manager.py:213
Methodsave_checkpoint
(self, checkpoint_path, hdfs_path=None, global_step=0, remove_previous_ckpt=False)
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/megatron_workers.py:468
Methodsave_checkpoint
(self, local_path, hdfs_path=None, global_step=0, remove_previous_ckpt=False)
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/fsdp_workers.py:584
Functionsave_config
r"""Save user config.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/common.py:83
Functionsave_debate_report
保存辩论对话的便捷函数
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/utils/report_manager.py:291
Functionsave_full_model
Load the saved thinker module and the original model, replace the thinker in the original model. Then save the complete model along with its toke
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/scripts/qwen_omni_merge.py:94
Functionsave_html_report
保存HTML报告的便捷函数
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/utils/report_manager.py:285
Functionsave_model
( lang: str, model_name: str, model_path: str, finetuning_type: str, checkpoint_path: Unio
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/components/export.py:47
Functionsave_to_hdfs
(data: io.BytesIO, name, hdfs_dir, verbose)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/debug/trajectory_tracker.py:33
Functionsave_vote_report
保存投票结果的便捷函数
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/utils/report_manager.py:297
Methodsb_compute_score
return the reward score based on sb func; optimal length is the shortest length among all correct completions
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/reward_manager/naive.py:205
Functionscheduler_hook
(param: "torch.nn.Parameter")
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/trainer_utils.py:580
Functionscore_completions
Each scoring example is a dict, which contains the following keys: - prompt: the prompt to score - completions: a list of completions to
方案分享/赛题三/ljq13317046284/代码/TokenSkip-main/TokenSkip-main/eval/utils.py:147
Methodsearch_config
(self)
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/tools/config.py:304
Methodsearch_config
(self)
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/config.py:304
Functionsearch_data
基于行业、企业等信息,采集关键字对应的信息
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/tools/store.py:265
Functionsearch_data_word
基于关键字列表, 在外部采集相关信息
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/tools/store.py:239
Functionsearch_docs
(keywords, topic, data_date=None, target='个股')
方案分享/赛题四/队伍名字不能为空/docker_image/app/agent/agent_data.py:220
Functionsearch_news
搜索中国新闻网,获取关键字对应的最新的新闻列表,如果为空则获取全部最新新闻 参数: words: 搜索的关键字,可以是企业名称、行业、产业、产品名称、设备、材料名称 start_date: 开始日期(格式yyyy-mm-dd, 非必须) end_date: 结束日
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/server_news.py:17
Functionsearch_policy
搜索国务院政策公开网站,获取关键字对应的最新的政策文件与国务院公告列表,如果为空则获取全部最新政策 参数: words: 搜索的关键字,可以是企业名称、行业、产业、产品名称、设备、材料名称
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/server_policy.py:17
Functionsearch_query
(query)
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/tools/search_api.py:6
Functionsearch_stock_info
根据企业名称,搜索股票的基本信息,如:股票代码、所在交易所等 参数: comp_name: 搜索的企业名称
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/server_stock.py:18
Functionsentiment_reward
(prompts, completions, polarity, **kwargs)
方案分享/赛题一/allin/代码文件/LLM_Train/rewards.py:17
Methodseries_to_item
(ls)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/dataset/sft_dataset.py:75
Methodset_abort
(self)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/runner.py:69
Methodset_additional_resource
(self, additional_resource)
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/ray/base.py:156
Methodset_input_tensor
Set input tensor to be used instead of forward()'s input. When doing pipeline parallelism the input from the previous stage comes fro
方案分享/赛题三/双人成行/code/RL/verl/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:539
Methodset_input_tensor
Set input tensor to be used instead of forward()'s input. When doing pipeline parallelism the input from the previous stage comes fro
方案分享/赛题三/双人成行/code/RL/verl/verl/models/llama/megatron/modeling_llama_megatron.py:543
Methodsetup
(self, args: "TrainingArguments", state: "TrainerState", model: "PreTrainedModel", **kwargs)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/trainer_utils.py:671
Methodshow_analysis_result
Display comprehensive analysis results
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/console.py:155
← previousnext →3,001–3,100 of 3,355, ranked by callers