MCPcopy Create free account

hub / github.com/AFAC2024/AFAC2025 / functions

Functions3,355 in github.com/AFAC2024/AFAC2025

↓ 2 callersFunctioncreate_ui
(demo_mode: bool = False)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/interface.py:38
↓ 2 callersFunctiondictify
(data: "BaseModel")
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/api/common.py:23
↓ 2 callersFunctiondownload_pdf_with_selenium
使用Selenium下载PDF文件并保存到指定路径 参数: url: PDF文件的直接URL save_path: 保存文件的目录路径 filename: 保存后的文件名(包含.pdf扩展名) 返回: file_path: 最终保存的文件路径
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/common/http_utils.py:169
↓ 2 callersFunctionensure_dir
(path: str, is_file=True)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/utils/path_utils.py:7
↓ 2 callersMethodexecute
Execute the tool to fetch stock information. Args: stock_code: The stock code to query Returns: Sto
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/stock_info_request.py:42
↓ 2 callersMethodexecute
执行并发任务 :param task_list: 任务列表,每个元素是元组(func, args, kwargs) func: 要执行的函数 args: 位置参数
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/common/parallelism.py:29
↓ 2 callersFunctionexport_model
(args: Optional[dict[str, Any]] = None)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/tuner.py:113
↓ 2 callersFunctionextract_cot_and_answer
从output中提取思维链和答案
方案分享/赛题三/ljq13317046284/代码/TokenSkip-main/TokenSkip-main/simple_compress_afac.py:24
↓ 2 callersFunctionextract_markdown
(stock_code, company_name, year, query)
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/data_analysis/utils/finance_extract_tool.py:7
↓ 2 callersFunctionextract_math_answer
(question, reasoning, task)
方案分享/赛题三/ljq13317046284/代码/TokenSkip-main/TokenSkip-main/data_processing/answer_extraction.py:245
↓ 2 callersMethodextract_predicted_answer
Extract numerical or text answer from a response. Args: text: The text response to analyze
方案分享/赛题三/ljq13317046284/代码/TALE-main/evaluator/AccEvaluator.py:76
↓ 2 callersFunctionextract_program_output
extract output between the last ```output\n...\n```
方案分享/赛题三/ljq13317046284/代码/TokenSkip-main/TokenSkip-main/data_processing/answer_extraction.py:194
↓ 2 callersMethodextract_tool
r"""Extract tool message.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/template.py:85
↓ 2 callersFunctionfetch_stock_list_capital_flow
获取股票列表的资金流向数据(按主力净流入排序) 参数: page_size: 每页显示数量,默认50 page_num: 页码,默认第1页 max_retries: 最大重试次数 retry_delay: 重试延迟时
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/financial_deep_search/stock_capital.py:46
↓ 2 callersFunctionfind_expanded_modules
r"""Find the modules in the expanded blocks to apply lora.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/model_utils/misc.py:55
↓ 2 callersFunctionfind_latest_ckpt_path
(path, directory_format="global_step_{}")
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/checkpoint/checkpoint_manager.py:125
↓ 2 callersMethodfind_reports_by_stock
查找特定股票的所有报告
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/utils/report_manager.py:264
↓ 2 callersFunctionformat_example
(example)
方案分享/赛题三/ljq13317046284/代码/TALE-main/TALE-PT.py:190
↓ 2 callersFunctionformat_prompt_execution_base
( question: CodeExecutionProblem, LanguageModelStyle: LMStyle, cot: bool )
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/prompts/code_execution.py:76
↓ 2 callersFunctionformat_prompt_generation
( question: CodeGenerationProblem, LanguageModelStyle: LMStyle )
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/prompts/code_generation.py:188
↓ 2 callersMethodforward
Args: input_ids: input ids. shape (batch_size, seq_length) attention_mask: attention_mask. shape (batch_size, seq_le
方案分享/赛题三/双人成行/code/RL/verl/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:119
↓ 2 callersMethodforward
Args: input_ids: input ids. shape (batch_size, seq_length) attention_mask: attention_mask. shape (batch_size, seq_le
方案分享/赛题三/双人成行/code/RL/verl/verl/models/llama/megatron/modeling_llama_megatron.py:120
↓ 2 callersMethodforward
r"""Run forward pass and computes the log probabilities.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/kto/trainer.py:134
↓ 2 callersMethodforward_backward_batch
(self, data: DataProto, forward_only=False)
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/critic/megatron_critic.py:119
↓ 2 callersMethodforward_backward_batch
We assume: - The model takes input: (input_ids, attention_mask, position_ids). No rmpad for the input - The communication sha
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/actor/megatron_actor.py:233
↓ 2 callersFunctiongenerate_abstract
(intent, catalogue_content, rag_content, theme="")
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/data_analysis/generator/abstract_generator.py:6
↓ 2 callersFunctiongenerate_competitor_result
(name)
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/data_analysis/generator/competitor_result_generator.py:6
↓ 2 callersFunctiongetStockPrice
(stock_code, end_date)
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/spider/stock_bd.py:330
↓ 2 callersFunctionget_all_cats
获取中国国家统计局,所有统计分类
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/spider/data_gjtjj.py:62
↓ 2 callersFunctionget_all_financial_statements
获取公司的所有三大财务报表 Args: stock_code (str): 股票代码 market (str): 股票市场,"HK"为港股,"A"为A股 period (str): 报告期间,可选"年度"或"中期"(仅港股适
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/data_analysis/utils/get_financial_statements.py:132
↓ 2 callersMethodget_all_params
Get all the parameters of the models in all pp ranks Returns: params: List[List[Dict[str, Tensor]]]: a list of parameters in all
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/sharding_manager/megatron_vllm.py:181
↓ 2 callersFunctionget_balance_sheet
获取公司的资产负债表 Args: stock_code (str): 股票代码 market (str): 股票市场,"HK"为港股,"A"为A股 period (str): 报告期间,可选"年度"或"中期"(仅港股适用),
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/data_analysis/utils/get_financial_statements.py:7
↓ 2 callersFunctionget_batch_logps
r"""Compute the log probabilities of the given labels under the given logits. Returns: logps: A tensor of shape (batch_size,) containing
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/trainer_utils.py:587
↓ 2 callersFunctionget_business_composition_type
(stock_code: str, market='sh', start=None, end=None, data_type='按产品')
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/spider/stock_bd.py:365
↓ 2 callersMethodget_cache_key
生成缓存键
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/create_html.py:58
↓ 2 callersFunctionget_cash_flow_statement
获取公司的现金流量表 Args: stock_code (str): 股票代码 market (str): 股票市场,"HK"为港股,"A"为A股 period (str): 报告期间,可选"年度"或"中期"(仅港股适用),
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/data_analysis/utils/get_financial_statements.py:90
↓ 2 callersMethodget_checkpoint_name
Determine the directory name for this rank's checkpoint.
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/checkpoint/megatron_checkpoint_manager.py:121
↓ 2 callersFunctionget_common_default_kwargs_for_parallel_linear
()
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/megatron/tensor_parallel.py:47
↓ 2 callersFunctionget_cosine_schedule_with_warmup
Create a schedule with a learning rate that decreases following the values of the cosine function between the initial lr set in the optimizer
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/torch_functional.py:412
↓ 2 callersFunctionget_data
(code=None, name=None)
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/spider/index_hs.py:117
↓ 2 callersFunctionget_data_list
获取恒生指数列表
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/spider/index_hs.py:62
↓ 2 callersFunctionget_dataset_module
r"""Convert dataset or dataset dict to dataset module.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/data_utils.py:121
↓ 2 callersFunctionget_deepseekcode_question_template_answer
(question: str, code, result, metadata)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/prompts/self_repair.py:84
↓ 2 callersFunctionget_example_prompt
(example)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/prompts/code_generation.py:161
↓ 2 callersFunctionget_function
(compiled_sol, fn_name: str)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/evaluation/testing_util.py:148
↓ 2 callersFunctionget_generation_config
( model: str, trust_remote_code: bool = False, )
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/model.py:58
↓ 2 callersFunctionget_gsm8k_data
()
方案分享/赛题三/双人成行/code/RL/verl/tests/verl/utils/dataset/test_sft_dataset.py:21
↓ 2 callersFunctionget_hf_model_checkpoint_path
(checkpoint_path)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/megatron_utils.py:264
↓ 2 callersFunctionget_huggingface_actor_config
(model_name: str, override_config_kwargs=None, trust_remote_code=False)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/model.py:47
↓ 2 callersFunctionget_income_statement
获取公司的利润表 Args: stock_code (str): 股票代码 market (str): 股票市场,"HK"为港股,"A"为A股 period (str): 报告期间,可选"年度"或"中期"(仅港股适用),默认为
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/data_analysis/utils/get_financial_statements.py:49
↓ 2 callersFunctionget_llm_answer
(prompt)
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/agent_api/metrics_draw.py:32
↓ 2 callersFunctionget_model_checkpoint_path
(checkpoint_path)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/megatron_utils.py:259
↓ 2 callersFunctionget_model_config
(model)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/megatron_utils.py:37
↓ 2 callersMethodget_ollama_modelfile
r"""Return the ollama modelfile. TODO: support function calling.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/template.py:310
↓ 2 callersFunctionget_optimizer_checkpoint_path
(checkpoint_path, use_distributed_optimizer=True)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/megatron_utils.py:269
↓ 2 callersFunctionget_output_path
(model_repr:str, args)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/utils/path_utils.py:24
↓ 2 callersFunctionget_paragraph_chart
(topic, paragraph, sources, target="个股")
方案分享/赛题四/队伍名字不能为空/docker_image/app/agent/agent_chart.py:278
↓ 2 callersFunctionget_price
(stock_code, end_date, count=30, type="stock")
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/spider/stock_bd.py:242
↓ 2 callersMethodget_questions
获取所有问题文本。 返回: 问题文本列表
方案分享/赛题三/双人成行/code/Inference/data_loader.py:45
↓ 2 callersFunctionget_relative_docs
(docs, topic, target="个股")
方案分享/赛题四/队伍名字不能为空/docker_image/app/agent/agent_data.py:105
↓ 2 callersFunctionget_report
获取上交所企业报告,code:股票号码;start:开始日期(默认365天前);end:结束日期(默认今天);type:报告类型,年报/业绩预测;title:报告标题
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/spider/report_sh.py:83
↓ 2 callersFunctionget_report
获取上交所企业报告,code:股票号码;start:开始日期(默认365天前);end:结束日期(默认今天);type:报告类型,年报/业绩预测;title:报告标题
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/spider/report_sz.py:109
↓ 2 callersFunctionget_res
(text)
方案分享/赛题二/ths/submit_code/run_classify_v3_b.py:40
↓ 2 callersFunctionget_res
(text)
方案分享/赛题二/ths/submit_code/run_infer_b.py:41
↓ 2 callersFunctionget_rng_states_checkpoint_path
(checkpoint_path, data_parallel_random_init=False)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/megatron_utils.py:279
↓ 2 callersFunctionget_seqlen_balanced_partitions
get order of seq lengths to make partitions balanced, this is used in balacing sum of seqlength across dp ranks and microbatches Paramete
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/seqlen_balancing.py:152
↓ 2 callersFunctionget_seqlens_in_batch
r"""Get the sequnce lengths in the current batch. e.g. ```python # input [ [1, 1, 2, 2, 2, 0], [1, 2, 2, 3, 3, 3],
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/model_utils/packing.py:55
↓ 2 callersFunctionget_stand_detail
(cat, data, data_type='月度')
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/spider/data_gjtjj.py:220
↓ 2 callersMethodget_state
(self)
方案分享/赛题三/双人成行/code/RL/verl/tests/e2e/envs/digit_completion/task.py:61
↓ 2 callersFunctionget_stock
(code)
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/spider/report_hk.py:51
↓ 2 callersFunctionget_stock_A_financial_info
(stock_code: str = "600059")
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/data_analysis/utils/get_info.py:45
↓ 2 callersFunctionget_stripped_lines
(val: str)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/evaluation/testing_util.py:186
↓ 2 callersFunctionget_tool_utils
(name: str)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/tool_utils.py:315
↓ 2 callersFunctionget_trajectory_tracker
()
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/debug/trajectory_tracker.py:79
↓ 2 callersFunctionget_upper_triangle
(tensor_x)
方案分享/赛题三/双人成行/code/RL/verl/recipe/prime/prime_core_algos.py:124
↓ 2 callersFunctionget_url_date
(url)
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/spider/data_rmyh.py:37
↓ 2 callersFunctionget_version
(pkg)
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/rollout/vllm_rollout/__init__.py:23
↓ 2 callersFunctionget_weight_buffer_meta_from_module
Return a dictionary containing name to a shape and dtype.
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/memory_buffer.py:61
↓ 2 callersFunctionget_weight_loader
(arch: str)
方案分享/赛题三/双人成行/code/RL/verl/verl/models/weight_loader_registry.py:16
↓ 2 callersFunctionget_wizard_question_template_answer
(question: str, code, result, metadata)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/prompts/self_repair.py:118
↓ 2 callersFunctiongrade_answer
The answer will be considered correct if: (a) it normalizes to the same string as the ground truth answer OR (b) sympy can simplify t
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/reward_score/prime_math/__init__.py:269
↓ 2 callersFunctioninfer_optim_dtype
r"""Infer the optimal dtype according to the model_dtype and device compatibility.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/extras/misc.py:214
↓ 2 callersMethodinit
(self)
方案分享/赛题三/双人成行/code/RL/verl/tests/ray/test_worker_group_torch.py:35
↓ 2 callersFunctionis_correct
(item, pred_key='prediction', prec=1e-3)
方案分享/赛题三/ljq13317046284/代码/TokenSkip-main/TokenSkip-main/eval/eval_script.py:5
↓ 2 callersFunctionis_fastapi_available
()
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/extras/packages.py:49
↓ 2 callersFunctionis_matplotlib_available
()
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/extras/packages.py:65
↓ 2 callersFunctionis_requests_available
()
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/extras/packages.py:77
↓ 2 callersFunctionis_sglang_available
()
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/extras/packages.py:102
↓ 2 callersFunctionis_tensor_parallel_param
(param)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/megatron/tensor_parallel.py:86
↓ 2 callersFunctionis_vllm_available
()
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/import_utils.py:33
↓ 2 callersFunctionis_vllm_available
()
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/extras/packages.py:98
↓ 2 callersFunctionlist_of_dict_to_dict_of_list
(list_of_dict: list[dict])
方案分享/赛题三/双人成行/code/RL/verl/verl/protocol.py:100
↓ 2 callersFunctionload_afac_dataset
加载AFAC数据集
方案分享/赛题三/ljq13317046284/代码/TokenSkip-main/TokenSkip-main/simple_compress_afac.py:12
↓ 2 callersFunctionload_args
r"""Load the training configuration from config path.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/common.py:154
↓ 2 callersMethodload_checkpoint
(self, local_path, del_local_after_load=True)
方案分享/赛题三/双人成行/code/RL/verl/recipe/prime/prime_fsdp_workers.py:338
↓ 2 callersFunctionload_code_execution_dataset
(release_version="release_v1")
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/benchmarks/code_execution.py:59
↓ 2 callersMethodload_data
加载数据文件。 返回: 加载的DataFrame对象
方案分享/赛题三/双人成行/code/Inference/data_loader.py:30
↓ 2 callersMethodload_params_to_cuda
load all model params to cuda
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/sharding_manager/megatron_vllm.py:129
↓ 2 callersMethodload_server_config
Load MCP server configuration from JSON file
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/tools/config.py:129
↓ 2 callersMethodload_server_config
Load MCP server configuration from JSON file
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/config.py:129
← previousnext →601–700 of 3,355, ranked by callers