KURE-v2 (ONNX, fp32)
ONNX export of nlpai-lab/KURE-v2
(commit 3431f86d399d666083890dbb882aced6708873bc) as a ColBERT / PyLate
late-interaction encoder. Used by the Ieum
desktop app for on-device knowledge search.
This is a format conversion only β no fine-tuning. License follows the base model (Apache-2.0). All credit for the model goes to NLP&AI Lab, Korea University.
Files
| File | Bytes | SHA256 |
|---|---|---|
model.onnx |
614,804,784 | 4971279166197764dc20d14a14b5ff184489114ede9da5bdcbf57f2507dceaad |
tokenizer.json |
1,087,863 | b9cd3dd330a256f0b73a5d93e066d58d54e283ea88eb0e96d62c2ee53c28563d |
kure_meta.json |
1,637 | token ids, query/document rules, file hashes |
ONNX Runtime (bundled for convenience)
onnxruntime/libonnxruntime.dylib is the unmodified lib/libonnxruntime.1.31.0.dylib from the official
ONNX Runtime 1.31.0 osx-arm64 release
(tgz SHA256 1031b36dd3bdaa8d976a6130d9cf2a05e9be320b93ae804f8427b91dc3432afc), signed by Microsoft
(TeamIdentifier UBF8T346G9). MIT License β see onnxruntime/LICENSE.
| File | Bytes | SHA256 |
|---|---|---|
onnxruntime/libonnxruntime.dylib |
44,830,288 | 2a50a63e7f41f8d4d551d3ee47248df3864f6540109fce8ad520ca3b51af4b70 |
Graph
- Inputs:
input_ids,attention_maskβint64,[batch, seq] - Output:
embeddingsβfloat32,[batch, seq, 128], already L2-normalized - ModernBERT encoder β PyLate Dense 768β1536 (residual) β 1536β768 (residual) β 768β128
- opset 18, TorchScript exporter (torch 2.8.0, transformers 5.3.0, pylate 1.6.0)
- Verified against PyLate fp32: min token cosine 0.9999999, MaxSim sum diff β€ 1.1e-4
- Tested with ONNX Runtime 1.31.0 (CPU EP). fp16 conversion does not load on ORT 1.31 CPU, so this is fp32.
Tokenization (PyLate 1.6 rules)
- Query: tokenize with special tokens, truncate to 63, pad to 63 with
<mask>(id 4, attention 0), insert[Q](id 50000) at position 1 β 64 tokens; use all 64 vectors. - Document: insert
[D](id 50001) at position 1; drop vectors where attention is 0 or id is inskiplist_ids. tokenizer.jsonships with truncation/padding enabled β disable both before use.- Score: MaxSim.
Exported with tools/export_kure_v2.py from the Ieum project.
KURE-v2 λ₯Ό PyLate(ColBERT) λ°©μ κ·Έλλ‘ ONNX(fp32)λ‘ λ΄λ³΄λΈ κ²μ λλ€. μ΄μ(Ieum) μ±μ΄ μ§μ κ²μ λͺ¨λΈλ‘ λ΄λ €λ°μ μλλ€. νμλ§ λ°κΏ¨κ³ λΌμ΄μ μ€λ μλ³Έ(Apache-2.0)μ λ°λ¦ λλ€.