An ONNX copy of ibm-granite/granite-embedding-278m-multilingual at revision
a9cb5338491faf32b73dd17b714a31821c021bbf, made from its official ONNX export model.onnx. The only change is storage:
the weights are moved into the external-data sidecar onnx/model.onnx_data so they can be
memory-mapped instead of copied. The numerical values are unchanged.
Same tokenizer, same CLS pooling, same embedding dimension; L2-normalize the pooled vector.
The initializers of the official export were saved as ONNX external data (one file,
onnx/model.onnx_data, tensors of at least 1024 bytes). Nothing was quantized or otherwise altered.
uv run scripts/prepare-embedding-artifact.py --repo ibm-granite/granite-embedding-278m-multilingual --revision a9cb5338491faf32b73dd17b714a31821c021bbf \
--onnx model.onnx --pooling cls --mode external --out <dir>
The script is scripts/prepare-embedding-artifact.py in the Slipwiki repository. Dependencies:
onnx 1.23.2, onnxruntime 1.24.4, numpy 2.3.5,
tokenizers 0.22.2, onnx-ir 1.1.0, CPython 3.12.14. Re-running it reproduces the
model files byte for byte.
On 13 built-in texts (English, Chinese, Japanese, French, German, very short and truncated), the model output is bitwise identical to the official file's at batch size 1 and at batch size 8 (maximum absolute difference 0).
| File | Bytes | SHA-256 |
|---|---|---|
1_Pooling/config.json |
191 | d81961da36b56f4a1abfbf59a2469e1c49efa04b94a876908c48780894b0b307 |
LICENSE |
11358 | cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 |
NOTICE |
408 | 057be63d1e3fd82e54351e05908832246bdeb2a94b6c918c219caa618692677f |
config.json |
698 | 1a0e6b783e85be5265ab4fa3a92b79c0d5fd733617fe3d3264411cf3e5d13c8e |
modules.json |
350 | 21ddb3037a55ebf4549eb5c1dc44c3f28f10b56ec7f1335c92fd90e5b30d88ac |
onnx/model.onnx |
252021 | 01f50c8654223316b5f9b9f6b1cddeea9d7f95ae7615d2e7af0c67f3ea016ca2 |
onnx/model.onnx_data |
1112174592 | 3fe51e83f5758ddfb73cf90d335c27fc7e6bc399859482355c5e6f4581c6e7bf |
sentence_bert_config.json |
54 | ed20daeb5b882c3e1f116ce7b3d53e6643d11063aa9baaa31f5ae91770cfad8f |
special_tokens_map.json |
239 | 378eb3bf733eb16e65792d7e3fda5b8a4631387ca04d2015199c4d4f22ae554d |
tokenizer.json |
9081351 | 2a0d7366dd7780ea36cc42431dd74cd79289b783ab01acd33013fcc96865a8e9 |
tokenizer_config.json |
418 | 0b3223bec744a0e449daf1ece51510681d25c935aaf16373039e836c3d94559e |
apache-2.0, as the base model; see LICENSE and NOTICE. This is a re-stored (external-data) copy of the base model; the numerical values are unchanged.