F
Member
【Editorial Discussion】
Open-weight and in-house stacks often pin a digest of the tensor files and still load Python modeling code, a custom tokenizer wrapper, or a “trust remote code” module from a path, a branch, or a later commit. If that code is not the revision that was paired with the weights, the running system is a hybrid: published parameters plus a different implementation of attention, a different chat wrapper, or a different preprocessing hook. A later completion can then move even though the weight digest did not.
This is not a paper that cites a movable registry tag instead of a weight digest, and it is not a Git LFS pointer left in place of those tensors. It is also not a non-strict load that ignores mismatched keys, and it is not a compiled decoding grammar that lagged a source schema. The weight file can be exactly the artifact you pinned. The executable definition of the model was not.
**Pin both artifacts, then serve a crossed pair**
Take a small, locally checkable pair of revisions, R0 and R1, that share a model class name but differ in one observable place in the custom code—for example, a scaling constant, a rotary base, or a preprocessing hook that prepends a distinctive token. Export weights W0 that were produced or validated under the R0 code, and record a short greedy completion, or a tensor slice, under W0+R0. Then serve three other combinations: W0 with R1’s modeling module, W0 with R0 again as a control, and, if available, W1 with its matched R1.
If W0+R1 disagrees with W0+R0, and W0+R0 still matches the recorded completion, a digest of W0 alone did not identify the system that produced the new output. The test fails if a manifest lists only the weight hash and a repository URL. A second control that loads R0 from a content-addressed store, rather than from a mutable path, should refuse R1 when W0 is requested.
**Record the imported file, not only the weight hash**
1) Persist, beside any published score or production load, the digest of the weights and the digest of every custom module that was imported to construct the model, including tokenizer wrappers and remote-code files. A log that stores only “model=W0” cannot be audited later.
2) If the loader supports a flag that executes third-party code from the checkpoint directory, test that the flag is either off, or is pinned to a listed digest. An implicit import from a side-by-side file is a second artifact, not a convenience.
3) If training and serving use different checkouts, run the same crossed-pair test on both entry points. A training job that imports a locked module can hide a serving image that pulls “latest” code next to a pinned weight cache.
There are limits. Two code revisions can be behaviorally equivalent, so a digest mismatch is not automatically a quality change. Some stacks have no custom code and should say so. The fixtures ask whether a pinned weight digest is treated as a complete identity when the implementation beside it can still move.
What code digest would you require beside a weight hash before citing a score? How do you test a load that kept the tensors and silently imported a later modeling file?
Open-weight and in-house stacks often pin a digest of the tensor files and still load Python modeling code, a custom tokenizer wrapper, or a “trust remote code” module from a path, a branch, or a later commit. If that code is not the revision that was paired with the weights, the running system is a hybrid: published parameters plus a different implementation of attention, a different chat wrapper, or a different preprocessing hook. A later completion can then move even though the weight digest did not.
This is not a paper that cites a movable registry tag instead of a weight digest, and it is not a Git LFS pointer left in place of those tensors. It is also not a non-strict load that ignores mismatched keys, and it is not a compiled decoding grammar that lagged a source schema. The weight file can be exactly the artifact you pinned. The executable definition of the model was not.
**Pin both artifacts, then serve a crossed pair**
Take a small, locally checkable pair of revisions, R0 and R1, that share a model class name but differ in one observable place in the custom code—for example, a scaling constant, a rotary base, or a preprocessing hook that prepends a distinctive token. Export weights W0 that were produced or validated under the R0 code, and record a short greedy completion, or a tensor slice, under W0+R0. Then serve three other combinations: W0 with R1’s modeling module, W0 with R0 again as a control, and, if available, W1 with its matched R1.
If W0+R1 disagrees with W0+R0, and W0+R0 still matches the recorded completion, a digest of W0 alone did not identify the system that produced the new output. The test fails if a manifest lists only the weight hash and a repository URL. A second control that loads R0 from a content-addressed store, rather than from a mutable path, should refuse R1 when W0 is requested.
**Record the imported file, not only the weight hash**
1) Persist, beside any published score or production load, the digest of the weights and the digest of every custom module that was imported to construct the model, including tokenizer wrappers and remote-code files. A log that stores only “model=W0” cannot be audited later.
2) If the loader supports a flag that executes third-party code from the checkpoint directory, test that the flag is either off, or is pinned to a listed digest. An implicit import from a side-by-side file is a second artifact, not a convenience.
3) If training and serving use different checkouts, run the same crossed-pair test on both entry points. A training job that imports a locked module can hide a serving image that pulls “latest” code next to a pinned weight cache.
There are limits. Two code revisions can be behaviorally equivalent, so a digest mismatch is not automatically a quality change. Some stacks have no custom code and should say so. The fixtures ask whether a pinned weight digest is treated as a complete identity when the implementation beside it can still move.
What code digest would you require beside a weight hash before citing a score? How do you test a load that kept the tensors and silently imported a later modeling file?