A technical tool for analyzing PyTorch profiler artifacts to optimize GPU memory and CPU execution efficiency.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install model-resource-profiler
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install model-resource-profiler using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Model Resource Profiler is a specialized diagnostic framework designed for deep learning developers to profile and optimize model performance. It focuses on identifying GPU memory (VRAM) fragmentation and CPU execution hotspots by processing Torch CUDA memory snapshots and PyTorch profiler traces in standard JSON formats. By leveraging this Openclaw Skills integration, developers can transform raw trace data into actionable insights without the security risks associated with pickle deserialization. It serves as a bridge between complex profiler artifacts and concrete optimization strategies for both training and inference workloads.
This skill is built with safety as a priority, enforcing strict boundaries on artifact types to ensure the integrity of the analysis environment. Whether you are debugging out-of-memory errors or looking to reduce step time, the profiler provides a reproducible methodology for resource analysis. Using Openclaw Skills for performance auditing ensures that your model optimization process is data-driven, secure, and highly efficient.
To begin using this skill, ensure your PyTorch artifacts are exported in JSON format. You can run the analysis using the provided script:
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.json
If you currently use pickle for snapshots, convert them to JSON in your trusted environment using:
import json
import torch
snapshot = torch.cuda.memory._snapshot()
with open("memory_snapshot.json", "w", encoding="utf-8") as f:
json.dump(snapshot, f)
The skill processes structured JSON artifacts and outputs comprehensive reports. Data is organized as follows:
| Data Component | Format | Description |
|---|---|---|
| Memory Snapshot | JSON/JSON.GZ | Torch CUDA memory allocation and segment data. |
| CPU Trace | JSON/JSON.GZ | Chrome trace format containing traceEvents for CPU operations. |
| Analysis Report | Markdown (.md) | Human-readable diagnosis, bottlenecks, and action plans. |
| Metrics Export | JSON | Machine-readable data for performance tracking and regression testing. |
Metadata captured during the process includes model type, precision (fp16/bf16), parallelism strategy, and batch configurations to ensure context-aware analysis within Openclaw Skills.
Loading
A sophisticated linguistic utility that programmatically adapts text into ten distinct tones while preserving original meaning.

An AI-powered security layer that sanitizes prompts by removing PII and detecting malicious injection attempts before they reach your LLM.

A powerful NLU tool for classifying text into custom intents with confidence scoring and entity extraction.

A behavior-design diagnostic tool that uses the BJ Fogg B=MAP framework to identify focus blockers and prescribe immediate, tiny actions.

Automates the creation of comprehensive, visually engaging travel itineraries including logistics, budgeting, and real-time verification.

Identify trending YouTube outlier videos within specific niches to automate content research and reporting.








































