observers-and-logging
Store and inspect Sacred run metadata, artifacts, resources, metrics, and external observer integrations.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- observers-and-logging
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Store and inspect Sacred run metadata, artifacts, resources, metrics, and external observer integrations.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md10.6 KB
- 参考文档references/observer-workflows.md10.9 KB
- 参考文档references/troubleshooting.md14.2 KB
- 脚本scripts/sacred_file_observer_probe.py6.9 KB
03 SKILL.md 正文
Sacred observers and logging
Use this sub-skill when the task is about recording, inspecting, or troubleshooting Sacred run metadata: observers, local run directories, metrics, _run.info, resources, artifacts, Python logging, and optional external storage/notification integrations.
Route here when
- The user wants a local observer that writes
run.json,config.json,info.json,cout.txt,metrics.json, artifacts, resources, and source snapshots. - The user asks how observer events flow (
started_event,heartbeat_event, terminal events, resource/artifact events,log_metrics) or how observer priority and run IDs work. - The user needs to decide between
FileStorageObserver,MongoObserver,QueuedMongoObserver,SqlObserver,TinyDbObserver/TinyDbReader,QueueObserver, S3/GCS, Slack, Telegram, or Neptune-style integrations. - The user needs to record scalar metrics, small custom info, input resources, output artifacts, or Python logger output from a running experiment.
Route elsewhere
- Initial experiment/ingredient construction,
@ex.main,ex.run, and basicRunlifecycle belong in theexperiment-coresub-skill. - Exact command-line observer flag syntax and config-update CLI quoting belong in the
configuration-and-clisub-skill. - Output capture modes, dependency/source discovery, clean-repo enforcement, seeds, and reproducibility settings belong in the
reproducibility-and-capturesub-skill.
Read or run these bundled files
- Read references/observer-workflows.md when choosing an observer, adding storage to an experiment, logging metrics/info/resources/artifacts, or inspecting a local run directory.
- Read references/api-reference.md when you need verified Sacred 0.8.7 signatures, observer event parameters, storage schemas, or optional observer constructor notes.
- Read references/troubleshooting.md when an observer import fails, a storage service or credential is missing,
FileStorageObservercannot write, metrics are absent/out of order, orQueueObserverappears stuck. - Run scripts/sacred_file_observer_probe.py to verify that the installed Sacred package can perform a tiny local observed run and write config, run metadata, info, metrics, artifact, and resource signals in a temporary directory.
Operating rules
- Attach observers before starting the run. Sacred sorts observers by descending
priority; the first observer that sees_id=Nonedetermines the run ID. - Prefer
FileStorageObserverfor no-service local validation. It needs only a writable directory and is the verified path for this sub-skill. - Treat MongoDB, SQL, TinyDB, S3, GCS, Slack, Telegram, and Neptune integrations as optional unless the current environment explicitly proves their packages, services, and credentials.
- Only mutate
ex.infoor_run.info, callex.log_scalar/_run.log_scalar, or useopen_resource,add_resource, andadd_artifactwhile a run is active. - For long-running jobs, remember that observers receive live
info, captured output, result, and metrics during heartbeat events; finished runs receive a final heartbeat before terminal observer events. - Keep large binary outputs as artifacts, small JSON-like status as
info, input files as resources, and scalar series as metrics.
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).