// npm i @xenova/transformers import { pipeline } from '@xenova/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'mkly/TinyStories-1M-ONNX');