AGENT SKILL

paper-model-copilot

Use RD-Agent's general model copilot to turn a paper/report PDF into a structured model experiment and iteratively developed PyTorch implementation.

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

01 前言 Front Matter

name
paper-model-copilot
license
MIT
metadata
{ "disco-role": "operating", "parent-skill": "rd-agent" }
description
Use RD-Agent's general model copilot to turn a paper/report PDF into a structured model experiment and iteratively developed PyTorch implementation.
disable-model-invocation
true

02 资源文件 2

03 SKILL.md 正文

RD-Agent paper and model copilot

Use this sub-skill for general_model, paper/report-driven model implementation, model-coder workflows, and tensor-shape/evaluator troubleshooting. It is appropriate for tabular, time-series, and graph model research when a paper or report is the primary source.

Input contract

Provide a local PDF report or paper path. The general-model entry point is:

rdagent general_model --report-file-path=<path-to-pdf>

Probe the exact option name with rdagent general_model --help. The implementation extracts a first-page image, loads an experiment description from the PDF, then sends it through a general-model scenario and Qlib model coder. A readable PDF is necessary but not sufficient: the paper must expose enough architecture, dimensions, data protocol, and objective details to implement and evaluate the model.

Use inspect_pdf.py for a local, read-only page-count/text probe before starting a model-generation loop. It does not upload or summarize the document.

Reader → coder → evaluator workflow

  1. Validate the PDF and identify the target task/data type.
  2. Extract a structured record: inputs, outputs, architecture, tensor shapes, hyperparameters, loss, optimizer, training schedule, baseline, and evaluation protocol.
  3. Mark details that are ambiguous or absent rather than inventing them.
  4. Let the model coder generate an implementation and run a tiny tensor-shape/import check.
  5. Compare the implementation against the paper's protocol; then run the smallest deterministic evaluator available.
  6. Preserve the PDF identifier, structured experiment record, generated source, sample shapes, evaluator command, and deviations from the paper.

Model-research hygiene

  • Separate paper fidelity from task performance. A high score with a different split or architecture is not a faithful reproduction.
  • Check tensor shapes at every boundary and use a tiny batch before expensive training.
  • For time-series and graph data, document ordering, padding/masking, adjacency representation, and batching semantics.
  • Avoid placing papers with restricted distribution, API keys, or private datasets in shared run directories.
  • The general model flow is a copilot, not a paper-verification oracle; manually review extracted claims and all generated code.

Read copilot-contract.md and route to quant-finance when the requested evaluator is specifically Qlib finance research.

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