MCPcopy Create free account

hub / github.com/AFAC2024/AFAC2025 / functions

Functions3,355 in github.com/AFAC2024/AFAC2025

↓ 5 callersMethod__init__
(self, config: Qwen2Config, megatron_config: ModelParallelConfig)
方案分享/赛题三/双人成行/code/RL/verl/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:81
↓ 5 callersMethod__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig)
方案分享/赛题三/双人成行/code/RL/verl/verl/models/llama/megatron/modeling_llama_megatron.py:82
↓ 5 callersMethod__post_init__
(self)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/hparams/model_args.py:342
↓ 5 callersFunction_broadcast_tensor
broadcast tensor across mp_group
方案分享/赛题三/双人成行/code/RL/verl/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:123
↓ 5 callersFunction_broadcast_tensor
broadcast tensor across mp_group
方案分享/赛题三/双人成行/code/RL/verl/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:123
↓ 5 callersFunction_check_tokenization
r"""Check token ids and texts. encode(text) == token_ids decode(token_ids) == text
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/tests/data/test_template.py:50
↓ 5 callersMethod_get_mm_inputs
( self, images: list["ImageInput"], videos: list["VideoInput"], audios: list["
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/mm_plugin.py:925
↓ 5 callersFunction_hdfs_cmd
(cmd: str)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/hdfs_io.py:139
↓ 5 callersMethod_regularize_audios
r"""Regularizes audios to avoid error. Including reading and resampling.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/mm_plugin.py:292
↓ 5 callersFunction_run_cmd
(cmd: str, timeout=None)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/hdfs_io.py:135
↓ 5 callersMethodapply
(self, **kwargs)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/formatter.py:132
↓ 5 callersMethodasync_call
异步调用LLM
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/data_analysis/utils/llm_helper.py:22
↓ 5 callersFunctionbroadcast_dict_tensor
TODO: optimize this. Technically, we only need one broadcast
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/torch_functional.py:179
↓ 5 callersMethodchat
r"""Get a list of responses of the chat model.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/chat/chat_model.py:65
↓ 5 callersFunctioncopy_local_path_from_hdfs
Deprecated. Please use copy_to_local instead.
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/fs.py:72
↓ 5 callersFunctioncreate_modelcard_and_push
( trainer: "Trainer", model_args: "ModelArguments", data_args: "DataArguments", training_args:
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/trainer_utils.py:85
↓ 5 callersMethodexecute
并发执行异步任务并合并结果 :param task_list: 任务列表,每个元素为元组(func, args, kwargs) func: 异步函数,返回Awaitable[list]
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/common/parallelism.py:88
↓ 5 callersMethodextract
r"""Extract a list of tuples from the response message if using tools. Each tuple consists of function name and function arguments.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/formatter.py:37
↓ 5 callersMethodfrom_single_dict
(cls, data: Dict[str, Union[torch.Tensor, np.ndarray]], meta_info=None)
方案分享/赛题三/双人成行/code/RL/verl/verl/protocol.py:275
↓ 5 callersFunctiongenerate_catalogue
(intent, theme=None, competitors=None)
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/data_analysis/generator/catalogue_generator.py:8
↓ 5 callersFunctionget_eos_mask
end of sentence token can be int or list: 1 or [1, 2] e.g. eos_token=1 response_id: [0, 0, 2, 42, 3, 5, 1, 0, 0] eos_mask: [1, 1,
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/torch_functional.py:150
↓ 5 callersFunctionget_fsdp_wrap_policy
Get FSDP wrap policy for the module. Args: module: The module to get wrap policy for config: Configuration for wrap policy
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/fsdp_utils.py:54
↓ 5 callersFunctionget_micro_data_parallel_world_size
()
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/sharding_manager/megatron_vllm.py:441
↓ 5 callersMethodget_mm_inputs
r"""Build batched multimodal inputs for VLMs. Arguments: images: a list of image inputs, shape (num_images,) videos:
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/mm_plugin.py:421
↓ 5 callersMethodget_placement_groups
(self, strategy="STRICT_PACK", name=None)
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/ray/base.py:84
↓ 5 callersMethodget_report_path
获取报告文件的完整路径
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/utils/report_manager.py:52
↓ 5 callersFunctionget_reverse_idx
(idx_map)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/seqlen_balancing.py:259
↓ 5 callersMethodinit_model
(self)
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/fsdp_workers.py:779
↓ 5 callersMethodinsert_output_evaluation
( self, output_list: list[str], code_list: list[str], graded_list: list[bool] )
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/benchmarks/code_execution.py:43
↓ 5 callersMethodis_agent_active
Check if agent is active and can participate
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/environment/battle.py:42
↓ 5 callersFunctionpost
(url, data={}, headers={ 'Content-Type': 'application/x-www-form-urlencoded' }, cache_key='', sleep=0, r
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/common/http_utils.py:92
↓ 5 callersFunctionprint_model_size
(model: nn.Module, name: str = None)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/model.py:146
↓ 5 callersFunctionrun_exp
(args: Optional[dict[str, Any]] = None, callbacks: Optional[list["TrainerCallback"]] = None)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/tuner.py:94
↓ 5 callersFunctionsave_data_list
基于原始数据, 构建DOC对象, 保存到向量库中
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/tools/store.py:125
↓ 5 callersFunctionsection_catalogue
(intent, catalogue_json, finance_summary_rag, search_result, theme)
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/data_analysis/generator/section_generator.py:6
↓ 5 callersFunctionsimple_compress_cot
基于规则的简单压缩方法 策略: 1. 移除冗余的连接词 2. 合并相似的观点 3. 保留关键推理步骤 4. 简化长句
方案分享/赛题三/ljq13317046284/代码/TokenSkip-main/TokenSkip-main/simple_compress_afac.py:45
↓ 5 callersMethodstream_chat
r"""Get the response token-by-token of the chat model.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/chat/chat_model.py:94
↓ 5 callersMethodto_dict
(self)
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/base/worker.py:76
↓ 5 callersMethodtrain
模型训练函数
方案分享/赛题一/allin/代码文件/forecast_main.py:49
↓ 5 callersFunctionupdate_model_config
(module_config, override_config_kwargs)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/model.py:42
↓ 5 callersMethodupdate_token_count
Update token counts
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/llm.py:232
↓ 5 callersFunctionvalidate_ulysses_config
(num_heads, ulysses_sequence_size)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/ulysses.py:291
↓ 4 callersMethod__init__
(self, dim, max_position_embeddings=2048, base=10000, device=None)
方案分享/赛题三/双人成行/code/RL/verl/verl/models/llama/megatron/layers/parallel_attention.py:37
↓ 4 callersFunction_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
方案分享/赛题三/双人成行/code/RL/verl/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:162
↓ 4 callersFunction_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
方案分享/赛题三/双人成行/code/RL/verl/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:162
↓ 4 callersMethod_compute_loss_and_backward
Compute loss with optional sequence parallelism and remove padding features
方案分享/赛题三/双人成行/code/RL/verl/verl/trainer/fsdp_sft_trainer.py:286
↓ 4 callersFunction_compute_response_info
(batch: DataProto)
方案分享/赛题三/双人成行/code/RL/verl/verl/trainer/ppo/metric_utils.py:30
↓ 4 callersMethod_convert_slots_to_ollama
r"""Convert slots to ollama template.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/template.py:274
↓ 4 callersFunction_escape_html
r"""Escape HTML characters.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/chatter.py:41
↓ 4 callersFunction_get_cpu_tensor
(tensor: torch.Tensor)
方案分享/赛题三/双人成行/code/RL/verl/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:116
↓ 4 callersFunction_get_cpu_tensor
(tensor: torch.Tensor)
方案分享/赛题三/双人成行/code/RL/verl/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:116
↓ 4 callersFunction_get_decay_parameter_names
r"""Return a list of names of parameters with weight decay. (weights in non-layernorm layers).
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/trainer_utils.py:188
↓ 4 callersFunction_get_gpt_model
(model)
方案分享/赛题三/双人成行/code/RL/verl/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:66
↓ 4 callersFunction_get_gpt_model
(model)
方案分享/赛题三/双人成行/code/RL/verl/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:70
↓ 4 callersFunction_is_non_local
(path: str)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/hdfs_io.py:143
↓ 4 callersMethod_jinja_escape
r"""Escape single quotes in content.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/template.py:210
↓ 4 callersFunction_parse_args
( parser: "HfArgumentParser", args: Optional[Union[dict[str, Any], list[str]]] = None, allow_extra_keys: b
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/hparams/parser.py:73
↓ 4 callersFunction_repeat_interleave
(value: Union[torch.Tensor, np.ndarray], repeats: int)
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/rollout/vllm_rollout/vllm_rollout_spmd.py:58
↓ 4 callersFunction_split_args_kwargs_data_proto
(chunks, *args, **kwargs)
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/base/decorator.py:45
↓ 4 callersFunctionadd_budget
Add token budget constraint to the question prompt. Args: question: Original question text budget: Token budget limit to
方案分享/赛题三/ljq13317046284/代码/TALE-main/utils/__init__.py:44
↓ 4 callersFunctionallgather_dict_tensors
TODO: optimize this. - We can use async ops - We can use only one allgather Args: tensors: size: group:
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/torch_functional.py:188
↓ 4 callersMethodassistant_message
Create an assistant message
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/schema.py:120
↓ 4 callersFunctionbuild_memory_reference_from_module
(module: torch.nn.Module, memory_buffers: Dict[torch.dtype, MemoryBuffe
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/memory_buffer.py:100
↓ 4 callersFunctioncalculate_pixels
r"""Calculate the number of pixels from the expression.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/common.py:220
↓ 4 callersMethodcleanup
Properly clean up all sessions and streams using AsyncExitStack
方案分享/赛题一/CEDC冲冲冲/AFAC2025_track1/mcp_fetch_client.py:135
↓ 4 callersFunctionclear_cache_with_time
(clean_time)
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/common/cache.py:74
↓ 4 callersFunctioncodegen_metrics
( samples_list, generations_list, k_list=[1, 5, 10, 20, 40, 50, 75, 100, 125, 150, 200, 500, 1000]
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/evaluation/compute_code_generation_metrics.py:157
↓ 4 callersFunctioncompute_reward
We compute dense reward here so that we can directly train RL without SFT
方案分享/赛题三/双人成行/code/RL/verl/tests/e2e/envs/digit_completion/task.py:137
↓ 4 callersMethodconnect_mcp_server
Connect to an MCP server and add its tools.
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/agent/mcp.py:106
↓ 4 callersMethodconnect_to_sse_server
Connect to multiple MCP servers running with SSE transport
方案分享/赛题一/CEDC冲冲冲/AFAC2025_track1/mcp_fetch_client.py:83
↓ 4 callersFunctionconvert_md_to_docx
(md_file, docx_file, reference_doc=None)
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/data_analysis/generator/word_generator.py:50
↓ 4 callersFunctioncreate_device_mesh
(world_size, fsdp_size)
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/fsdp_workers.py:49
↓ 4 callersFunctiondownload
下载 HTTPS 的 PDF 文件 参数: url: PDF 文件的 HTTPS URL save_path: 保存路径(默认为当前目录,使用 URL 中的文件名)
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/common/http_utils.py:262
↓ 4 callersMethodestimate_flops
Estimate the FLOPS based on the number of valid tokens in the current batch and the time taken. Args: batch_seqlens (Lis
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/flops_counter.py:114
↓ 4 callersMethodexecute_rank_zero_async
(self, method_name: str, *args, **kwargs)
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/ray/base.py:342
↓ 4 callersFunctionexpand_data
(data, cat_name='')
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/spider/zhengce_gwy.py:33
↓ 4 callersFunctionextract_answer
(pred_str, exhaust=False)
方案分享/赛题三/ljq13317046284/代码/TokenSkip-main/TokenSkip-main/data_processing/answer_extraction.py:207
↓ 4 callersFunctionextract_boxed_answer
从文本中提取\boxed{}中的答案
方案分享/赛题三/ljq13317046284/代码/数据集与预处理/fineval/val/ds2cot.py:132
↓ 4 callersFunctionextract_boxed_answer
从文本中提取\boxed{}中的答案
方案分享/赛题三/ljq13317046284/代码/数据集与预处理/FinanceIQ/dev/ds2cot.py:132
↓ 4 callersFunctionextract_boxed_answer
从文本中提取\boxed{}中的答案
方案分享/赛题三/ljq13317046284/代码/数据集与预处理/FinanceIQ/test/ds2cot.py:132
↓ 4 callersMethodfit
The training loop of PPO. The driver process only need to call the compute functions of the worker group through RPC to construct the
方案分享/赛题三/双人成行/code/RL/verl/verl/trainer/ppo/ray_trainer.py:764
↓ 4 callersFunctionformat_markdown
(output_file)
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/data_analysis/generator/word_generator.py:13
↓ 4 callersFunctiongenerate_headline_abstract
(intent, content, date, finance_data, theme="")
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/data_analysis/generator/headline_abstract_generator.py:6
↓ 4 callersMethodget
(self)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/rendezvous/ray_backend.py:30
↓ 4 callersFunctionget_all_section
获取所有类型板块数据,包括热门板块、概念板块、行业板块和地域板块 Args: sector_types (str, optional): 板块类型,可选值: 'all', 'hot', 'concept', 'regional', 'industry',默认为No
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/financial_deep_search/get_section_data.py:70
↓ 4 callersFunctionget_args
()
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/runner/parser.py:8
↓ 4 callersFunctionget_constant_schedule_with_warmup
( optimizer: Optimizer, num_warmup_steps: int, last_epoch: int = -1, )
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/torch_functional.py:455
↓ 4 callersMethodget_elem_list
r"""Return the list of all elements.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/manager.py:37
↓ 4 callersMethodget_evaluation_sample
(self)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/benchmarks/code_execution.py:51
↓ 4 callersFunctionget_index_capital_flow
获取指数资金流向数据 Args: index_code (str, optional): 指数代码,默认为上证指数 000001 Returns: dict: 资金流向数据
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/financial_deep_search/index_capital.py:201
↓ 4 callersMethodget_market_info
获取所需要的基金与市场相关信息 参数: content (str): 查询内容 返回: str: 获取到的文本信息(json文本)
方案分享/赛题一/allin/代码文件/Data_Acquire/mcp_data.py:113
↓ 4 callersFunctionget_micro_data_parallel_group
()
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/sharding_manager/megatron_vllm.py:436
↓ 4 callersMethodget_resource_pool
Get the resource pool of the worker_cls
方案分享/赛题三/双人成行/code/RL/verl/verl/trainer/ppo/ray_trainer.py:97
↓ 4 callersFunctionget_sharding_strategy
(device_mesh)
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/fsdp_workers.py:59
↓ 4 callersFunctionget_stock_capital_flow
获取股票资金流向数据,支持获取列表或单只股票数据 参数: page_size: 每页显示数量,默认50 page_num: 页码,默认第1页 stock_code: 股票代码,如果指定,则返回单只股票数据,否则返回列表 返
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/financial_deep_search/stock_capital.py:239
↓ 4 callersFunctionget_stock_intro
获取股票的基本介绍信息,包括主营业务、经营范围等。 支持区分A股、港股。 :param symbol: 股票代码(如 '000066'、'00700') :param market: 市场类型('A'、'HK') :return: 返回pandas表格的字符
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/data_analysis/utils/get_stock_intro.py:5
↓ 4 callersMethodget_thought_word_ids
r"""Get the token ids of thought words.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/template.py:106
↓ 4 callersFunctiongrade_answer_mathd
(given_answer: str, ground_truth: str)
方案分享/赛题三/双人成行/code/RL/deepscaler/rewards/math_utils/utils.py:469
↓ 4 callersFunctiongrade_answer_sympy
(given_answer: str, ground_truth: str)
方案分享/赛题三/双人成行/code/RL/deepscaler/rewards/math_utils/utils.py:430
↓ 4 callersFunctionimport_external_libs
(external_libs=None)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/import_utils.py:50
← previousnext →201–300 of 3,355, ranked by callers