Model Card & Runtime Contract
- Upstream Model
- cambridgeltl/SapBERT-from-PubMedBERT-fulltext
- Loaded ONNX Repo
- Xenova/SapBERT-from-PubMedBERT-fulltext
- Task & Pooling
feature-extraction·pooling: "cls"·normalize: true- Backend & Quant
WASM·q8(110.08 MB ONNX + 0.71 MB tok/cfg = 110.79 MB)- Architecture
bert(12L · 12H · 768-d · 3,072 FFN · 109.5M params · 30,522 lowercase WordPiece)- Seq Window & License
512max_pos (25card entity window) ·Apache-2.0
cambridgeltl/SapBERT-from-PubMedBERT-fulltext card, SapBERT takes the
[CLS] token embedding of the last hidden layer (model(**toks)[0][:,0,:])
with PubMedBERT fulltext lowercase WordPiece ([PAD]=0, [UNK]=1,
[CLS]=2, [SEP]=3, [MASK]=4).
Load & Cache Status
Live Biomedical Synonym Linker & Similarity Matrix
.txt, .md, .csv, or .json list of biomedical terms.
Ranked Biomedical Similarity
Load the model to embed and rank all entity candidates locally.
2D PCA UMLS Semantic Constellation
Diamond marks the query mention; dashed rays connect top-3 closest UMLS matches.
See Inside the Model (768-d [CLS] Tensor & PubMedBERT WordPiece)
768-d [CLS] Sparkline & Distribution
Run inference to inspect live 768-d coordinate min, max, mean, std, and L2 norm.
Pairwise Cosine Heatmap (All Terms)
Live PubMedBERT Fulltext WordPiece Inspection
Inspects real PubMedBERT uncased IDs ([PAD]=0, [UNK]=1, [CLS]=2, [SEP]=3, [MASK]=4) and ## subword roots.
| ID | Tokens | ## Subwords | [UNK] | Window | Norm | Cosine |
|---|---|---|---|---|---|---|
| Awaiting live inference… | ||||||
Why It Matters
- Zero-overlap medical synonym linking: Maps lay phrases (heart attack), abbreviations (MI, GBM), and drug brand names (Glucophage) directly to canonical UMLS/RxNorm terms without brittle string rules.
- Biomedical-native WordPiece vocabulary: Pretrained from scratch on PubMed abstracts + PMC full text (30,522 domain subwords) so Latin/Greek prefixes and suffixes align cleanly.
- HIPAA-friendly local execution: Normalize clinical mentions inside the browser tab with zero patient text leaving the workstation.