Loading…
Loading…
all-minilm-l6-v2-pmc-all-simcse-v1 is a compact, general-purpose English
sentence embedding model adapted to the complete permitted PMC-derived
literature corpus used for this release. It preserves the 384-dimensional
embedding interface of sentence-transformers/all-MiniLM-L6-v2.
Use it for semantic search, text similarity, clustering, retrieval, and as an embedding feature for biomedical and scientific-text applications. It is not a clinical decision-support model and is not validated for diagnosis, treatment selection, causal inference, or patient-level prediction.
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("pander14/all-minilm-l6-v2-pmc-all-simcse-v1")
embeddings = model.encode(
[
"Autonomic dysfunction after spinal cord injury",
"Neural stem-cell transplantation in animal models",
],
normalize_embeddings=True,
)
The base model was adapted with self-supervised SimCSE. Each passage was encoded twice with independent dropout masks; other passages in the minibatch acted as contrastive negatives. No clinical labels, causal labels, or manually judged relevance labels were used.
| Setting | Value |
|---|---|
| Base model | sentence-transformers/all-MiniLM-L6-v2 |
| Training passages | 397,850 |
| Paper families | 21,283 |
| Epochs | 1 |
| Batch size | 256 |
| Learning rate | 2e-5 |
| Maximum sequence length | 256 |
| Embedding dimension | 384 |
The source corpus was used for model adaptation and is not included in this repository. Corpus access and reuse remain subject to the underlying source rights and licenses.
The checkpoint was verified to load and produce 384-dimensional embeddings. It has not yet been benchmarked against the base MiniLM model on external, application-specific test sets. Evaluate it on representative held-out data before production use.
Scientific embeddings can reproduce biases, omissions, outdated findings, and terminology in the source literature. Similarity scores are not evidence of clinical validity or causal relationships.
This repository is distributed under the Apache-2.0 license. Users remain responsible for complying with the licenses and access terms of any data used alongside the model.