techfreakworm commited on
Commit
de2596c
·
unverified ·
1 Parent(s): 2e85b86

docs: what H17 does not cover, and the four-attribute hand-off

Browse files

A.5.1 already said H10/H11 passing does not substitute for the round-trip.
The reverse needed saying too: H17 passing does not clear the app's path. It
ran through the to_mel= seam with the harness supplying wave.to(device=...,
dtype=...), so it stepped over a hand-off the application did not do -- and
H10/H11 still failed on CPU-vs-CUDA after H17 was green.

A harness that moves a tensor the app does not is the same shape as a float32
fixture over a bfloat16 defect. Two claims, one green result.

PLAN rule 10, in host-runner's framing: at a hand-off between our code and a
model, every attribute that can disagree eventually will, and fixing them as
they surface is not the same as enumerating them. One call site, four
attributes, all four wrong in turn -- dtype outward, dtype inward, rank and
axis order, device -- each found by running it and each fix correct and
incomplete because it addressed the attribute that had crashed.

The crashing end announces itself and the quiet end does not, which is why
the scope kept being set by the exception. The mitigation is a written list
rather than more care, and a helper named for the module it matches rather
than for one of the attributes.

Files changed (1) hide show
  1. docs/PLAN.md +29 -0
docs/PLAN.md CHANGED
@@ -1740,6 +1740,35 @@ intervention could — and when it ran, all twelve moved. That is the same shape
1740
  as one artifact being rejected as a control because it was pinned to the rail:
1741
  **a baseline has to be established, not assumed from internal consistency.**
1742
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1743
  ### 9.1.6 The ladder, and the rung that is still hand-built
1744
 
1745
  Each rung was added because the one below it passed while something was broken:
 
1740
  as one artifact being rejected as a control because it was pinned to the rail:
1741
  **a baseline has to be established, not assumed from internal consistency.**
1742
 
1743
+ **10. At a hand-off between our code and a model, every attribute that can
1744
+ disagree eventually will — and fixing them as they surface is not the same as
1745
+ enumerating them.**
1746
+
1747
+ `host-runner`'s words, after the fourth one. **One call site**, `mel ->
1748
+ audio_vae.encode`, and every attribute of that tensor was wrong in turn:
1749
+
1750
+ | | attribute | how it failed |
1751
+ |---|---|---|
1752
+ | 1 | **dtype**, outward | `_as_array` calling `.numpy()` on bf16 — numpy has no such dtype |
1753
+ | 2 | **dtype**, inward | float32 mel into a bf16 `conv_in` |
1754
+ | 3 | **rank + axis order** | unbatched, mel-major, where the encoder wants batched and time-major |
1755
+ | 4 | **device** | CPU mel into CUDA weights, *at the same line as (2)* |
1756
+
1757
+ Each was found by running it, none by the offline gate, and each fix was
1758
+ correct and incomplete because it addressed the attribute that had crashed.
1759
+
1760
+ > **The crashing end announces itself and the quiet end does not.** Every one of
1761
+ > these raised a clear exception naming the thing that was wrong, which is
1762
+ > exactly why the fix kept being scoped to it. `_as_array` raised a `TypeError`
1763
+ > naming bfloat16; nobody asked what happened on the way *in*.
1764
+
1765
+ **The mitigation is a written list, not more care.** The helper that owns the
1766
+ hand-off now names all four attributes and which function owns each — so the
1767
+ fifth is *looked for* rather than waited for. And the helper is named for the
1768
+ **module** it matches against, not for one attribute, because
1769
+ `_matched_dtype` is a name that invites the device half to be deleted by
1770
+ someone tidying it.
1771
+
1772
  ### 9.1.6 The ladder, and the rung that is still hand-built
1773
 
1774
  Each rung was added because the one below it passed while something was broken: