MCPcopy Create free account

hub / github.com/AFAC2024/AFAC2025 / functions

Functions3,355 in github.com/AFAC2024/AFAC2025

↓ 1 callersFunctionall_gather_tensor
(local_tensor: Tensor, group: Optional[dist.ProcessGroup] = None, async_op: bool = False)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/ulysses.py:154
↓ 1 callersFunctionanalysis_conflict_prompt
(module_name, content)
方案分享/赛题二/ths/submit_code/run_classify_v3_b.py:55
↓ 1 callersFunctionanalysis_conflict_prompt
(module_name, content)
方案分享/赛题二/ths/submit_code/run_infer_b.py:56
↓ 1 callersFunctionanalysis_conflict_prompt
(module_name,content1, content2)
方案分享/赛题二/ths/submit_code/run_classify_v1_b.py:53
↓ 1 callersFunctionanalysis_conflict_prompt
(module_name,content1, content2)
方案分享/赛题二/ths/submit_code/run_classify_v1_a.py:52
↓ 1 callersFunctionanalyze_question_complexity
Analyze question complexity for token budget estimation.
方案分享/赛题三/ljq13317046284/代码/TALE-main/check_afac_direct.py:53
↓ 1 callersFunctionanalyze_question_complexity
Analyze question complexity to estimate initial token budget.
方案分享/赛题三/ljq13317046284/代码/TALE-main/check_afac_support.py:62
↓ 1 callersMethodapply
(self, **kwargs)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/formatter.py:57
↓ 1 callersMethodapply
(self, **kwargs)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/formatter.py:73
↓ 1 callersFunctionapply_liger_kernel
( config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool, require_logits
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/model_utils/liger_kernel.py:30
↓ 1 callersFunctionapply_rotary_pos_emb
(q, k, cos, sin, position_ids)
方案分享/赛题三/双人成行/code/RL/verl/verl/models/llama/megatron/layers/parallel_attention.py:155
↓ 1 callersFunctionapply_rotary_pos_emb_rmpad_flash
(q, k, cos, sin, cu_seqlens, max_seqlen)
方案分享/赛题三/双人成行/code/RL/verl/verl/models/qwen2/megatron/layers/parallel_attention.py:304
↓ 1 callersFunctionapply_rotary_pos_emb_rmpad_flash
(q, k, cos, sin, cu_seqlens, max_seqlen)
方案分享/赛题三/双人成行/code/RL/verl/verl/models/llama/megatron/layers/parallel_attention.py:360
↓ 1 callersFunctionare_equal_under_sympy
(ground_truth_normalized: str, given_normalized: str)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/reward_score/prime_math/__init__.py:240
↓ 1 callersFunctionare_equal_under_sympy
(ground_truth_normalized: str, given_normalized: str)
方案分享/赛题三/双人成行/code/RL/deepscaler/rewards/math_utils/utils.py:354
↓ 1 callersFunctionare_lists_similar
(a, b)
方案分享/赛题三/双人成行/code/RL/verl/tests/rollout/test_vllm_hf_loader.py:51
↓ 1 callersFunctionare_lists_similar
(a, b)
方案分享/赛题三/双人成行/code/RL/verl/tests/rollout/test_sglang_spmd.py:61
↓ 1 callersFunctionare_lists_similar
(a, b)
方案分享/赛题三/双人成行/code/RL/verl/tests/rollout/test_vllm_spmd.py:49
↓ 1 callersMethodask
Send a prompt to the LLM and get the response. Args: messages: List of conversation messages system_msgs: Op
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/llm.py:309
↓ 1 callersMethodask_tool
Ask LLM using functions/tools and return the response. Args: messages: List of conversation messages system_
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/llm.py:569
↓ 1 callersFunctionautocast_projector_dtype
r"""Cast projector output to half precision for fine-tuning quantized VLMs.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/model_utils/visual.py:129
↓ 1 callersFunctionbatch_difficulty
(dataset: str, split: str)
方案分享/赛题三/双人成行/code/RL/deepscaler/data/preprocess/difficulty_judge.py:68
↓ 1 callersMethodbatch_inference
批量推理。 参数: prompts: prompt列表 max_new_tokens: 最大生成token数 temperature: 温度参数 top
方案分享/赛题三/双人成行/code/Inference/model_inference.py:140
↓ 1 callersMethodbatch_inference
(self, batch_input: dict[str, "torch.Tensor"])
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/eval/evaluator.py:72
↓ 1 callersFunctionbbb
()
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/spider/test.py:4
↓ 1 callersFunctionbroadcast_params
(module)
方案分享/赛题三/双人成行/code/RL/verl/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:69
↓ 1 callersFunctionbroadcast_params
(module)
方案分享/赛题三/双人成行/code/RL/verl/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:73
↓ 1 callersMethodbuild_command
构建swift命令
方案分享/赛题三/丛雨酱/全部代码/run_dpo_training.py:41
↓ 1 callersFunctionbuild_memory_reference
Build the memory references. The memory buffers are built using the build_memory_buffer API. This API will allocate a weight buffer pointer to the
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/memory_buffer.py:116
↓ 1 callersFunctionbuild_runner
(args, model: LanguageModel)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/runner/runner_utils.py:4
↓ 1 callersFunctioncalculate_optimal_budgets
Calculate optimal token budgets for each AFAC question.
方案分享/赛题三/ljq13317046284/代码/TALE-main/check_afac_support.py:84
↓ 1 callersFunctioncalculate_token_statistics
Calculate comprehensive token statistics.
方案分享/赛题三/ljq13317046284/代码/TALE-main/check_afac_direct.py:100
↓ 1 callersFunctioncalculate_token_stats
Calculate token statistics for the raw outputs
方案分享/赛题三/双人成行/code/RL/code_eval/MBPP_Humaneval/eval/Coding/mbpp/evaluate_mbpp.py:140
↓ 1 callersMethodcall_deepseek_chat_for_analysis
调用DeepSeek-Chat补充解题过程
方案分享/赛题三/丛雨酱/全部代码/generate_dpo_answer.py:20
↓ 1 callersMethodcall_deepseek_chat_for_analysis
调用DeepSeek Chat API进行问题分析,生成更详细的回答
方案分享/赛题三/丛雨酱/全部代码/create_reject_answer.py:27
↓ 1 callersMethodcall_mcp_tool
调用MCP工具接口
方案分享/赛题一/CEDC冲冲冲/AFAC2025_track1/tool_feature_client.py:24
↓ 1 callersFunctioncall_method
(method, inputs)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/reward_score/prime_code/testing_util.py:617
↓ 1 callersFunctioncall_oai_rm_llm
Call OpenAI API with retry logic. Args: prompt: The text prompt to send to the model system_prompt: System instruction for the mo
方案分享/赛题三/双人成行/code/RL/deepscaler/utils.py:24
↓ 1 callersFunctioncall_qwen_api
(prompt, model_name="qwen3-32b", temperature=0.7)
方案分享/赛题一/CEDC冲冲冲/AFAC2025_track1/main_roll.py:27
↓ 1 callersFunctioncall_qwen_api
(prompt, model_name="qwen3-32b", temperature=0.7)
方案分享/赛题一/CEDC冲冲冲/AFAC2025_track1/main.py:27
↓ 1 callersFunctioncall_with_timeout
(func, *args, timeout=1, **kwargs)
方案分享/赛题三/ljq13317046284/代码/TokenSkip-main/TokenSkip-main/eval/eval_utils.py:313
↓ 1 callersFunctionceildiv
(a, b)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/seqlen_balancing.py:220
↓ 1 callersMethodchat_completions_create
使用主 API 创建聊天补全,如果发生特定内容过滤错误或主 API 调用失败,则回退到备用 API。 支持对主 API 和备用 API 的可重试错误进行重试。 Args: messages: OpenAI API 的消息列表
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/data_analysis/utils/fallback_openai_client.py:128
↓ 1 callersFunctionchdir
(root)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/evaluation/utils_execute.py:175
↓ 1 callersFunctionchdir
(root)
方案分享/赛题三/双人成行/code/RL/code_eval/MBPP_Humaneval/eval/utils/execution.py:146
↓ 1 callersFunctioncheck_afac_dataset
Check if AFAC dataset is properly formatted and accessible.
方案分享/赛题三/ljq13317046284/代码/TALE-main/check_afac_support.py:28
↓ 1 callersFunctioncheck_congratulations_in_file
(output_file)
方案分享/赛题三/双人成行/code/RL/verl/tests/e2e/check_custom_rwd_fn.py:18
↓ 1 callersMethodcheck_consistency
Check the consistency of the DataProto. Mainly for batch and non_tensor_batch We expose this function as a public one so that user can call th
方案分享/赛题三/双人成行/code/RL/verl/verl/protocol.py:251
↓ 1 callersFunctioncheck_correctness
Evaluates the functional correctness of a completion by running the test suite provided in the problem. :param completion_id: an optiona
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/evaluation/utils_execute.py:64
↓ 1 callersMethodcheck_correctness_and_length
in GRPO, the input data here should have len=train_batch_size * num_generations(i.e. config.actor_rollout_ref.rollout.n)
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/reward_manager/naive.py:67
↓ 1 callersFunctioncheck_dependencies
r"""Check the version of the required packages.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/extras/misc.py:95
↓ 1 callersFunctioncheck_dependencies
检查依赖项
方案分享/赛题三/ljq13317046284/代码/TokenSkip-main/TokenSkip-main/validate_afac_dataset.py:110
↓ 1 callersFunctioncheck_testcase_output
(testcase_str, expected_output)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/evaluation/compute_test_output_prediction_metrics.py:39
↓ 1 callersFunctionclean_and_format_question
对提取出的问题文本进行清洗和格式化,以满足最终要求。
方案分享/赛题三/ljq13317046284/代码/self-instruct.py:185
↓ 1 callersFunctionclean_if_name
(code: str)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/evaluation/testing_util.py:73
↓ 1 callersFunctionclean_line_features
清洗折线图特征数据 返回: DataFrame: 清洗后的折线图特征数据
方案分享/赛题一/allin/代码文件/build_trainset.py:112
↓ 1 callersFunctionclean_llm_json_output
从LLM返回的、可能包含聊天内容的文本中,精准提取出被```json ... ```包裹的JSON字符串。
方案分享/赛题二/蛋木/code/feature_extract_agent.py:139
↓ 1 callersFunctionclean_llm_json_output
从LLM返回的文本中,精准提取出被```json ... ```包裹的JSON字符串。
方案分享/赛题二/蛋木/code/relevance_marker_agent.py:91
↓ 1 callersFunctionclean_text
清理文本内容 参数: text: 待清理的文本 返回: 清理后的文本
方案分享/赛题二/clife/code/data_process.py:26
↓ 1 callersMethodcleanup
Clean up server resources.
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/mcp/server.py:145
↓ 1 callersMethodcleanup
Clean up resources used by the agent's tools.
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/agent/toolcall.py:254
↓ 1 callersFunctioncleanup_reports
清理过期报告
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/utils/cleanup_reports.py:26
↓ 1 callersMethodclose
异步关闭主客户端和备用客户端 (如果存在)。
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/data_analysis/utils/fallback_openai_client.py:215
↓ 1 callersFunctioncode_execution_metrics
( samples, generations, )
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/evaluation/compute_code_execution_metrics.py:25
↓ 1 callersFunctioncollect_dp_compute
(worker_group, output)
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/base/decorator.py:265
↓ 1 callersFunctioncollect_megatron_compute
Only collect the data from the tp=0 and pp=last and every dp ranks
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/base/decorator.py:103
↓ 1 callersFunctioncollect_megatron_pp_as_dp
treat pp as dp. Only collect data on tp=0
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/base/decorator.py:209
↓ 1 callersFunctioncombine_images_horizontally
(paths, output_path=None)
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/tools/create_document.py:24
↓ 1 callersFunctioncombine_results
( scenario: Scenario, results: list[list[str]], model: LanguageModel, cot_code_execution: bool
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/runner/scenario_router.py:83
↓ 1 callersFunctioncombine_results
()
方案分享/赛题三/双人成行/code/RL/code_eval/MBPP_Humaneval/eval/utils/evaluation.py:93
↓ 1 callersFunctioncommon_industry_research_report
(name)
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/run_industry_research_report.py:13
↓ 1 callersFunctioncommon_macro_research_report
(name, time)
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/run_macro_research_report.py:22
↓ 1 callersFunctioncommon_stock_research_report
(code=None, name=None)
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/run_company_research_report.py:43
↓ 1 callersFunctioncommon_stock_research_report
(code=None, name=None)
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/server.py:78
↓ 1 callersFunctioncompress_afac_cot
压缩AFAC数据集中的思维链 Args: input_path: 输入数据集路径 output_dir: 输出目录 compression_ratios: 压缩比例列表,如[0.9, 0.8, 0.7, 0.6,
方案分享/赛题三/ljq13317046284/代码/TokenSkip-main/TokenSkip-main/compress_afac_cot.py:40
↓ 1 callersFunctioncompress_afac_dataset_simple
使用简化方法压缩AFAC数据集
方案分享/赛题三/ljq13317046284/代码/TokenSkip-main/TokenSkip-main/simple_compress_afac.py:126
↓ 1 callersFunctioncompress_cot_outputs
Compress the CoT outputs with various compression ratios using LLMLingua-2.
方案分享/赛题三/ljq13317046284/代码/TokenSkip-main/TokenSkip-main/LLMLingua.py:104
↓ 1 callersFunctioncompute_advantage
(data: DataProto, adv_estimator, config)
方案分享/赛题三/双人成行/code/RL/verl/recipe/prime/prime_ray_trainer.py:39
↓ 1 callersFunctioncompute_ce_dpo_loss_rm
(token_level_scores, acc, eos_mask, beta)
方案分享/赛题三/双人成行/code/RL/verl/recipe/prime/prime_core_algos.py:78
↓ 1 callersFunctioncompute_data_metrics
(batch: DataProto, use_critic: bool = True)
方案分享/赛题三/双人成行/code/RL/verl/verl/trainer/ppo/metric_utils.py:46
↓ 1 callersFunctioncompute_device_flops
r"""Calculate the FLOPs of the device capability per second.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/scripts/stat_utils/cal_mfu.py:86
↓ 1 callersMethodcompute_log_prob
(self, data: DataProto)
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/megatron_workers.py:442
↓ 1 callersMethodcompute_log_prob
(self, data: DataProto)
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/fsdp_workers.py:523
↓ 1 callersFunctioncompute_model_flops
r"""Calculate the FLOPs of model per forward/backward pass.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/scripts/stat_utils/cal_mfu.py:29
↓ 1 callersFunctioncompute_position_id_with_mask
(mask)
方案分享/赛题三/双人成行/code/RL/verl/tests/ray/detached_worker/client.py:30
↓ 1 callersMethodcompute_preference_loss
r"""Compute loss for preference learning.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/dpo/trainer.py:154
↓ 1 callersMethodcompute_reference_log_probs
r"""Compute log probabilities of the reference model.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/kto/trainer.py:187
↓ 1 callersMethodcompute_reference_log_probs
r"""Compute log probabilities of the reference model.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/dpo/trainer.py:208
↓ 1 callersMethodcompute_reward
Computing reward given input_ids. The transformers should output a tensor with shape [batch_size, sequence_length], and the value at [EOS]
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/reward_model/base.py:29
↓ 1 callersFunctioncompute_scores
(args)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/evaluation/compute_scores.py:72
↓ 1 callersFunctioncompute_throughout_metrics
(batch: DataProto, timing_raw: Dict[str, float], n_gpus: int)
方案分享/赛题三/双人成行/code/RL/verl/verl/trainer/ppo/metric_utils.py:158
↓ 1 callersFunctioncompute_timing_metrics
(batch: DataProto, timing_raw: Dict[str, float])
方案分享/赛题三/双人成行/code/RL/verl/verl/trainer/ppo/metric_utils.py:134
↓ 1 callersFunctionconcat_dict_to_str
(dict: Dict, step)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/logger/aggregate_logger.py:21
↓ 1 callersFunctionconfigure_attn_implementation
(config: "PretrainedConfig", model_args: "ModelArguments")
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/model_utils/attention.py:32
↓ 1 callersFunctionconfigure_kv_cache
(config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/model_utils/kv_cache.py:29
↓ 1 callersFunctionconfigure_longlora
(config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/model_utils/longlora.py:359
↓ 1 callersFunctionconfigure_moe
(config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/model_utils/moe.py:101
↓ 1 callersFunctionconfigure_packing
(model_args: "ModelArguments", is_trainable: bool)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/model_utils/packing.py:110
↓ 1 callersFunctionconfigure_quantization
r"""Priority: PTQ-quantized (train/infer) > AutoGPTQ (export) > On-the-fly quantization (train/infer).
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/model_utils/quantization.py:82
↓ 1 callersFunctionconfigure_rope
(config: "PretrainedConfig", model_args: "ModelArguments")
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/model_utils/rope.py:35
← previousnext →1,101–1,200 of 3,355, ranked by callers