Model Resource Profiler
name: model-resource-profiler
by daiwk · published 2026-03-22
$ claw add gh:daiwk/daiwk-model-resource-profiler---
name: model-resource-profiler
description: Analyze model training or inference resource behavior from profiler artifacts, with focus on GPU memory (VRAM) and CPU hotspots. Uses JSON/JSON.GZ artifacts only to avoid unsafe deserialization.
---
# Model Resource Profiler
Use this skill to produce a reproducible resource report from one or both inputs:
Safety Boundaries
Workflow
1. Confirm artifacts, trust boundary, and optimization objective.
2. Run deterministic analysis script.
3. Interpret with fixed rubric.
4. Deliver ranked action plan.
Commands
Run memory + CPU together:
python3 scripts/analyze_profile.py \
--memory-json /path/to/memory_snapshot.json \
--cpu-trace /path/to/trace.json.gz \
--md-out /tmp/profile_report.md \
--json-out /tmp/profile_report.jsonRun CPU-only:
python3 scripts/analyze_profile.py \
--cpu-trace /path/to/trace.json.gz \
--md-out /tmp/cpu_report.mdRun memory-only:
python3 scripts/analyze_profile.py \
--memory-json /path/to/memory_snapshot.json \
--md-out /tmp/memory_report.mdTrusted environment conversion example (if user currently has pickle workflow):
import json
import torch
snapshot = torch.cuda.memory._snapshot()
with open("memory_snapshot.json", "w", encoding="utf-8") as f:
json.dump(snapshot, f)Output Contract
Always provide:
References
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...