Unverified Commit e4da75ea authored by anj-s's avatar anj-s Committed by GitHub
Browse files

[chore] Update the PyTorch version that we run benchmarks with. (#823)

* update pytorch version for benchmarks

* reduce golden data precision check
parent 11a24161
......@@ -546,19 +546,19 @@ jobs:
# Cache the venv directory that contains dependencies
- restore_cache:
keys:
- cache-key-py37-benchmarks-181-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
- cache-key-py37-benchmarks-190-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
# Cache the MNIST directory that contains benchmark data
- restore_cache:
keys:
- cache-key-benchmark-MNIST-{{ checksum "benchmarks/datasets/mnist.py"}}
- <<: *install_dep_181
- <<: *install_dep_190
- save_cache:
paths:
- ~/venv
key: cache-key-py37-benchmarks-181-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
key: cache-key-py37-benchmarks-190-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
- <<: *install_repo
......@@ -595,7 +595,7 @@ jobs:
# Cache the venv directory that contains dependencies
- restore_cache:
keys:
- cache-key-py37-benchmarks-181-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
- cache-key-py37-benchmarks-190-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
# Cache the MNIST directory that contains benchmark data
......@@ -603,12 +603,12 @@ jobs:
keys:
- cache-key-benchmark-MNIST-{{ checksum "benchmarks/datasets/mnist.py"}}
- <<: *install_dep_181
- <<: *install_dep_190
- save_cache:
paths:
- ~/venv
key: cache-key-py37-benchmarks-181-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
key: cache-key-py37-benchmarks-190-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
- <<: *install_repo
......
......@@ -109,7 +109,7 @@ def validate_benchmark(measurements, final_loss, args, check_regression):
assert max_memory < 1.05 * golden_data["reference_memory"], (
f"Memory use regression detected: " f"{max_memory} vs. {1.05* golden_data['reference_memory']}"
)
assert abs(cast(float, final_loss) - golden_data["reference_loss"]) < 1e-3, (
assert abs(cast(float, final_loss) - golden_data["reference_loss"]) < 1e-2, (
f"Loss regression detected: " f"{final_loss} vs. {golden_data['reference_loss']}"
)
logging.info("[Regression Test] VALID")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment