# Sentence Transformers

框架 · https://godooo.ai/zh/framework/sentence-transformers

> Sentence Transformers 是 Hugging Face 出品的开源 AI 开发框架，2019 年推出，面向开发者。

计算文本向量、训练重排模型以用于检索的 Python 库。

主打：向量嵌入。开源，可以免费使用。使用方式：本地离线运行、自部署、API。

## 速览

- **类别:** [框架](https://godooo.ai/zh/browse#framework)
- **出品方:** [Hugging Face](https://godooo.ai/zh/org/hugging-face)
- **推出于:** 2019
- **所属星系:** [模型与 API](https://godooo.ai/zh/galaxy/builders)
- **是否开源:** 是 · Apache-2.0
- **源代码:** [github.com/huggingface/sentence-transformers](https://github.com/huggingface/sentence-transformers)
- **GitHub 星标:** 19,117
- **使用方式:** 可离线本地运行 · 可自部署 · API
- **适合谁:** 开发者
- **官网:** [sbert.net](https://www.sbert.net)
- **别名:** SBERT · sentence-transformers

## 能做什么

- **[向量嵌入](https://godooo.ai/zh/capability/embeddings)** — 主打, _由机器提出，尚待校准_. “This framework provides an easy method to compute embeddings for accessing, using, and training state-of-the-art embedding and reranker models.” (摘自 [github.com](https://github.com/huggingface/sentence-transformers)，2026-09-24)
- **[向量检索](https://godooo.ai/zh/capability/vector-search)** — 支持, _由机器提出，尚待校准_. “Semantic Search Background Symmetric vs. Asymmetric Semantic Search Manual Implementation Optimized Implementation Speed Optimization Elasticsearch OpenSearch Approximate Nearest Neighbor” (摘自 [sbert.net](https://www.sbert.net/)，2026-09-24)
- **[模型微调](https://godooo.ai/zh/capability/fine-tuning)** — 支持, _由机器提出，尚待校准_. “This framework allows you to fine-tune your own sentence embedding methods, so that you get task-specific sentence embeddings.” (摘自 [github.com](https://github.com/huggingface/sentence-transformers)，2026-09-24)
- **[模型训练](https://godooo.ai/zh/capability/model-training)** — 支持, _由机器提出，尚待校准_. “Training Overview Why Finetune? Training Components Model Dataset Dataset Format” (摘自 [sbert.net](https://www.sbert.net/)，2026-09-24)

## 平替与同类

- **[BGE](https://godooo.ai/zh/model/bge)** (开源免费): 同样能做：向量嵌入、向量检索
- **[BERT](https://godooo.ai/zh/model/bert)** (开源免费): 同样能做：向量嵌入
- **[CLIP](https://godooo.ai/zh/model/clip)** (开源免费): 同样能做：向量嵌入
- **[word2vec](https://godooo.ai/zh/model/word2vec)** (开源免费): 同样能做：向量嵌入
- **[ELMo](https://godooo.ai/zh/model/elmo)** (开源免费): 同样能做：向量嵌入
- **[Weaviate](https://godooo.ai/zh/framework/weaviate)** (开源免费): 同样能做：向量检索、向量嵌入
- **[OpenAI Platform](https://godooo.ai/zh/product/openai-platform)** (付费): 同样能做：向量嵌入、模型微调
- **[Mistral](https://godooo.ai/zh/model/mistral)** (开源免费): 同样能做：向量嵌入
- **[LLM](https://godooo.ai/zh/cli/llm)** (开源免费): 同样能做：向量嵌入
- **[LocalAI](https://godooo.ai/zh/framework/localai)** (开源免费): 同样能做：向量嵌入

## 关系

- **应用了:** [Embeddings](https://godooo.ai/zh/concept/embeddings)
- **基于…构建:** [Transformers](https://godooo.ai/zh/framework/transformers)

## 常见问题

### Sentence Transformers 是什么？

Sentence Transformers 是 Hugging Face 出品的开源 AI 开发框架，2019 年推出，面向开发者。计算文本向量、训练重排模型以用于检索的 Python 库。

### Sentence Transformers 免费吗？

免费。Sentence Transformers 是开源软件（Apache-2.0）。

### Sentence Transformers 开源吗？

开源，许可证是 Apache-2.0。源代码在 https://github.com/huggingface/sentence-transformers。

### Sentence Transformers 能本地运行吗？

能，可以在自己的电脑上离线运行。也可以部署在自己的服务器上。

### Sentence Transformers 能做什么？

主打：向量嵌入。也能做：向量检索、模型微调、模型训练。

### Sentence Transformers 是谁开发的？

由 Hugging Face 开发。

### Sentence Transformers 有哪些开源替代品？

开源的有：BGE、BERT、CLIP、word2vec、ELMo、Weaviate、Mistral、LLM。其他：OpenAI Platform。

## 来源

- [github.com](https://github.com/huggingface/sentence-transformers) — 核实于 2026-09-24
- [sbert.net](https://www.sbert.net/) — 核实于 2026-09-24

---

最后更新 2026-09-24 · 来源核实于 2026-09-24 · 这是 https://godooo.ai/zh/framework/sentence-transformers 的 Markdown 版本。本站每个页面都有：在地址后面加 .md。
