export-and-artifacts
Export PySR equations, inspect hall-of-fame artifacts, reload saved runs, and configure optional logging.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- export-and-artifacts
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Export PySR equations, inspect hall-of-fame artifacts, reload saved runs, and configure optional logging.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/artifacts-and-reload.md7.7 KB
- 参考文档references/export-reference.md7.5 KB
- 参考文档references/troubleshooting.md6.9 KB
- 脚本scripts/inspect_equation_artifacts.py11.8 KB
03 SKILL.md 正文
PySR export and artifacts
Use this sub-skill when the user already has, or is about to persist, fitted PySR equations and needs to choose rows, export equations, inspect run artifacts, reload a run, or configure search logging.
Route here for
- Reading
model.equations_,model.get_best(), selected rows, andmodel_selectionbehavior. - Calling
predict(index=...),sympy(index=...),latex(index=...),latex_table(...),jax(index=...), orpytorch(index=...). - Explaining
lambda_format,sympy_format, optionaljax_format/torch_format, and custom export mappings. - Finding or inspecting
hall_of_fame.csv,hall_of_fame_output*.csv, backup CSVs, andcheckpoint.pklunder a PySR run directory. - Reloading with
PySRRegressor.from_file(run_directory=...)from checkpoint or CSV. - Choosing
output_directory,run_id,temp_equation_file, orTensorBoardLoggerSpecsettings.
Route away from here
- If the user has not fit a model yet, start with
../fit-and-diagnose/for fitting, operator basics, and search-quality diagnosis. - If export fails because a custom Julia operator has no Python/SymPy/JAX/Torch equivalent, use this sub-skill for the export mapping and
../customization-and-constraints/for the operator/loss design. - If the model uses
TemplateExpressionSpec, use this sub-skill for artifact/reload mechanics but read../structured-expressions/before promising SymPy, LaTeX, JAX, or PyTorch export. - If the issue is Julia startup, parallelism, Slurm, Docker/Apptainer, or installation, route to
../runtime-and-scaling/.
Required references
- Read
references/export-reference.mdfor API behavior, row selection, and backend export mappings. - Read
references/artifacts-and-reload.mdbefore giving file-layout, checkpoint, partial-run,from_file,temp_equation_file, or TensorBoard advice. - Read
references/troubleshooting.mdwhen an export, prediction, reload, or artifact lookup fails. - Use
scripts/inspect_equation_artifacts.py --helpto inspect a hall-of-fame CSV without importing PySR.
Safe operating pattern
- Identify whether the user has an in-memory fitted model, a run directory, a CSV, or only printed equations.
- If in memory, inspect
model.equations_first. For single-output models it is a DataFrame; for multi-output models it is a list of DataFrames. - Select rows deliberately. Use
model.get_best()for the currentmodel_selection, or passindex=toget_best,predict,sympy,latex,jax, andpytorchwhen the user wants a specific Pareto-front row. - For custom operators, make sure
extra_sympy_mappingsexists before NumPy/SymPy/LaTeX/prediction, and addextra_jax_mappingsorextra_torch_mappingsbefore those optional backends. - For persisted runs, prefer
PySRRegressor.from_file(run_directory=...). Treat the CSV plus the model-construction code as the durable artifact; treat the pickle checkpoint as convenient but version-sensitive. - Do not assume optional dependencies are installed. JAX, PyTorch, TensorBoard, and template-expression exports require separate capability checks.
04 同仓库更多 Skills
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.
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.
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.
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.
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.
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).