Views
No views yet
0.1.2-hf-onnx · Future HF repo: sikkha/bert-cord-27m-mlm-onnxBertForMaskedLM encoder from the bert_cord research project. It performs
masked-token prediction only.Honest scope. This is a synthetic MLM development checkpoint. It is not yet a "mini-amygdala" coordinator. It performs no coordination, routing, memory activation, task lifecycle control, consciousness, or general language understanding, and is not production ready. No natural-language tokenizer is bundled — inputs are integer token ids.
AutoModel — do not
assume transformers compatibility.BertModel): learned token/position/
token-type embeddings, 8 post-LN transformer layers, 6
attention heads, hidden size 384, intermediate size 1536, tied
input/output embeddings, GELU FFN.27,010,304| tensor | role | dtype | shape |
|---|---|---|---|
input_ids | input | int64 | [batch, sequence] |
attention_mask | input | int64 | [batch, sequence] |
token_type_ids | input | int64 | [batch, sequence] |
logits | output | float32 | [batch, sequence, 32000] |
batch and sequence are dynamic axes.onnx/model.onnx (graph) and onnx/model.onnx.data (weights, ~102.5 MB)
and keep them side by side. Total artifact ≈ 103.1 MB. Loading model.onnx without
model.onnx.data will fail.pip install -r requirements.txt # numpy>=1.24, onnxruntime>=1.17python inference.py1import numpy as np, onnxruntime as ort
2sess = ort.InferenceSession("onnx/model.onnx", providers=["CPUExecutionProvider"])
3seq = [1, 50, 67, 7, 50, 67, 3, 50, 67, 7, 2] # ids; 3 == [MASK]
4ii = np.array([seq], dtype=np.int64)
5am = np.ones_like(ii); tt = np.zeros_like(ii)
6logits = sess.run(["logits"], {"input_ids": ii, "attention_mask": am,
7 "token_type_ids": tt})[0]
8print(logits.shape) # (1, seq, 32000)CPUExecutionProvider, FP32.CUDAExecutionProvider (onnxruntime-gpu), Apple CoreML, and FP16 /
BF16. No claim is made about them.0e17db558ebcce29f40b49d546af8b2704640230v0.1.1-onnxc3b9d28fa9f7333c2abaf02a451249c8f5aa03d8v0.1.2-hf-packagebert-cord-27m-mlm-onnx/
├── README.md (this model card)
├── LICENSE (Apache-2.0, copied from source)
├── config.json (architecture + provenance)
├── evaluation.json (measured parity + checksums)
├── requirements.txt (numpy, onnxruntime)
├── inference.py (standalone ONNX Runtime example)
├── MANIFEST.json (files + sizes + SHA-256)
└── onnx/
├── model.onnx (graph; references model.onnx.data)
└── model.onnx.data (external FP32 weights — download together)1@software{bert_cord_27m_mlm_onnx,
2 title = {BERT-Cord 27M — ONNX MLM baseline},
3 author = {Kan (sikkha)},
4 year = {2026},
5 url = {https://github.com/sikkha/bert-cord},
6 note = {Synthetic MLM development baseline; model commit 0e17db558ebcce29f40b49d546af8b2704640230}
7}LICENSE).