Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AFAC2024/AFAC2025
/ functions
Functions
3,355 in github.com/AFAC2024/AFAC2025
⨍
Functions
3,355
◇
Types & classes
530
↳
Endpoints
53
↓ 1 callers
Function
configure_visual_model
r"""Patch VLMs before loading them.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/model_utils/visual.py:148
↓ 1 callers
Method
connect_stdio
Connect to an MCP server using stdio transport.
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/mcp_client.py:72
↓ 1 callers
Function
convert_csv_to_json
将目录中的所有CSV文件转换为指定的JSON格式 参数: input_dir: 包含CSV文件的目录路径 output_file: 输出的JSON文件路径
方案分享/赛题三/ljq13317046284/代码/数据集与预处理/FINBenchmark/csv2json.py:60
↓ 1 callers
Function
convert_format
Convert JSONL format to structured JSON format. Args: input_path: Path to input JSONL file output_path: Path to out
方案分享/赛题三/ljq13317046284/代码/TALE-main/ep2json.py:14
↓ 1 callers
Function
convert_parquet
(parquet_file, output_dir=None)
方案分享/赛题三/双人成行/code/RL/deepscaler/data/convert.py:5
↓ 1 callers
Function
convert_pretrained_model_to_mod
( model: "PreTrainedModel", config: "PretrainedConfig", model_args: "ModelArguments" )
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/model_utils/mod.py:32
↓ 1 callers
Function
convert_to_regular_types
Convert Hydra configs and other special types to regular Python types.
方案分享/赛题三/双人成行/code/RL/verl/verl/trainer/fsdp_sft_trainer.py:66
↓ 1 callers
Method
count_content
Calculate tokens for message content
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/llm.py:115
↓ 1 callers
Method
count_image
Calculate tokens for an image based on detail level and dimensions For "low" detail: fixed 85 tokens For "high" detail:
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/llm.py:54
↓ 1 callers
Method
count_tokens
Calculate the number of tokens in a text
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/llm.py:223
↓ 1 callers
Function
count_tokens_in_outputs
Read a JSON file with specified structure and count tokens in output_list[0] Args: file_path (str): Path to the JSON file
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/utils/get_length_lcb.py:8
↓ 1 callers
Method
count_tool_calls
Calculate tokens for tool calls
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/llm.py:134
↓ 1 callers
Function
count_unknown_letters_in_expr
(expr: str)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/reward_score/prime_math/__init__.py:216
↓ 1 callers
Function
count_unknown_letters_in_expr
(expr: str)
方案分享/赛题三/双人成行/code/RL/deepscaler/rewards/math_utils/utils.py:331
↓ 1 callers
Function
create_basic_features
(data_path)
方案分享/赛题一/CEDC冲冲冲/AFAC2025_track1/main_roll.py:273
↓ 1 callers
Function
create_basic_features
(data_path)
方案分享/赛题一/CEDC冲冲冲/AFAC2025_track1/main.py:272
↓ 1 callers
Function
create_chat_completion_response
( request: "ChatCompletionRequest", chat_model: "ChatModel" )
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/api/chat.py:184
↓ 1 callers
Function
create_cloze_prompt
Create cloze question prompts with token budget constraints. Args: budget: Token limit for response (default: 512)
方案分享/赛题三/ljq13317046284/代码/TALE-main/utils/prompt_template.py:105
↓ 1 callers
Function
create_compression_report
创建压缩报告
方案分享/赛题三/ljq13317046284/代码/TokenSkip-main/TokenSkip-main/compress_afac_cot.py:153
↓ 1 callers
Function
create_doc_with_references
(content, doc)
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/tools/create_document.py:139
↓ 1 callers
Function
create_dpo_dataset
创建DPO格式的数据集
方案分享/赛题三/丛雨酱/全部代码/create_dpo_dataset.py:70
↓ 1 callers
Function
create_ds_config
r"""Create deepspeed config in the current directory.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/common.py:228
↓ 1 callers
Function
create_eastmoney_style
()
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/common/chart_utils.py:56
↓ 1 callers
Function
create_eval_tab
(engine: "Engine")
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/components/eval.py:33
↓ 1 callers
Function
create_export_tab
(engine: "Engine")
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/components/export.py:118
↓ 1 callers
Function
create_footer
()
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/components/footer.py:39
↓ 1 callers
Function
create_gpqa_prompt
Create GPQA question prompts with token budget constraints. Args: budget: Token limit for response (default: 512)
方案分享/赛题三/ljq13317046284/代码/TALE-main/utils/prompt_template.py:140
↓ 1 callers
Function
create_huggingface_actor
Args: model_name: override_config_kwargs: Returns:
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/model.py:75
↓ 1 callers
Function
create_infer_tab
(engine: "Engine")
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/components/infer.py:32
↓ 1 callers
Function
create_nccl_communicator_in_ray
(rank: int, world_size: int, group_nam
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/rendezvous/ray_backend.py:47
↓ 1 callers
Method
create_optimizer
( self, model: "AutoModelForCausalLMWithValueHead", training_args: "Seq2SeqTrainingArg
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/ppo/trainer.py:298
↓ 1 callers
Function
create_prompt
根据随机抽取的示例,构建高质量的Prompt。
方案分享/赛题三/ljq13317046284/代码/self-instruct.py:140
↓ 1 callers
Function
create_prompt
Create single choice prompts with token budget constraints. Args: budget: Token limit for response (default: 512)
方案分享/赛题三/ljq13317046284/代码/TALE-main/utils/prompt_template.py:86
↓ 1 callers
Method
create_resource_pool
(self)
方案分享/赛题三/双人成行/code/RL/verl/verl/trainer/ppo/ray_trainer.py:84
↓ 1 callers
Function
create_reward_model
r"""Create reward model for PPO training.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/trainer_utils.py:146
↓ 1 callers
Function
create_sample_comparison
创建压缩前后对比样本
方案分享/赛题三/ljq13317046284/代码/TokenSkip-main/TokenSkip-main/simple_compress_afac.py:191
↓ 1 callers
Function
create_sample_files
Create sample train/test files for the dataset classes.
方案分享/赛题三/ljq13317046284/代码/TALE-main/test_afac_support.py:59
↓ 1 callers
Method
create_scheduler
( self, training_args: "Seq2SeqTrainingArguments", num_training_steps: int, optimizer: "torch.optim.Op
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/ppo/trainer.py:325
↓ 1 callers
Function
create_score_evaluation_response
( request: "ScoreEvaluationRequest", chat_model: "ChatModel" )
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/api/chat.py:277
↓ 1 callers
Function
create_session_output_dir
为本次分析创建独立的输出目录
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/data_analysis/utils/create_session_dir.py:4
↓ 1 callers
Function
create_standardized_dataset
创建标准化的数据集,确保每个问题都有5条记录,格式统一
方案分享/赛题三/丛雨酱/全部代码/create_reject_answer.py:138
↓ 1 callers
Function
create_starlette_app
Create a Starlette application that can serve the provided mcp server with SSE.
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/mcp/server.py:170
↓ 1 callers
Function
create_stream_chat_completion_response
( request: "ChatCompletionRequest", chat_model: "ChatModel" )
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/api/chat.py:238
↓ 1 callers
Function
create_tempdir
()
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/evaluation/utils_execute.py:143
↓ 1 callers
Function
create_tempdir
()
方案分享/赛题三/双人成行/code/RL/code_eval/MBPP_Humaneval/eval/utils/execution.py:114
↓ 1 callers
Function
create_top
()
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/components/top.py:33
↓ 1 callers
Function
create_train_tab
(engine: "Engine")
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/components/train.py:37
↓ 1 callers
Function
create_trainer
Create and initialize a trainer instance with the given config. Args: config: Configuration object with training parameters
方案分享/赛题三/双人成行/code/RL/verl/tests/sft/test_sp_loss_match.py:89
↓ 1 callers
Function
create_web_demo
()
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/interface.py:73
↓ 1 callers
Function
create_worker_group_register_center
(name, info)
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/base/register_center/ray.py:28
↓ 1 callers
Function
create_zero_shot_context
Create context for zero-shot token budget estimation. Returns: str: Template text for zero-shot budget estimation task
方案分享/赛题三/ljq13317046284/代码/TALE-main/utils/__init__.py:74
↓ 1 callers
Function
custom_compare_
(output, ground_truth)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/reward_score/prime_code/testing_util.py:595
↓ 1 callers
Function
data2list
Convert dataset instances to lists of samples and ground truths. Args: dataset: The dataset to convert Returns:
方案分享/赛题三/ljq13317046284/代码/TALE-main/inference.py:39
↓ 1 callers
Function
data_processing_afac
Process the AFAC dataset by compressing its Chain-of-Thought (CoT) outputs.
方案分享/赛题三/ljq13317046284/代码/TokenSkip-main/TokenSkip-main/LLMLingua.py:140
↓ 1 callers
Function
debug
(idx)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/evaluation/old_results_check.py:19
↓ 1 callers
Method
default_tp_concat_fn
name: name of the parameter param: training parameters infer_params (List[torch.Tensor]): a list of parameters all-gathered f
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/sharding_manager/megatron_vllm.py:285
↓ 1 callers
Function
define_log_level
Adjust the log level to above level
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/tools/logger.py:14
↓ 1 callers
Function
define_log_level
Adjust the log level to above level
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/logger.py:14
↓ 1 callers
Method
disconnect_mcp_server
Disconnect from an MCP server and remove its tools.
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/agent/mcp.py:133
↓ 1 callers
Method
dispatch_fn
(x, i, chunks)
方案分享/赛题三/双人成行/code/RL/verl/verl/protocol.py:631
↓ 1 callers
Function
dispatch_megatron_compute
User passes in dp data. The data is dispatched to all tp/pp ranks with the same dp
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/base/decorator.py:74
↓ 1 callers
Function
dispatch_megatron_pp_as_dp
treat pp as dp.
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/base/decorator.py:161
↓ 1 callers
Function
do_get_content
基于数据目录的key与handler配置,获取明细数据
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/tools/store.py:429
↓ 1 callers
Method
do_nothing
(self, data)
方案分享/赛题三/双人成行/code/RL/verl/tests/ray/test_data_transfer.py:44
↓ 1 callers
Function
do_parse
( output_dir, # Output directory for storing parsing results pdf_file_names: list[str], # List of PD
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/agent_api/easy_demo.py:14
↓ 1 callers
Function
download_files_distributed
(download_fn)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/dataset/rm_dataset.py:27
↓ 1 callers
Function
download_pdf
(url, pdf_path)
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/agent_api/utils.py:10
↓ 1 callers
Function
draw
绘制基金申购和赎回金额的时间序列图,并保存为图像文件 参数: data_path (str): 基金数据CSV文件路径 save_path (str): 图像保存路径
方案分享/赛题一/allin/代码文件/VLM/draw.py:10
↓ 1 callers
Function
draw_chart
绘制图表 参数: topic: 章节标题 content: 段落内容 chart_info: 图表信息 target: 目标类型(个股/行业)
方案分享/赛题四/队伍名字不能为空/docker_image/app/agent/agent_chart.py:72
↓ 1 callers
Function
dump_data
(data, name)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/debug/trajectory_tracker.py:69
↓ 1 callers
Function
dump_layernorm
r"""Dump the layernorm parameters in the model. The model is already unwrapped (and gathered).
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/ppo/ppo_utils.py:65
↓ 1 callers
Function
encode_image
将图像文件编码为base64字符串 参数: image_path (str): 图像文件路径 返回: str: base64编码的图像字符串
方案分享/赛题一/allin/代码文件/VLM/img_template.py:9
↓ 1 callers
Function
encode_image
(image_path)
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/agent_api/utils.py:17
↓ 1 callers
Method
ensure_cache_dir
确保缓存目录存在
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/create_html.py:53
↓ 1 callers
Method
ensure_directories
确保所有必要的目录存在
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/utils/report_manager.py:35
↓ 1 callers
Function
entry_point
Evaluates the functional correctness of generated samples, and writes results to f"{sample_file}_results.jsonl.gz"
方案分享/赛题三/双人成行/code/RL/code_eval/MBPP_Humaneval/eval/Coding/human_eval/evaluate_human_eval.py:156
↓ 1 callers
Function
estimate_pass_at_k
Estimates pass@k of each problem and returns them in an array.
方案分享/赛题三/双人成行/code/RL/code_eval/MBPP_Humaneval/eval/utils/evaluation.py:13
↓ 1 callers
Function
estimator
Calculates 1 - comb(n - c, k) / comb(n, k).
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/evaluation/pass_k_utils.py:7
↓ 1 callers
Function
estimator
Calculates 1 - comb(n - c, k) / comb(n, k).
方案分享/赛题三/双人成行/code/RL/code_eval/MBPP_Humaneval/eval/utils/evaluation.py:22
↓ 1 callers
Function
eval_math
(item, pred_key='prediction', prec=1e-3)
方案分享/赛题三/ljq13317046284/代码/TokenSkip-main/TokenSkip-main/eval/eval_script.py:45
↓ 1 callers
Function
evaluate
Evaluate model performance on test data. Returns: list: List of evaluation metrics
方案分享/赛题三/ljq13317046284/代码/TALE-main/TALE-PT.py:228
↓ 1 callers
Function
evaluate_functional_correctness
Evaluates the functional correctness of generated samples, and writes results to f"{sample_file}_results.jsonl.gz"
方案分享/赛题三/双人成行/code/RL/code_eval/MBPP_Humaneval/eval/utils/evaluation.py:39
↓ 1 callers
Function
evaluate_generations
We take the list of code generations and try to compile them and the run their corresponding unit tests which are retrieved from the APPS dataset
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/evaluation/compute_code_generation_metrics.py:108
↓ 1 callers
Method
evaluate_sample
(self, sample, cloze=True)
方案分享/赛题三/ljq13317046284/代码/TALE-main/evaluator/AccEvaluator_bak.py:62
↓ 1 callers
Method
execute
Execute the hot money data retrieval operation. Args: stock_code: Stock code, e.g. "600519" index_code: Inde
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/hot_money.py:73
↓ 1 callers
Method
execute
Get risk control data for a single stock with retry mechanism. Args: stock_code: Stock code max_count: Maxim
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/risk_control.py:47
↓ 1 callers
Method
execute
Get technical data for a stock with retry mechanism. Args: stock_code: Stock code need_realtime: Whether to
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/technical_analysis.py:60
↓ 1 callers
Method
execute
Execute a Web search and return detailed search results. Args: query: The search query to submit to the search engine
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/web_search.py:202
↓ 1 callers
Method
execute
Get market data with retry mechanism. Args: index_code: Index code sector_types: Sector types, options: 'all
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/sentiment.py:38
↓ 1 callers
Method
execute_batch_processing
执行批量问题处理流程 Args: input_file_path (str): 输入文件路径 Returns: bool: 处理是否成功完成
方案分享/赛题三/丛雨酱/全部代码/generate_result.py:246
↓ 1 callers
Method
execute_code
执行代码并返回结果 Args: code: 要执行的Python代码 Returns: { 'success': bool,
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/data_analysis/utils/code_executor.py:159
↓ 1 callers
Method
execute_func_rank_zero
(self, func, *args, **kwargs)
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/base/worker.py:215
↓ 1 callers
Method
execute_tool
Execute a single tool call with robust error handling
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/agent/toolcall.py:183
↓ 1 callers
Method
execute_with_func_generator
(self, func, *args, **kwargs)
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/base/worker.py:210
↓ 1 callers
Function
expand_data
(data_list)
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/spider/zhengce_rmzf.py:59
↓ 1 callers
Function
expand_index_data
解析恒生目录至列表
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/spider/index_hs.py:31
↓ 1 callers
Function
exteract_module_text_prompt
(module_name, lines)
方案分享/赛题二/ths/submit_code/run_rag_ans_a.py:47
↓ 1 callers
Function
exteract_module_text_prompt
(module_name, lines)
方案分享/赛题二/ths/submit_code/run_rag_ans_b.py:47
↓ 1 callers
Function
extract_answer
(text)
方案分享/赛题一/allin/代码文件/LLM_Train/rewards.py:6
↓ 1 callers
Function
extract_answer
从模型输出文本中提取情感标签 参数: text (str): 模型生成的完整文本 返回: MatchObject: 正则表达式匹配结果对象
方案分享/赛题一/allin/代码文件/Data_Acquire/sentiment.py:8
← previous
next →
1,201–1,300 of 3,355, ranked by callers