mlboydaisuke commited on
Commit
94ef912
·
verified ·
1 Parent(s): e423b81

Replace dynamic-range int8 with weight-only int8 (fixes collapsed accuracy)

Browse files

As discussed in the collaboration space: the bundled `efficientnet_b1_dynamic_wi8_afp32.tflite` collapses against the torch fp32 reference — Top-1 0/4 with minimum logit correlation 0.32 on fixed random probes (seeds 0-3), 0/10 Top-1 with real photos in the fuller run — which fits EfficientNet-B1's known quantization sensitivity (SE blocks + SiLU activations). The fp32 conversion itself is exact (correlation 1.000000).

This PR replaces it with a weight-only int8 quantization of the same model:

| variant | Top-1 | Top-5 | min corr | size |
|---|---|---|---|---|
| dynamic_wi8_afp32 (removed) | 0/4 | 0/20 | 0.320 | 8.5 MB |
| weight_only_wi8_afp32 (added) | 4/4 | 18/20 | 0.998 | 8.9 MB |

Same ~3.5x size reduction vs fp32. The fp32 model and the Tensor G5 plugin variant are untouched. Happy to share the reproduction harness (torch fp32 reference, fixed-seed probes + photo set) if useful.

efficientnet_b1_dynamic_wi8_afp32.tflite → efficientnet_b1_weight_only_wi8_afp32.tflite RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e2b1af45691f3b18d119d0cf9ba2d278cd04a8fba6fe86908ae4145024fce06a
3
- size 8540672
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a4660a2ba9bae994267a7413fe737b57b738328b1e0b1fbab399d181e32327d
3
+ size 8876144