What's new?
-
Add support for NeoBERT in #1350
import { pipeline } from "@huggingface/transformers"; // Create feature extraction pipeline const extractor = await pipeline("feature-extraction", "onnx-community/NeoBERT-ONNX"); // Compute embeddings const text = "NeoBERT is the most efficient model of its kind!"; const embedding = await extractor(text, { pooling: "cls" }); console.log(embedding.dims); // [1, 768]
-
Improve webworker detection to support ServiceWorker and SharedWorker by @aungKhantPaing in #1346
-
Fix optional
from_pretrainedtypes in #1352
New Contributors
- @aungKhantPaing made their first contribution in #1346
- @fidoriel made their first contribution in #1351
Full Changelog: 3.6.0...3.6.1