Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix TypeError issue #5927

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion benchmarks/experiment_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import torch
from tqdm import tqdm
from torch.profiler import profile, record_function, ProfilerActivity
from typing import List

try:
from .benchmark_model import ModelLoader
Expand Down Expand Up @@ -306,7 +307,7 @@ def loop(prof=None):
return metrics, output


def append_filter_by_tier(filter_list: list[str], filter_by_tier: list[int]):
def append_filter_by_tier(filter_list: List[str], filter_by_tier: List[int]):
_FILTER_BY_TIER = {
1:
r"^(BERT_pytorch|cm3leon_generate|DALLE2_pytorch|dlrm|hf_GPT2|hf_GPT2_large|GPT_3|hf_T5|hf_T5_base|hf_T5_generate|hf_T5_large|llama_v2_7b_16h|stable_diffusion_xl)$",
Expand Down