发布者 cross-encoder · 任务类型 文本排序
cross-encoder/ms-marco-MiniLM-L6-v2 由 cross-encoder 发布,属于「文本排序」类模型。截至 2026-11-30 的快照,累计下载 5244.1万 次、收藏 463 次,最近一次更新在 2026-08-09。本页汇总公开元数据,用于快速比较与定位;模型结构、训练数据、许可证与使用限制请以上游模型卡为准。
以下为通用示例,实际可用性取决于模型支持的框架与任务,请先阅读模型卡。
pip install -U huggingface_hub
# 拉取模型到本地目录
hf download cross-encoder/ms-marco-MiniLM-L6-v2 --local-dir cross-encoder--ms-marco-MiniLM-L6-v2
用 Transformers 直接调用(若该模型支持 pipeline):
python -c "from transformers import pipeline; p = pipeline('text-ranking', model='cross-encoder/ms-marco-MiniLM-L6-v2'); print(p)"