github huggingface/transformers.js 3.6.1

latest releases: 3.8.1, 3.8.0, 3.7.6...
8 months ago

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

  • Pin numpy version for scripts by @fidoriel in #1351

  • Fix optional from_pretrained types in #1352

New Contributors

Full Changelog: 3.6.0...3.6.1

Don't miss a new transformers.js release

NewReleases is sending notifications on new releases.