Synthetic ONNX files, checked in so the mechanical halves of the gates can run before any multi-GB artifact is fetched. None of them is downloaded, and none is a production model.
| File | Graph | Used by |
|---|---|---|
| matmul.onnx | A [1,2] × B [2,2] → MatMul → Relu → Y [1,2] | descriptor_fixtures, session_load |
| partitionable.onnx | X, Y0 → Add → S and X, Y0 → Mul → P, independent branches | the provider-trace test (P2) |
manifest.json records every expected descriptor value and the SHA-256 of each file.
| File | Bytes | SHA-256 | Graph |
|---|---|---|---|
| embed/pooled-384.onnx | 541 | 83f2265dde18035d3608bb1e958e33dfc0f6fcb1067e32bab6f82102e33206a3 | ConstantOfShape(Concat(Shape(input_ids)[0:1], [384]), 0.5) → [batch, 384] f32 |
| embed/pooled-768.onnx | 541 | 80e932dcfedd1f32bd7d82f512704cda8bcd6f6062b469185c30ae59747a7616 | the same graph at 768, for the dimension refusal |
| embed/seq-384.onnx | 2,200 | 25920775f1e6199f9aa5a004f4d67dd7fe3b0deffb75082a4c668501ec7829a7 | Add(Expand(Unsqueeze(Cast(input_ids)), [b, s, 384]), hidden[1,1,384]) → [batch, seq, 384] f32; declares token_type_ids |
| embed/seq-extra-input.onnx | 2,257 | 221cbc4c3416d6c17d9161ffd00017e51d1abd097b450c10813501ed9867c1b5 | seq-384 plus a position_ids input the contract cannot fill |
The rank-3 output is token_id + hidden_index, so the tests assert mean pooling, CLS
pooling and the attention mask numerically against an expectation computed from the token
ids. The two 541-byte files differ only in the dimension constant, and their digests differ
for the same reason.
cargo run -p poly-ml-onnx --example make_fixtures
The generator reproduces the two descriptor fixtures byte-for-byte (their node names are explicit for that reason); recompute the digests above after any change:
shasum -a 256 fixtures/*.onnx fixtures/embed/*.onnx
The generator and the reader share the same prost structs, so a wrong field tag could be
self-consistent. protoc sees the raw wire format and is the independent check:
protoc --decode_raw < fixtures/matmul.onnx
protoc --decode_raw < fixtures/embed/pooled-384.onnx
The recorded output of that check is in docs/evidence/g1.md's provenance and in the G1
work item; a regenerated fixture whose --decode_raw output moves is a different fixture.
One --decode_raw caution for the embed files. The string input_ids is nine bytes
whose first byte (0x69) is itself a valid wire tag (field 13, fixed64), so
protoc --decode_raw prints that one field as a nested message
(1 { 13: 0x7364695f7475706e }) instead of the string. The bytes are correct — the hex
decodes to the eight bytes after the length prefix — but the embedding fixtures' provenance
check reads the hexdump for that field rather than the raw decoder's guess. The descriptor
fixtures have no such field and decode unambiguously.