How to use from the
Use from the
Transformers.js library
// npm i @huggingface/transformers
import { pipeline } from '@huggingface/transformers';

// Allocate pipeline
const pipe = await pipeline('feature-extraction', 'leolee9086/text2vec-base-chinese');

说明

因为要在transformers.js中使用(用于在思源笔记的插件中对中文文本进行嵌入),需要减小文件大小,所以弄了一个量化版本。

模型的各项信息请查看原模型页面:shibing624/text2vec-base-chinese

Downloads last month
10
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support