Skip to content

Commit

Permalink
Merge branch 'main' into diffusers-img-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix committed Sep 4, 2023
2 parents dd292d8 + 0c399f9 commit 99f4018
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions optimum/onnxruntime/modeling_seq2seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@ def show_deprecated_argument(arg_name):
preprocessors=preprocessors,
)
self.config = config
self.name_or_path = config.name_or_path

self.onnx_paths = onnx_paths
self.use_cache = use_cache
Expand Down
11 changes: 4 additions & 7 deletions tests/benchmark/benchmark_bettertransformer.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import argparse

import numpy as np
import pandas as pd
import torch
from tqdm import tqdm
from transformers import AutoModel, AutoModelForCausalLM, AutoModelForSeq2SeqLM, AutoTokenizer, GenerationConfig

from optimum.bettertransformer import BetterTransformer
from optimum.exporters import TasksManager
import numpy as np
import pandas as pd


def get_parser():
parser = argparse.ArgumentParser()
Expand Down Expand Up @@ -59,11 +60,7 @@ def get_parser():
"--use-mask",
action="store_true",
)
parser.add_argument(
"--is_decoder",
action="store_true",
help="Benchmark the generate method."
)
parser.add_argument("--is_decoder", action="store_true", help="Benchmark the generate method.")
parser.add_argument(
"--sweep",
action="store_true",
Expand Down

0 comments on commit 99f4018

Please sign in to comment.