Skip to content

Commit

Permalink
more precise type
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
  • Loading branch information
terrytangyuan committed Jan 20, 2025
1 parent 467e8a0 commit e706e9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vllm/profiler/layerwise_profile.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import copy
from collections import defaultdict
from dataclasses import asdict, dataclass, field
from typing import Callable, Dict, List, Optional, Tuple, TypeAlias, Union
from typing import Callable, Dict, List, Optional, Tuple, TypeAlias, Union, Any

import pandas as pd
from torch._C._autograd import DeviceType, _KinetoEvent, _ProfilerResult
Expand Down Expand Up @@ -128,7 +128,7 @@ def export_summary_stats_table_csv(self, filename: str):
])
df.to_csv(filename)

def convert_stats_to_dict(self) -> dict:
def convert_stats_to_dict(self) -> dict[str, Any]:
return {
"metadata": {
"num_running_seqs": self.num_running_seqs
Expand Down

0 comments on commit e706e9d

Please sign in to comment.