AGENT SKILL

recbole

Use RecBole for recommender-system data preparation, model selection, training, evaluation, tuning, and customization workflows.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
recbole
license
MIT
metadata
{ "disco-role": "operating" }
description
Use RecBole for recommender-system data preparation, model selection, training, evaluation, tuning, and customization workflows.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

RecBole

Use this repo skill when the task is about RecBole, the recbole Python package, or recommender-system experiments that need RecBole-style atomic data, configuration, models, training/evaluation, hyperparameter tuning, or extension points.

RecBole is a PyTorch-based recommendation library covering general, sequential, context-aware/CTR, and knowledge-aware recommendation. This skill is self-contained operating guidance for using the installed package; do not rely on the original repository checkout at runtime.

Start here

  1. Confirm the active environment can import RecBole and PyTorch:

    python -c "import recbole, torch; print(recbole.__version__); print(torch.__version__)"
    
  2. For a richer smoke check, run the bundled helper from this skill:

    python scripts/check_recbole_env.py --models BPR SASRec --check-optional
    
  3. Route the task to the narrowest sub-skill below. Read references/repo-provenance.md before deciding whether this skill is current for a different RecBole checkout.

Sub-skill routes

Configuration and data

Read configuration-and-data when the user needs to:

  • create or debug Config(model, dataset, config_file_list, config_dict);
  • understand YAML/dict/CLI priority;
  • prepare RecBole atomic files such as .inter, .user, .item, .kg, .link, or .net;
  • fix load_col, data_path, field-type headers, dataset filtering/splitting, saved dataset, or saved dataloader issues;
  • validate a dataset with the bundled atomic-file checker.

Training, evaluation, and tuning

Read training-evaluation-and-tuning when the user needs to:

  • run BPR, SASRec, FM, KGAT, or another model with run or run_recbole;
  • build a no-checkpoint CPU smoke run or a saved experiment run;
  • interpret valid/test metrics, grouped model results, or significance tests;
  • use load_data_and_model, full_sort_topk, or full_sort_scores;
  • run HyperTuning/Hyperopt/Ray or diagnose HPO/GPU/distributed failures.

Models and customization

Read models-and-customization when the user needs to:

  • choose among general, sequential, context-aware/CTR, knowledge-aware, or external-library model families;
  • resolve model class names with get_model/get_trainer;
  • understand model-property defaults and task-specific data prerequisites;
  • implement or diagnose custom recommenders, trainers, dataloaders, samplers, or metrics.

Shared references and helpers

Default operating stance

  • Prefer CPU-safe examples first: set use_gpu: False, small epochs, show_progress: False, and saved=False unless the user explicitly wants checkpoints.
  • Treat CUDA, multi-GPU/distributed training, Ray GPU trials, W&B, and long HPO as optional/budget-sensitive paths. Verify hardware, credentials, and output directories before enabling them.
  • Put complex data layout and load_col work in the configuration/data route before training.
  • Put model-family decisions before experiment execution. CTR/side-feature requests usually belong to context-aware models; knowledge-graph requests require KG/link data; sequence/session requests belong to sequential models.
  • If a workflow spans multiple areas, handle it in this order: data/config → model selection/customization → training/evaluation/tuning.

Do not use this skill for

  • Generic PyTorch training not using RecBole.
  • Editing RecBole source internals as a maintainer task; use a repository maintenance route if the user asks to modify the repo itself.
  • Recommendation frameworks outside RecBole unless the user is translating a workflow into RecBole terms.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351