Downloads · 30 days
0
PhilipGAQ/CARE-0.3B-4B
CARE-0.3B-4B is a sentence similarity model from PhilipGAQ. Use it when you need a score for how close two texts are. It is set up for transformers. The card lists the license as cc-by-nc-sa-4.0.
CARE-0.3B-4B is a complete asymmetric dense retrieval system for Chinese medical text retrieval. It consists of a lightweight 0.3B query encoder and a 4B document encoder.
Downloads · 30 days
0
Access
Public
Updated Jul 29, 2026
Repo size
16.9 GB
Likes
3
Public
Click a slice to open those files.
.safetensors16.8 GB · 100%
From the Hugging Face model README
CARE-0.3B-4B is a complete asymmetric dense retrieval system for Chinese medical text retrieval. It consists of a lightweight 0.3B query encoder and a 4B document encoder.
The query encoder is intended for low-latency online query encoding, while the document encoder is intended for offline document encoding and indexing. The two encoders are trained as a pair and should be used together.
| Component | Size | Recommended usage |
|---|---|---|
| Query encoder | 0.3B | Online query encoding |
| Document encoder | 4B | Offline document encoding |
This repository/model release represents the paired 0.3B + 4B CARE system. The 4B document encoder should not be paired with an unrelated query encoder when reproducing the reported results.
CARE-0.3B-4B is intended for:
Typical deployment:
This model is not a standalone chatbot, reranker, or medical diagnosis system. Retrieved passages must not be treated as medical advice or as a substitute for clinical judgment.
The inference wrapper is provided in inference/asymmetric.py.
from inference.asymmetric import CARE
import numpy as np
model = CARE(
model_name_or_path_query="path/to/CARE-0.3B-query-encoder",
model_name_or_path_doc="PhilipGAQ/CARE-0.3B-4B",
trust_remote_code=True,
use_fp16=False,
normalize_embeddings=True,
query_batch_size=2,
passage_batch_size=2,
)
queries = ["什么是高血压?"]
documents = [
"高血压是指动脉血压持续升高,通常指收缩压≥140mmHg和/或舒张压≥90mmHg。"
]
query_embeddings = model.encode_queries(queries, task_name="retrieval")
document_embeddings = model.encode_corpus(documents, task_name="retrieval")
scores = np.dot(query_embeddings, document_embeddings.T)
print(scores)
When normalize_embeddings=True, embeddings are L2-normalized and dot product is equivalent to cosine similarity. Similarity scores are ranking signals, not calibrated probabilities.
CARE uses a two-stage asymmetric training strategy:
This progressively aligns representations produced by the structurally different query-side and document-side encoders.
The paired CARE system is evaluated on the Chinese Medical Text Embedding Benchmark (CMedTEB), which covers retrieval, reranking, and semantic textual similarity (STS).
Results should be reported for the complete configuration:
CARE 0.3B query encoder + CARE 4B document encoder
See the paper for benchmark splits, metrics, baselines, and full results.
@inproceedings{jiang2026benchmarking,
title={Benchmarking and Enabling Efficient Chinese Medical Retrieval via Asymmetric Encoders},
author={Jiang, Angqing and Chen, Jianlyu and Wang, Yongcan and Li, Xinpeng and Ding, Keyu and Lian, Defu and others},
booktitle={Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
pages={20000--20020},
year={2026}
}
CC-BY-NC-SA-4.0