Instructions to use Xenova/sentence_bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/sentence_bert with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('feature-extraction', 'Xenova/sentence_bert');
Download quant_config.json from Xenova/sentence_bert: direct link, hf CLI and curl.
- Browser
- Download file 674 Bytes
-
https://huggingface.co/Xenova/sentence_bert/resolve/main/quant_config.json
- Command line
-
hf download hf://Xenova/sentence_bert/quant_config.json
-
curl -L -o quant_config.json https://huggingface.co/Xenova/sentence_bert/resolve/main/quant_config.json
674 Bytes
| { | |
| "per_channel": true, | |
| "reduce_range": true, | |
| "per_model_config": { | |
| "model": { | |
| "op_types": [ | |
| "Mul", | |
| "Reshape", | |
| "Sub", | |
| "Sqrt", | |
| "Shape", | |
| "Erf", | |
| "Constant", | |
| "Add", | |
| "ReduceMean", | |
| "Unsqueeze", | |
| "Transpose", | |
| "Pow", | |
| "Gather", | |
| "Cast", | |
| "Div", | |
| "Slice", | |
| "MatMul", | |
| "Softmax", | |
| "Concat" | |
| ], | |
| "weight_type": "QInt8" | |
| } | |
| } | |
| } |