-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathprofiler_config.yaml
More file actions
65 lines (52 loc) · 1.95 KB
/
Copy pathprofiler_config.yaml
File metadata and controls
65 lines (52 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# vLLM Profiler Configuration
# This file controls torch profiler behavior for instrumented vLLM pods
# Profiling ranges - specify which model execution calls to profile
# Format: "start-end" or "start1-end1,start2-end2,..." for multiple ranges
# Examples:
# "100-150" - Profile calls 100 through 150
# "50-100,200-300" - Profile calls 50-100 AND 200-300
# "0-50" - Profile first 50 calls
profiling_ranges: "100-150"
# Torch profiler activities to record
# Available: CPU, CUDA
# Use comma-separated list: "CPU,CUDA"
activities: "CPU,CUDA"
# Profiler options
options:
# Record tensor shapes in trace
record_shapes: true
# Capture Python stack traces (useful for debugging but adds overhead)
with_stack: true
# Profile memory allocations (adds overhead)
profile_memory: false
# Record function names for better trace readability
with_modules: false
# Output configuration
output:
# Export Chrome trace JSON file (can be opened in chrome://tracing)
# Set to false to skip trace export (only print table)
export_chrome_trace: true
# Output file path (supports placeholders)
# Available placeholders:
# {pid} - Process ID
# {rank} - Tensor parallel rank (if available)
# {start} - Start of profiling range
# {end} - End of profiling range
# Note: {start} and {end} are required when using multiple ranges to avoid overwriting files
file_pattern: "/tmp/trace_pid{pid}_range{start}-{end}.json"
# Table output settings
table:
enabled: true
sort_by: "cuda_time_total" # Options: cuda_time_total, cpu_time_total, cpu_time, cuda_time
row_limit: 50
# Print profiler statistics to logs
print_stats: true
# Advanced settings
advanced:
# Module to intercept (change only if using different vLLM version)
target_module: "vllm.v1.worker.gpu_worker"
# Class and method to wrap
target_class: "Worker"
target_method: "execute_model"
# Enable debug logging from profiler
debug: false