Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade @xenova/transformers from 2.6.2 to 2.15.1 #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Anubis44197
Copy link
Owner

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade @xenova/transformers from 2.6.2 to 2.15.1.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 18 versions ahead of your current version.
  • The recommended version was released 22 days ago, on 2024-02-21.
Release notes
Package name: @xenova/transformers
  • 2.15.1 - 2024-02-21

    What's new?

    • Add Background Removal demo in #576 (online demo).

      background-removal

    • Add support for owlv2 models in #579

      Example: Zero-shot object detection w/ Xenova/owlv2-base-patch16-ensemble.

      http://images.cocodataset.org/val2017/000000039769.jpg';
      const candidate_labels = ['a photo of a cat', 'a photo of a dog'];
      const output = await detector(url, candidate_labels);
      console.log(output);
      // [
      // { score: 0.7400985360145569, label: 'a photo of a cat', box: { xmin: 0, ymin: 50, xmax: 323, ymax: 485 } },
      // { score: 0.6315087080001831, label: 'a photo of a cat', box: { xmin: 333, ymin: 23, xmax: 658, ymax: 378 } }
      // ]">
      import { pipeline } from '@ xenova/transformers';

      const detector = await pipeline('zero-shot-object-detection', 'Xenova/owlv2-base-patch16-ensemble');

      const url = 'http://images.cocodataset.org/val2017/000000039769.jpg';
      const candidate_labels = ['a photo of a cat', 'a photo of a dog'];
      const output = await detector(url, candidate_labels);
      console.log(output);
      // [
      // { score: 0.7400985360145569, label: 'a photo of a cat', box: { xmin: 0, ymin: 50, xmax: 323, ymax: 485 } },
      // { score: 0.6315087080001831, label: 'a photo of a cat', box: { xmin: 333, ymin: 23, xmax: 658, ymax: 378 } }
      // ]

      image

    • Add support for Adaptive Retrieval w/ Matryoshka Embeddings (nomic-ai/nomic-embed-text-v1.5) in #587 and #588 (online demo).

      adaptive-retrieval

    • Add support for Gemma Tokenizer in #597 and #598

    Full Changelog: 2.15.0...2.15.1

  • 2.15.0 - 2024-02-06
    Read more
  • 2.14.2 - 2024-01-29

    What's new?

    Full Changelog: 2.14.1...2.14.2

  • 2.14.1 - 2024-01-25
    Read more
  • 2.14.0 - 2024-01-10
    Read more
  • 2.13.4 - 2024-01-04

    What's new?

    • Add support for cross-encoder models (+fix token type ids) (#501)

      Example: Information Retrieval w/ Xenova/ms-marco-TinyBERT-L-2-v2.

      import { AutoTokenizer, AutoModelForSequenceClassification } from '@ xenova/transformers';

      const model = await AutoModelForSequenceClassification.from_pretrained('Xenova/ms-marco-TinyBERT-L-2-v2');
      const tokenizer = await AutoTokenizer.from_pretrained('Xenova/ms-marco-TinyBERT-L-2-v2');

      const features = tokenizer(
      ['How many people live in Berlin?', 'How many people live in Berlin?'],
      {
      text_pair: [
      'Berlin has a population of 3,520,031 registered inhabitants in an area of 891.82 square kilometers.',
      'New York City is famous for the Metropolitan Museum of Art.',
      ],
      padding: true,
      truncation: true,
      }
      )

      const { logits } = await model(features)
      console.log(logits.data);
      // quantized: [ 7.210887908935547, -11.559350967407227 ]
      // unquantized: [ 7.235750675201416, -11.562294006347656 ]

      Check out the list of pre-converted models here. We also put out a demo for you to try out.

    Full Changelog: 2.13.3...2.13.4

  • 2.13.3 - 2024-01-04

    What's new?

    • Fix typo in JSDoc in #498
    • Fix properties on pipelines in #500. Thanks to @ wesbos for reporting the issue!

    Full Changelog: 2.13.2...2.13.3

  • 2.13.2 - 2024-01-03

    What's new?

    This release is a follow-up to #485, with additional intellisense-focused improvements (see PR).

    typing-demo-new

    Full Changelog: 2.13.1...2.13.2

  • 2.13.1 - 2024-01-03
    Read more
  • 2.13.0 - 2023-12-27
  • 2.12.1 - 2023-12-18
  • 2.12.0 - 2023-12-18
  • 2.11.0 - 2023-12-13
  • 2.10.1 - 2023-12-06
  • 2.10.0 - 2023-12-05
  • 2.9.0 - 2023-11-21
  • 2.8.0 - 2023-11-09
  • 2.7.0 - 2023-10-23
  • 2.6.2 - 2023-09-27
from @xenova/transformers GitHub release notes
Commit messages
Package name: @xenova/transformers

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants