AI SeedbankHelp preserve open and free AI for humanity's future

← All models

ncbi_MedCPT-Cross-Encoder

ncbi · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


license: other license_name: public-domain license_link: LICENSE

Usage: Ranking articles for a given query

import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("ncbi/MedCPT-Cross-Encoder")
model = AutoModelForSequenceClassification.from_pretrained("ncbi/MedCPT-Cross-Encoder")

query = "diabetes treatment"

# 6 articles to be ranked for the input query
articles = [
	"Type 1 and 2 diabetes mellitus: A review on current treatment approach and gene therapy as potential intervention. Type 1 and type 2 diabetes mellitus is a serious and lifelong condition commonly characterised by abnormally elevated blood glucose levels due to a failure in insulin production or a decrease in insulin sensitivity and function. [...]",
	"Diabetes mellitus and its chronic complications. Diabetes mellitus is a major cause of morbidity and mortality, and it is a major risk factor for early onset of coronary heart disease. Complications of diabetes are retinopathy, nephropathy, and peripheral neuropathy. [...]",
	"Diagnosis and Management of Central Diabetes Insipidus in Adults. Central diabetes insipidus (CDI) is a clinical syndrome which results from loss or impaired function of vasopressinergic neurons in the hypothalamus/posterior pituitary, resulting in impaired synthesis and/or secretion of arginine vasopressin (AVP). [...]",
	"Adipsic diabetes insipidus. Adipsic diabetes insipidus (ADI) is a rare but devastating disorder of water balance with significant associated morbidity and mortality. Most patients develop the disease as a result of hypothalamic destruction from a variety of underlying etiologies. [...]",
	"Nephrogenic diabetes insipidus: a comprehensive overview. Nephrogenic diabetes insipidus (NDI) is characterized by the inability to concentrate urine that results in polyuria and polydipsia, despite having normal or elevated plasma concentrations of arginine vasopressin (AVP). [...]",
	"Impact of Salt Intake on the Pathogenesis and Treatment of Hypertension. Excessive dietary salt (sodium chloride) intake is associated with an increased risk for hypertension, which in turn is especially a major risk factor for stroke and other cardiovascular pathologies, but also kidney diseases. Besides, high salt intake or preference for salty food is discussed to be positive associated with stomach cancer, and according to recent studies probably also obesity risk. [...]"
]

# combine query article into pairs
pairs = [[query, article] for article in articles]

with torch.no_grad():
	encoded = tokenizer(
		pairs,
		truncation=True,
		padding=True,
		return_tensors="pt",
		max_length=512,
	)

	logits = model(**encoded).logits.squeeze(dim=1)
	
	print(logits)

The output will be

tensor([  6.9363,  -8.2063,  -8.7692, -12.3450, -10.4416, -15.8475])

Higher scores indicate higher relevance.

Acknowledgments

This work was supported by the Intramural Research Programs of the National Institutes of Health, National Library of Medicine.

Disclaimer

This tool shows the results of research conducted in the Computational Biology Branch, NCBI/NLM. The information produced on this website is not intended for direct diagnostic use or medical decision-making without review and oversight by a clinical professional. Individuals should not change their health behavior solely on the basis of information produced on this website. NIH does not independently verify the validity or utility of the information produced by this tool. If you have questions about the information produced on this website, please see a health care professional. More information about NCBI's disclaimer policy is available.

Citation

If you find this repo helpful, please cite MedCPT by:

@article{jin2023medcpt,
  title={MedCPT: Contrastive Pre-trained Transformers with large-scale PubMed search logs for zero-shot biomedical information retrieval},
  author={Jin, Qiao and Kim, Won and Chen, Qingyu and Comeau, Donald C and Yeganova, Lana and Wilbur, W John and Lu, Zhiyong},
  journal={Bioinformatics},
  volume={39},
  number={11},
  pages={btad651},
  year={2023},
  publisher={Oxford University Press}
}

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:6644bb2649b4fdeba69b9355d354fdcc6428d736&dn=ncbi_MedCPT-Cross-Encoder

Open magnet in torrent client · infohash 6644bb2649b4fdeba69b9355d354fdcc6428d736

Files & hashes

PathSizesha1sha256
LICENSE0 B (0 B)e69de29bb2d1d6434b8b29ae775ad8c2e48c5391e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
README.md4.1 KB (4,236 B)66c40e55c2b6ffacac881df8a0b282f831c4d4328ab1ceed3beea346789e0b9cd7e04d6373dcf8b738fb63b996c7d97bb25df2ec
added_tokens.json74 B (74 B)e97f8f93bfdfff48a98fde37a3cd61007272f226691a5ce0135045c12b8410af8d472ff8de864094df40ac9af418d6c644c7588d
config.json741 B (741 B)766e5596630ebbdbe72b10cc777a95bb749f2bc01f375c7e8081f043c99fdb9c80059c44ed757cce7b05d333b7f3c81b1b713a42
pytorch_model.bin417.7 MB (437,998,062 B)162ab753e8139469a7cfe85d297ef684ec325cfd61d5ccd48869e03500544525fc231641d7daa9ba267b202c82724750038dc1e0
special_tokens_map.json228 B (228 B)8e5082c800f715935ea0eb822faad62f4fac1adacb63d0cbbf45160dc9cd786a257759593b798ae0c72957011016dbc3972df4e4
tokenizer.json689.7 KB (706,277 B)e68fee3b6ebe7cc02f2b5f9753071bdf2c401ecf6e046044df8a2fcedb10607075dca187cae61d806c0d80a96c5b81017edc90c9
tokenizer_config.json1.5 KB (1,556 B)85ae100df867ca6a1387ae02918eb02fdc03383e25e63abb25f637aa24981117b13394370693dd7bc140903d95008599b3abc1a9
vocab.txt220.8 KB (226,150 B)9d595d9c20feef7012f174efaaa5eb621910588e79489a52be45e6fa033521e8ce8e4f62aedc0a742ee2aa6fc04667e5b0b1454d

Cite this release

Canonical URL
https://aiseedbank.org/models/ncbi_MedCPT-Cross-Encoder/
Slug
ncbi_MedCPT-Cross-Encoder
Infohash
6644bb2649b4fdeba69b9355d354fdcc6428d736
License
custom/other license
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: ncbi_MedCPT-Cross-Encoder.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositoryncbi/MedCPT-Cross-Encoder
Revision (pinned)71caf65d4927987813984f54c284405a13fcca49
Fetched at2026-09-04T03:18:06Z
License at fetchother
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T03:18:12Z

custom/other license418.6 MB (438,937,324 bytes)transformerspytorchberttext-classificationtext-embeddings-inferenceendpoints_compatible