Commit
•
13373dd
1
Parent(s):
2debffc
test
Browse files- app.py +10 -3
- requirements.txt +1 -1
app.py
CHANGED
@@ -15,8 +15,13 @@ from huggingface_hub import whoami
|
|
15 |
from huggingface_hub.errors import GatedRepoError
|
16 |
from gradio_huggingfacehub_search import HuggingfaceHubSearch
|
17 |
from optimum_benchmark.launchers.device_isolation_utils import * # noqa
|
18 |
-
from optimum_benchmark.backends.openvino.utils import
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
20 |
from optimum_benchmark import (
|
21 |
Benchmark,
|
22 |
BenchmarkConfig,
|
@@ -35,7 +40,9 @@ SCENARIO = "inference"
|
|
35 |
BACKENDS = ["pytorch", "openvino"]
|
36 |
BENCHMARKS_HF_TOKEN = os.getenv("BENCHMARKS_HF_TOKEN")
|
37 |
BENCHMARKS_REPO_ID = "optimum-benchmark/OpenVINO-Benchmarks"
|
38 |
-
TASKS = set(
|
|
|
|
|
39 |
|
40 |
|
41 |
def parse_configs(inputs):
|
|
|
15 |
from huggingface_hub.errors import GatedRepoError
|
16 |
from gradio_huggingfacehub_search import HuggingfaceHubSearch
|
17 |
from optimum_benchmark.launchers.device_isolation_utils import * # noqa
|
18 |
+
from optimum_benchmark.backends.openvino.utils import (
|
19 |
+
TASKS_TO_OVMODELS,
|
20 |
+
TASKS_TO_OVPIPELINES,
|
21 |
+
)
|
22 |
+
from optimum_benchmark.backends.transformers_utils import (
|
23 |
+
TASKS_TO_AUTO_MODEL_CLASS_NAMES,
|
24 |
+
)
|
25 |
from optimum_benchmark import (
|
26 |
Benchmark,
|
27 |
BenchmarkConfig,
|
|
|
40 |
BACKENDS = ["pytorch", "openvino"]
|
41 |
BENCHMARKS_HF_TOKEN = os.getenv("BENCHMARKS_HF_TOKEN")
|
42 |
BENCHMARKS_REPO_ID = "optimum-benchmark/OpenVINO-Benchmarks"
|
43 |
+
TASKS = set(TASKS_TO_OVMODELS.keys() | TASKS_TO_OVPIPELINES) & set(
|
44 |
+
TASKS_TO_AUTO_MODEL_CLASS_NAMES.keys()
|
45 |
+
)
|
46 |
|
47 |
|
48 |
def parse_configs(inputs):
|
requirements.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
gradio_huggingfacehub_search
|
2 |
-
optimum-benchmark[openvino]@git+https://github.com/huggingface/optimum-benchmark.git
|
|
|
1 |
gradio_huggingfacehub_search
|
2 |
+
optimum-benchmark[openvino]@git+https://github.com/huggingface/optimum-benchmark.git@fix-prepare-inputs
|