shreyaskarnik / DistiLlama

Chrome Extension to Summarize or Chat with Web Pages/Local Documents Using locally running LLMs. Keep all of your data and conversations private. 🔐
MIT License
273 stars 25 forks source link

Bump @xenova/transformers from 2.15.1 to 2.16.1 #142

Closed dependabot[bot] closed 6 months ago

dependabot[bot] commented 6 months ago

Bumps @xenova/transformers from 2.15.1 to 2.16.1.

Release notes

Sourced from @​xenova/transformers's releases.

2.16.1

What's new?

  • Add support for the image-feature-extraction pipeline in xenova/transformers.js#650.

    Example: Perform image feature extraction with Xenova/vit-base-patch16-224-in21k.

    const image_feature_extractor = await pipeline('image-feature-extraction', 'Xenova/vit-base-patch16-224-in21k');
    const url = 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/cats.png';
    const features = await image_feature_extractor(url);
    // Tensor {
    //   dims: [ 1, 197, 768 ],
    //   type: 'float32',
    //   data: Float32Array(151296) [ ... ],
    //   size: 151296
    // }
    

    Example: Compute image embeddings with Xenova/clip-vit-base-patch32.

    const image_feature_extractor = await pipeline('image-feature-extraction', 'Xenova/clip-vit-base-patch32');
    const url = 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/cats.png';
    const features = await image_feature_extractor(url);
    // Tensor {
    //   dims: [ 1, 512 ],
    //   type: 'float32',
    //   data: Float32Array(512) [ ... ],
    //   size: 512
    // }
    
  • Fix channel format when padding non-square images for certain models in xenova/transformers.js#655. This means you can now perform super-resolution for non-square images with APISR models:

    Example: Upscale an image with Xenova/4x_APISR_GRL_GAN_generator-onnx.

    import { pipeline } from '@xenova/transformers';
    

    // Create image-to-image pipeline const upscaler = await pipeline('image-to-image', 'Xenova/4x_APISR_GRL_GAN_generator-onnx', { quantized: false, });

    // Upscale an image const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/anime.png'; const output = await upscaler(url); // RawImage { // data: Uint8Array(16588800) [ ... ], // width: 2560, // height: 1920, // channels: 3 // }

... (truncated)

Commits
  • d50b319 [version] Update to 2.16.1
  • 4cab8ec Add image-feature-extractor pipeline (#650)
  • f0ef2e8 Update tokenizer apply_chat_template functionality (#647)
  • 40cdd36 Fix channel format when padding non-square images for certain models (#655)
  • 8c731fa Bump follow-redirects from 1.15.4 to 1.15.6 (#652)
  • a51a61b Add support for EfficientNet (#639)
  • 314b7f0 [version] Update to 2.16.0
  • 8eef154 Add WavLM- & Wav2Vec2ForAudioFrameClassification support (#611)
  • 5bb8d25 Add StableLM support (#616)
  • dab1b81 Remove GH-specific redirect logic (#630)
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
shreyaskarnik commented 6 months ago

@dependabot update