How to use Xenova/moondream2 with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-text-to-text', 'Xenova/moondream2');
See https://github.com/huggingface/transformers.js/pull/1212 for more information.
· Sign up or log in to comment