mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-17 03:28:22 +06:00
feat: add benchmarks pg indexes (#34536)
* feat: add benchmarks pg indexes * refactor: remove debug `df -h`
This commit is contained in:
parent
b5919e12f7
commit
294c170ff9
1
.github/workflows/benchmark.yml
vendored
1
.github/workflows/benchmark.yml
vendored
@ -63,7 +63,6 @@ jobs:
|
|||||||
commit_id=$GITHUB_SHA
|
commit_id=$GITHUB_SHA
|
||||||
fi
|
fi
|
||||||
commit_msg=$(git show -s --format=%s | cut -c1-70)
|
commit_msg=$(git show -s --format=%s | cut -c1-70)
|
||||||
df -h
|
|
||||||
python3 benchmark/llama.py "${{ github.head_ref || github.ref_name }}" "$commit_id" "$commit_msg"
|
python3 benchmark/llama.py "${{ github.head_ref || github.ref_name }}" "$commit_id" "$commit_msg"
|
||||||
env:
|
env:
|
||||||
HF_TOKEN: ${{ secrets.HF_HUB_READ_TOKEN }}
|
HF_TOKEN: ${{ secrets.HF_HUB_READ_TOKEN }}
|
||||||
|
@ -7,6 +7,10 @@ CREATE TABLE IF NOT EXISTS benchmarks (
|
|||||||
created_at timestamp without time zone NOT NULL DEFAULT (current_timestamp AT TIME ZONE 'UTC')
|
created_at timestamp without time zone NOT NULL DEFAULT (current_timestamp AT TIME ZONE 'UTC')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CREATE INDEX IF NOT EXISTS benchmarks_benchmark_id_idx ON benchmarks (benchmark_id);
|
||||||
|
|
||||||
|
CREATE INDEX IF NOT EXISTS benchmarks_branch_idx ON benchmarks (branch);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS device_measurements (
|
CREATE TABLE IF NOT EXISTS device_measurements (
|
||||||
measurement_id SERIAL PRIMARY KEY,
|
measurement_id SERIAL PRIMARY KEY,
|
||||||
benchmark_id int REFERENCES benchmarks (benchmark_id),
|
benchmark_id int REFERENCES benchmarks (benchmark_id),
|
||||||
@ -17,6 +21,8 @@ CREATE TABLE IF NOT EXISTS device_measurements (
|
|||||||
time timestamp without time zone NOT NULL DEFAULT (current_timestamp AT TIME ZONE 'UTC')
|
time timestamp without time zone NOT NULL DEFAULT (current_timestamp AT TIME ZONE 'UTC')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CREATE INDEX IF NOT EXISTS device_measurements_branch_idx ON device_measurements (benchmark_id);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS model_measurements (
|
CREATE TABLE IF NOT EXISTS model_measurements (
|
||||||
measurement_id SERIAL PRIMARY KEY,
|
measurement_id SERIAL PRIMARY KEY,
|
||||||
benchmark_id int REFERENCES benchmarks (benchmark_id),
|
benchmark_id int REFERENCES benchmarks (benchmark_id),
|
||||||
@ -24,3 +30,4 @@ CREATE TABLE IF NOT EXISTS model_measurements (
|
|||||||
time timestamp without time zone NOT NULL DEFAULT (current_timestamp AT TIME ZONE 'UTC')
|
time timestamp without time zone NOT NULL DEFAULT (current_timestamp AT TIME ZONE 'UTC')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CREATE INDEX IF NOT EXISTS model_measurements_branch_idx ON model_measurements (benchmark_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user