MCPcopy Create free account

hub / github.com/AFAC2024/AFAC2025 / functions

Functions3,355 in github.com/AFAC2024/AFAC2025

Method_worker
工作线程函数
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/common/parallelism.py:53
Method_write_log
(self, log_entry: str)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/extras/logging.py:51
Method_write_log
(self, output_dir: str, logs: dict[str, Any])
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/callbacks.py:214
Functionaaa
()
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/spider/test.py:51
Methodaccuracy
(self)
方案分享/赛题三/ljq13317046284/代码/TALE-main/evaluator/AccEvaluator_bak.py:11
Methodaccuracy
Calculate the overall accuracy across the entire dataset. Returns: float: The accuracy score as a ratio of c
方案分享/赛题三/ljq13317046284/代码/TALE-main/evaluator/AccEvaluator.py:22
Methodact
Execute tool calls and handle their results
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/agent/toolcall.py:148
Functionadd_handler
r"""Add a handler to the root logger.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/extras/logging.py:129
Functionadd_images_to_doc
添加图片到文档,满足布局要求
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/tools/create_document.py:212
Methodadd_messages
Add multiple messages to memory
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/schema.py:178
Methodadd_node
(self, process_count)
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/base/worker_group.py:36
Functionadd_one
(data)
方案分享/赛题三/双人成行/code/RL/verl/tests/ray/test_worker_group_basics.py:83
Functionainvoke
(msg: str)
方案分享/赛题四/队伍名字不能为空/docker_image/app/agent/agent_industry.py:294
Functionainvoke
(msg: str)
方案分享/赛题四/队伍名字不能为空/docker_image/app/agent/agent_macro.py:289
Functionainvoke
(msg: str)
方案分享/赛题四/队伍名字不能为空/docker_image/app/agent/agent_stock.py:291
Methodall_agents_decided
Check if all agents have voted or terminated
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/environment/battle.py:81
Methodall_gather
(self)
方案分享/赛题三/双人成行/code/RL/verl/tests/ray/test_worker_group_torch.py:60
Methodall_special_ids
`List[int]`: List the ids of the special tokens(`'<unk>'`, `'<cls>'`, etc.) mapped to class attributes.
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/rollout/tokenizer.py:53
Methodall_special_tokens
`List[str]`: A list of the unique special tokens (`'<unk>'`, `'<cls>'`, ..., etc.). Convert tokens of `tokenizers.AddedToken` type t
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/rollout/tokenizer.py:61
Functionanalysis_conflict_prompt
(module_name,content1, content2)
方案分享/赛题二/ths/submit_code/run_rag_ans_a.py:56
Functionanalysis_conflict_prompt
(module_name,content1, content2)
方案分享/赛题二/ths/submit_code/run_rag_ans_b.py:56
Methodanalyze
开始分析流程 Args: user_input: 用户的自然语言需求 files: 数据文件路径列表 Returns: 分析结果字典
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/data_analysis/data_analysis_agent.py:195
Methodanalyze
执行舆情分析
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/agent/sentiment.py:61
Functionapply_rotary_pos_emb_rmpad
(q, k, cos, sin, position_ids, indices, sequence_length)
方案分享/赛题三/双人成行/code/RL/verl/verl/models/qwen2/megatron/layers/parallel_attention.py:283
Functionapply_rotary_pos_emb_rmpad
(q, k, cos, sin, position_ids, indices, sequence_length)
方案分享/赛题三/双人成行/code/RL/verl/verl/models/llama/megatron/layers/parallel_attention.py:339
Functionarithmetic_sequence_reward_function
(data: DataProto)
方案分享/赛题三/双人成行/code/RL/verl/tests/e2e/arithmetic_sequence/rl/main_trainer.py:31
Methodask_with_images
Send a prompt with images to the LLM and get the response. Args: messages: List of conversation messages ima
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/llm.py:423
Methodbackward
(ctx: Any, *grad_output: Tensor)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/ulysses.py:182
Methodbackward
(ctx, grad_output: torch.Tensor)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/megatron/tensor_parallel.py:123
Methodbackward
(ctx: "torch.autograd.Function", grad_output: "torch.Tensor")
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/model_utils/checkpointing.py:64
Methodbasic_info
Get the basic stock information from the output.
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/stock_info_request.py:23
Methodbatched_forward_pass
r"""Calculate model outputs in multiple batches. Subclass and override to inject custom behavior.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/ppo/trainer.py:410
Functionbeautyfy_content
(comp_info, content_list)
方案分享/赛题四/队伍名字不能为空/docker_image/app/agent/agent_industry.py:176
Functionbeautyfy_content
(comp_info, content_list)
方案分享/赛题四/队伍名字不能为空/docker_image/app/agent/agent_macro.py:178
Functionbeautyfy_content
(comp_info, content_list)
方案分享/赛题四/队伍名字不能为空/docker_image/app/agent/agent_stock.py:175
Methodbefore_index_creation
Executes before the index is created. Used for setting up any required Elasticsearch resources like a pipeline. Defaults to a
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/strategies.py:72
Methodbefore_index_creation
( self, *, client: AsyncElasticsearch, text_field: str, vector_field: str )
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/strategies.py:161
Methodbefore_index_creation
( self, *, client: AsyncElasticsearch, text_field: str, vector_field: str )
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/strategies.py:275
Functionblock_expansion
r"""Perform block expansion for LLaMA, Mistral, Qwen2 or Yi models. Usage: python llama_pro.py --model_name_or_path meta-llama/Llama-2-7b-hf --ou
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/scripts/llama_pro.py:40
Methodbrowser_config
(self)
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/tools/config.py:300
Methodbrowser_config
(self)
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/config.py:300
Methodbuild_inputs_with_special_tokens
(self, token_ids_0: List[int],
方案分享/赛题三/双人成行/code/RL/verl/tests/e2e/envs/digit_completion/tokenizer.py:104
Methodbuild_memory_reference
(self)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/memory_buffer.py:202
Functioncalculate_flops
r"""Calculate the flops of pre-trained models. Usage: python cal_flops.py --model_name_or_path path_to_model --batch_size 1 --seq_length 512
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/scripts/stat_utils/cal_flops.py:26
Functioncalculate_gpa
(grades: list[str], hours: list[int])
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/scripts/api_example/test_toolcall.py:25
Functioncalculate_lr
r"""Calculate the optimal learning rate for 7B/13B models using LLaMA's hyper-parameters. Usage: python cal_lr.py --model_name_or_path path_t
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/scripts/stat_utils/cal_lr.py:37
Functioncalculate_mfu
r"""Calculate MFU for given model and hyper-params. Usage: python cal_mfu.py --model_name_or_path path_to_model --batch_size 1 --seq_length 1024
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/scripts/stat_utils/cal_mfu.py:101
Functioncalculate_ppl
r"""Calculate the ppl on the dataset of the pre-trained models. Usage: export CUDA_VISIBLE_DEVICES=0 python cal_ppl.py --model_name_or_path p
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/scripts/stat_utils/cal_ppl.py:55
Functioncall_Yi_Lightning
(cur_sample, n_reasoning_paths, api_key='your_api_key', model='y
方案分享/赛题三/ljq13317046284/代码/TALE-main/llm_models/__init__.py:125
Functioncall_gpt
(cur_sample, n_reasoning_paths, api_key="your_api_key", model='gpt-4o-mini')
方案分享/赛题三/ljq13317046284/代码/TALE-main/llm_models/__init__.py:87
Functioncall_tools_endpoint
(request: ToolCallRequest)
方案分享/赛题一/CEDC冲冲冲/AFAC2025_track1/mcp_fetch_client.py:319
Functioncan_preview
r"""Check if the dataset is a local dataset.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/components/data.py:42
Functioncan_quantize
r"""Judge if the quantization is available in this finetuning type. Inputs: top.finetuning_type Outputs: top.quantization_bit
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/control.py:50
Functioncan_quantize
(checkpoint_path: Union[str, list[str]])
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/components/export.py:40
Functioncan_quantize_to
r"""Get the available quantization bits. Inputs: top.quantization_method Outputs: top.quantization_bit
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/control.py:62
Methodchange_lang
r"""Update the displayed language of gradio components.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/engine.py:77
Functionchange_stage
r"""Modify states after changing the training stage. Inputs: train.training_stage Outputs: train.dataset, train.packing
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/control.py:78
Functionchart_bar
根据传入的数据,绘制柱状图(可同时展示多条柱子,最多5条),返回绘制生成的图片保存路径 有效比较不同离散类别(如不同月份、不同产品线、不同竞争对手)的数量或数值大小,比如:按季度展示不同成本/营收数据等等 参数: x_labels: 柱状图x轴的数据列表(建议3个及以上)
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/server_chart.py:221
Functionchart_bar_heng
根据传入的数据,绘制横版柱状图,返回绘制生成的图片保存路径 特别适用于比较类别名称较长或类别数量较多时,不同类别的数值大小差异以及近期变化趋势,比如:股东持股比例与变化情况等等。​ 参数: names: 柱状图数据标签列表(建议2个及以上) values: 数据标签对
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/server_chart.py:143
Functionchart_bar_line
根据传入的数据,绘制柱状图和折线图的复合图形,返回绘制生成的图片保存路径 ​​在同一坐标轴(通常双纵轴)结合柱状图展示规模/数量型数据(如营收、产量)和折线图展示比率/趋势型数据(如增长率、利润率),揭示规模与效率的关系或同时对比不同类型指标,比如:企业每年营收与对应增长情况等等。
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/server_chart.py:59
Functionchart_kline
绘制K线图,返回绘制生成的图片保存路径。 展示个股或市场指数在特定时间段(日/周/月等)内价格波动、开盘价、收盘价、最高价、最低价及涨跌情况,直观反映多空双方力量对比和市场趋势,比如:每日股价、每日指数数值等等。 参数: dates: K线的日期列表(格式yyyy-mm-dd
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/server_chart.py:21
Functionchart_line
根据传入的数据,绘制折线图(可同时展示多条折线,最多5条),返回绘制生成的图片保存路径 最佳呈现单一或多个数据序列随时间(年份、季度、月份)变化的连续趋势、波动性、增长或下降规律,比如:商品、原材料价格趋势等等。 参数: dates: 折线图数据标签列表(建议5个及以上)
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/server_chart.py:165
Functionchart_pie
根据传入的数据,绘制饼图,返回绘制生成的图片保存路径 清晰呈现一个整体中各组成部分(如不同业务收入、不同资产类别、不同竞争者份额)所占的相对比例,比如:主营业务构成等等。 参数: categorys: 饼图的数据分类列表 values: 饼图的数据值列表,长度需和ca
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/server_chart.py:42
Functionchart_radar
根据传入的数据,绘制雷达图(最多支持同时展示5个数据序列),返回绘制生成的图片保存路径 综合评估一个或多个主体在多个维度的表现,便于直观识别其相对优势和劣势(竞争力短板),比如:不同企业竞争力对比等等。​ 参数: dimensios: 雷达图的顶点(维度)名称列表(至少需要3
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/server_chart.py:79
Functionchart_table
根据传入的csv字符串内容,绘制成表格图片,返回绘制生成的图片保存路径 可以用来展示有多个字段或非数值类型列表数据,包括但不限于:管理层列表、股东列表、大事件列表等 参数: csv_string: 需要生成表格的csv图片 sep: csv的字段间隔符(非必须,默认:
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/server_chart.py:277
Methodchat
( self, messages: list[dict[str, str]], system: Optional[str] = None, tools: O
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/chat/vllm_engine.py:211
Methodchat
r"""Get a list of responses of the chat model.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/chat/base_engine.py:64
Methodchat
( self, messages: Sequence[dict[str, str]], system: Optional[str] = None, tool
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/chat/sglang_engine.py:232
Methodchat
( self, messages: list[dict[str, str]], system: Optional[str] = None, tools: O
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/chat/hf_engine.py:335
Functioncheck_correctness
Check correctness of code generation with a global timeout. The global timeout is to catch some extreme/rare cases not handled by the timeouts
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/reward_score/prime_code/utils.py:40
Functioncheck_correctness
Evaluates the functional correctness of a completion by running the test suite provided in the problem. :param completion_id: an option
方案分享/赛题三/双人成行/code/RL/code_eval/MBPP_Humaneval/eval/utils/execution.py:15
Functioncheck_doc_relative_worker
(doc, topic, target)
方案分享/赛题四/队伍名字不能为空/docker_image/app/agent/agent_data.py:98
Functioncheck_json_schema
r"""Check if the json schema is valid.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/components/chatbot.py:34
Methodcheck_mutually_exclusive
(mbs, mbs_per_gpu, name: str)
方案分享/赛题三/双人成行/code/RL/verl/verl/trainer/ppo/ray_trainer.py:325
Methodcheck_output_dir
r"""Restore the training status if output_dir exists.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/runner.py:492
Functioncheck_template
r"""Check if an instruct model is used. Please use queue=True to show the warning message. Inputs: top.lang, top.template
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/control.py:96
Functioncheck_workers_alive
(workers: List, is_alive: Callable, gap_time: float = 1)
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/base/worker_group.py:82
Methodcheckpath
(local_path: str, hdfs_path: str)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/checkpoint/checkpoint_manager.py:70
Methodchunk
(self, chunks: int)
方案分享/赛题三/双人成行/code/RL/verl/verl/protocol.py:625
Functionclean
()
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/tools/store.py:364
Functionclean_numbers
(sample)
方案分享/赛题三/双人成行/code/RL/code_eval/MBPP_Humaneval/eval/utils/util.py:60
Functionclean_text
(text)
方案分享/赛题三/丛雨酱/全部代码/clean_excel.py:19
Methodcleanup
Clean up resources when done
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/environment/base.py:52
Methodcleanup
Clean up all agent resources.
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/environment/research.py:148
Methodcleanup
Clean up battle resources
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/environment/battle.py:186
Methodcleanup
Clean up MCP connection when done.
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/agent/mcp.py:282
Methodcleanup_expired_cache
清理过期缓存
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/create_html.py:131
Functioncleanup_reports
清理过期报告
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/utils/report_manager.py:308
Functionclear_screen
Clear the screen
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/console.py:532
Functionclip_by_value
Tensor extenstion to torch.clamp https://github.com/pytorch/pytorch/issues/2793#issuecomment-428784713
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/torch_functional.py:97
Functioncollate_fn
(x: list['DataProtoItem'])
方案分享/赛题三/双人成行/code/RL/verl/verl/protocol.py:151
Functioncollate_fn
(data_list: list[dict])
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/dataset/rl_dataset.py:31
Functioncollect_all_to_all
(worker_group, output)
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/base/decorator.py:70
Functioncollect_dp_compute_data_proto
(worker_group, output)
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/base/decorator.py:289
Functioncollect_megatron_compute_data_proto
Each output must be a DataProto. We concat the dim=0 of output
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/base/decorator.py:147
Functioncollect_megatron_pp_as_dp_data_proto
(worker_group, output)
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/base/decorator.py:246
Functioncollect_megatron_pp_only
Only collect output of megatron pp. This is useful when examine weight names as they are identical in tp/dp
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/base/decorator.py:223
Methodcombine_fields
( field: Optional[str], other_field: Optional[str], concatenate: bool = True )
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/base.py:54
Functioncommon_industry_research_report
(name=None)
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/server.py:146
Functioncompute_attention_mask
(prompts, pad_token_id)
方案分享/赛题三/双人成行/code/RL/verl/tests/e2e/envs/digit_completion/task.py:107
← previousnext →2,401–2,500 of 3,355, ranked by callers