-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add GPT-2 GGML x86 and Android Benchmarks #130
Conversation
6faec99
to
40e7cf9
Compare
974bdbe
to
d94f0e0
Compare
|
||
on: | ||
workflow_dispatch: | ||
pull_request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove before merging
./experimental/ggml/benchmark_ggml.sh "${TARGET_DEVICE}" "${GGML_BUILD_DIR}" "${RESULTS_PATH}" | ||
cat "${RESULTS_PATH}" | ||
|
||
# adb push "./experimental/ggml/set_android_scaling_governor.sh" "/data/local/tmp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment to explain the reason these lines are commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was supposed to remove all of this! Removed.
}, | ||
) | ||
|
||
ALL_DEVICES = [MOBILE_PIXEL_6_PRO] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Missing a newline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added.
experimental/ggml/benchmark_ggml.sh
Outdated
set -xeuo pipefail | ||
|
||
VENV_DIR="${OOBI_VENV_DIR:-ggml-benchmarks.venv}" | ||
PYTHON="${PYTHON:-/usr/bin/python3}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might work in broader environments
PYTHON="${PYTHON:-/usr/bin/python3}" | |
PYTHON="${PYTHON:-"$(which python3)"}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, changed.
experimental/ggml/benchmark_ggml.sh
Outdated
) | ||
|
||
if [[ "${TARGET_DEVICE_NAME}" =~ ^(pixel-4|pixel-6-pro|moto-edge-x30)$ ]]; then | ||
BENCHMARK_SCRIPT="run_benchmarks_android.py" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Maybe have one indent as these are in a if block? Same on the else block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
@@ -0,0 +1,51 @@ | |||
#!/bin/sh | |||
|
|||
# Copyright 2023 The IREE Authors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Copyright 2023 The IREE Authors | |
# Copyright 2023 The OpenXLA Authors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed.
d94f0e0
to
cc48e0b
Compare
cc48e0b
to
55d152a
Compare
Includes F32, F16 and INT4 versions.