Spaces:
Running
Running
Commit
•
504fd0f
1
Parent(s):
778bc8e
test
Browse files
app.py
CHANGED
@@ -15,6 +15,7 @@ from config_store import (
|
|
15 |
from optimum_benchmark.launchers.base import Launcher # noqa
|
16 |
from optimum_benchmark.backends.openvino.utils import TASKS_TO_OVMODEL
|
17 |
from optimum_benchmark.backends.transformers_utils import TASKS_TO_MODEL_LOADERS
|
|
|
18 |
# from optimum_benchmark.backends.ipex.utils import TASKS_TO_IPEXMODEL
|
19 |
from optimum_benchmark import (
|
20 |
BenchmarkConfig,
|
@@ -74,6 +75,8 @@ def run_benchmark(kwargs, oauth_token: gr.OAuthToken):
|
|
74 |
elif "." in key.label:
|
75 |
backend, argument = key.label.split(".")
|
76 |
configs[backend][argument] = value
|
|
|
|
|
77 |
else:
|
78 |
continue
|
79 |
|
|
|
15 |
from optimum_benchmark.launchers.base import Launcher # noqa
|
16 |
from optimum_benchmark.backends.openvino.utils import TASKS_TO_OVMODEL
|
17 |
from optimum_benchmark.backends.transformers_utils import TASKS_TO_MODEL_LOADERS
|
18 |
+
|
19 |
# from optimum_benchmark.backends.ipex.utils import TASKS_TO_IPEXMODEL
|
20 |
from optimum_benchmark import (
|
21 |
BenchmarkConfig,
|
|
|
75 |
elif "." in key.label:
|
76 |
backend, argument = key.label.split(".")
|
77 |
configs[backend][argument] = value
|
78 |
+
elif "kwargs" in key.label:
|
79 |
+
kwargs[key.label] = eval(value)
|
80 |
else:
|
81 |
continue
|
82 |
|