Skip to content

Dynamic Performance Profiler for Distributed AI


Core Features

SQL tables, live introspection, cluster federation, and diagnostic skills

πŸ”

Zero Intrusion

Attach to running processes without code changes. No instrumentation, no restarts, no workflow disruption.

πŸ“Š

SQL Analytics

Query performance data with standard SQL. Use familiar syntax to analyze torch traces, memory usage, and more.

🎯

Live Execution

Run Python code directly in target processes. Inspect variables, modify state, and debug in real-time.

πŸ“ˆ

Stack Analysis

Capture execution stacks with variable values. Understand exactly what your code is doing at any moment.

🌐

Distributed Ready

Monitor processes across multiple nodes. Debug distributed training issues with cross-node correlation.

🧩

Diagnostic Skills

Bundled multi-step playbooks β€” health_overview, slow_rank, … β€” via CLI and Web Agent.

πŸ”—

Federated SQL

global.* cross-rank queries with _rank / _role tags and cluster query fan-out.

Quick Start

1

Install Probing

pip install probing
2

Enable Probing

# Recommended for training
PROBING=1 PROBING_TORCH_PROFILING=on python train.py

# Or attach on Linux
pgrep -f "python.*train"
probing -t <pid> inject
3

Start Analyzing

# Query performance data
probing -t <pid> query "SELECT * FROM python.torch_trace LIMIT 10"

# Execute code in process
probing -t <pid> eval "print(torch.cuda.memory_allocated())"

# Capture stack trace
probing -t <pid> backtrace

SQL-Powered Analytics

Query your AI workload data with familiar SQL syntax. Analyze PyTorch traces, memory usage, and custom metrics using standard database operations.

Built on Apache DataFusion for high-performance analytics with support for aggregations, window functions, and complex joins.

Learn More β†’
-- Find slowest operations
SELECT
    module,
    AVG(duration) as avg_time,
    MAX(allocated) as peak_memory
FROM python.torch_trace
WHERE step > 100
GROUP BY module
ORDER BY avg_time DESC
LIMIT 10;

Live Process Debugging

Execute arbitrary Python code in running processes without stopping them. Inspect variables, check GPU memory, and modify behavior on the fly.

Interactive REPL mode for exploratory debugging. Tab completion and full access to the process context.

Learn More β†’
# Check GPU memory
probing -t <pid> eval "
import torch
print(f'Allocated: {torch.cuda.memory_allocated()/1024**3:.2f} GB')
print(f'Cached: {torch.cuda.memory_reserved()/1024**3:.2f} GB')"

# Interactive REPL
probing -t <pid> repl

Use Cases

πŸŽ“

Training Debugging

Debug training instabilities, hangs, and performance regressions. Real-time insight into why training diverges or stops.

πŸ’Ύ

Memory Analysis

Track GPU/CPU memory usage across training steps. Detect memory leaks and optimize memory efficiency.

πŸš€

Performance Profiling

Identify bottlenecks in forward/backward passes. Find slow operations and optimize model performance.

πŸ”§

Production Monitoring

Monitor AI services without restarts. Collect custom metrics and debug production issues live.

Join the Community

Probing is open source. Get involved!