Commit 64f199d
Move unbacked-parity regression policy into the benchmark; widen MobileBert (#189813)
Summary:
The periodic inductor_huggingface_unbacked_parity job intermittently reds on
MobileBertForMaskedLM with no real regression behind it. Its backed and unbacked
compiled times are ~equal and land in a bimodal distribution independently, so
the backed-vs-unbacked diff is ~+-2% autotune/measurement jitter -- centered at
zero over 16 independent runs, and a pre-onset build reproduces the same
variance, so it is not a code regression.
Move the regression policy out of the CI shell script and into the benchmark
(_run_compare_backed_unbacked in benchmarks/dynamo/common.py), next to the
comparison itself, as a per-model threshold table (MobileBertForMaskedLM = 3.0%,
others 1.0%). The benchmark now emits a canonical UNBACKED_PARITY_REGRESSION /
UNBACKED_PARITY_OK verdict line, and .ci/pytorch/test.sh detects that line
instead of re-deriving the threshold in bash.
X-link: pytorch/pytorch#189813
Approved by: https://github.com/bobrenjc93
Reviewed By: jeanschmidt
Differential Revision: D112002277
fbshipit-source-id: 8753da02d79cbf776ab1c82a00339a1c18d7c7dd1 parent 423645d commit 64f199d
1 file changed
Lines changed: 38 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4027 | 4027 | | |
4028 | 4028 | | |
4029 | 4029 | | |
| 4030 | + | |
| 4031 | + | |
| 4032 | + | |
| 4033 | + | |
| 4034 | + | |
| 4035 | + | |
| 4036 | + | |
| 4037 | + | |
| 4038 | + | |
| 4039 | + | |
| 4040 | + | |
| 4041 | + | |
| 4042 | + | |
| 4043 | + | |
| 4044 | + | |
4030 | 4045 | | |
4031 | 4046 | | |
4032 | 4047 | | |
| |||
4045 | 4060 | | |
4046 | 4061 | | |
4047 | 4062 | | |
4048 | | - | |
| 4063 | + | |
4049 | 4064 | | |
4050 | 4065 | | |
4051 | 4066 | | |
| |||
4158 | 4173 | | |
4159 | 4174 | | |
4160 | 4175 | | |
4161 | | - | |
| 4176 | + | |
4162 | 4177 | | |
4163 | 4178 | | |
4164 | 4179 | | |
| |||
4175 | 4190 | | |
4176 | 4191 | | |
4177 | 4192 | | |
| 4193 | + | |
| 4194 | + | |
| 4195 | + | |
| 4196 | + | |
| 4197 | + | |
| 4198 | + | |
| 4199 | + | |
| 4200 | + | |
| 4201 | + | |
| 4202 | + | |
| 4203 | + | |
| 4204 | + | |
| 4205 | + | |
| 4206 | + | |
| 4207 | + | |
| 4208 | + | |
| 4209 | + | |
| 4210 | + | |
| 4211 | + | |
| 4212 | + | |
| 4213 | + | |
4178 | 4214 | | |
4179 | 4215 | | |
4180 | 4216 | | |
| |||
0 commit comments