Skip to content

Commit ebb9086

Browse files
authored
Move profiler -> prototype (#1370)
1 parent 8a51e1a commit ebb9086

File tree

8 files changed

+7
-7
lines changed

8 files changed

+7
-7
lines changed

test/profiler/test_device_spec.py renamed to test/prototype/test_device_spec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import torch
99
from utils import patch_device
1010

11-
from torchao.profiler.device_spec import (
11+
from torchao.prototype.profiler.device_spec import (
1212
_AVAILABLE_GPU_SPECS,
1313
CUDADeviceSpec,
1414
get_chip_name,

test/profiler/test_performance_counter.py renamed to test/prototype/test_performance_counter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
qkv_proj_io_check,
3131
)
3232

33-
from torchao.profiler.device_spec import CUDADeviceSpec, DeviceSpec
34-
from torchao.profiler.performance_counter import (
33+
from torchao.prototype.profiler.device_spec import CUDADeviceSpec, DeviceSpec
34+
from torchao.prototype.profiler.performance_counter import (
3535
CUDAPerformanceTimer,
3636
PerformanceCounterMode,
3737
PerformanceStats,

test/profiler/utils.py renamed to test/prototype/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import torch
77

8-
from torchao.profiler import PerformanceTimer
8+
from torchao.prototype.profiler import PerformanceTimer
99

1010

1111
@contextmanager

torchao/_models/llama/perf_profile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
33
## Performance Profiling Example
44
5-
An minimal version of `gpt-fast generate.py` that demonstrates usage of `torchao.profiler.TransformerPerformanceCounter`.
5+
An minimal version of `gpt-fast generate.py` that demonstrates usage of `torchao.prototype.profiler.TransformerPerformanceCounter`.
66
- Outputs from gpt-fast are prefixed with GPT-Fast
7-
- Outputs from `torchao.profiler.TransformerPerformanceCounter` are prefixed with `TransformerPerfCounter`.
7+
- Outputs from `torchao.prototype.profiler.TransformerPerformanceCounter` are prefixed with `TransformerPerfCounter`.
88
99
## Usage
1010
```python
@@ -118,7 +118,7 @@
118118

119119
from torchao._models.llama.model import Transformer
120120
from torchao._models.llama.tokenizer import get_tokenizer
121-
from torchao.profiler import (
121+
from torchao.prototype.profiler import (
122122
CUDADeviceSpec,
123123
TransformerPerformanceCounter,
124124
total_model_params,
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)