[Snyk] Upgrade @xenova/transformers from 2.6.2 to 2.15.1 #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Release notes
Package name: @xenova/transformers
What's new?
Add Background Removal demo in #576 (online demo).
Add support for owlv2 models in #579
Example: Zero-shot object detection w/
Xenova/owlv2-base-patch16-ensemble
.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 } }
// ]">
Add support for Adaptive Retrieval w/ Matryoshka Embeddings (nomic-ai/nomic-embed-text-v1.5) in #587 and #588 (online demo).
Add support for Gemma Tokenizer in #597 and #598
Full Changelog: 2.15.0...2.15.1
Read more
What's new?
Full Changelog: 2.14.1...2.14.2
Read more
Read more
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
.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
What's new?
Full Changelog: 2.13.2...2.13.3
What's new?
This release is a follow-up to #485, with additional intellisense-focused improvements (see PR).
Full Changelog: 2.13.1...2.13.2
Read more
Commit messages
Package name: @xenova/transformers
layer_norm
operator huggingface/transformers.js#588)jsdoc-to-markdown
dev dependency huggingface/transformers.js#574)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